依樣畫葫 修改完的services.jar放回/system/framework/開機當在SAMSUNG畫面!!!
也試過 修改完的services.jar放回/system/framework 再加刪除/system/framework/oat/arm/services.vdex .odex .art後仍當在SAMSUNG畫面!!!
請指導一下謝謝 !!
samsung j7 pro android9 有刷twrp 有root
/system/framework/services.jar
/system/framework/oat/arm/services.art
/system/framework/oat/arm/services.odex
/system/framework/oat/arm/services.vdex
C:vdex>vdexExtractor -f --ignore-crc-error -i services.vdex
[INFO] Processing 1 file(s) from services.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 2 Dex files have been extracted in total ==>產生出 services_classes.cdex services_classes2.cdex 兩個檔案大小不同 取前者
[INFO] Extracted Dex files are available in "."
C:vdex>flinux compact_dex_converter_linux services_classes.cdex
Opened "services_classes.cdex", DEX version "001"
compact_dex_converter_linux I 01-02 05:28:22 3608 2 compact_dex_converter_m
ain.cc:172] StandardDex file successfully extracted to services_classes.cdex.new
C:vdex>ren services_classes.cdex.new classes.dex
C:vdex>7za a services.jar classes.dex
7-Zip (a) 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Open archive: services.jar
--
Path = services.jar
Type = zip
Physical Size = 5231
Scanning the drive:
1 file, 14495512 bytes (14 MiB)
Updating archive: services.jar
Keep old data in archive: 4 files, 13161 bytes (13 KiB)
Add new data to archive: 1 file, 14495512 bytes (14 MiB)
Files read from disk: 1
Archive size: 6084173 bytes (5942 KiB)
Everything is Ok
C:vdex>apktool d services.apk 解壓
I: Using Apktool 2.5.0 on services.apk
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
修改三處
(檔案1) 解除 無法偵測目前位置(12)
檔案路徑: services/smali/com/android/server/LocationManagerService.smali
搜尋字串: Landroid/location/Location;->setIsFromMockProvider
.method private handleLocationChanged(Landroid/location/Location;Z)V
(修改1) 將 0x1 改成 0x0
.method public setTestProviderLocation(Ljava/lang/String;Landroid/location/Location;Ljava/lang/String;)V
(修改2) 將 0x1 改成 0x0
(檔案2) 衛星 GPS 自宮
檔案路徑: services/smali/com/android/server/location/GnssLocationProvider.smali
搜尋字串: Landroid/location/ILocationManager;->reportLocation
.method private handleReportLocation(ZLandroid/location/Location;)V
(修改3) 添加 # 將該行程式變成註解(代表不執行) , 因而衛星座標被阻斷, 手機就可以直接在戶外飛
C:vdex>apktool b services 壓縮
I: Using Apktool 2.5.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
W: Could not find resources
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
|