Lanchon / haystack

Signature Spoofing Patcher for Android
GNU General Public License v3.0
233 stars 45 forks source link

failed to patch stage 3 #7

Closed bitching closed 7 years ago

bitching commented 7 years ago

Huawei EMUI 4.1.1 (Android 6.0)

[root@root haystack-master]# ./patch-fileset patches/sigspoof-ui-global-4.1-6.0/ 23 filessigspoof-hook-4.1-6.0sigspoof-core/

target directory: filessigspoof-hook-4.1-6.0sigspoof-coresigspoof-ui-global-4.1-6.0 apply patch: Settings.apk dexpatcher --api-level 23 --verbose --output filessigspoof-hook-4.1-6.0sigspoof-coresigspoof-ui-global-4.1-6.0/tmp/Settings.apk/patched-dex --multi-dex filessigspoof-hook-4.1-6.0sigspoof-core/Settings.apk patches/sigspoof-ui-global-4.1-6.0/Settings.apk.dex info: read 'filessigspoof-hook-4.1-6.0sigspoof-core/Settings.apk' info: read 'patches/sigspoof-ui-global-4.1-6.0/Settings.apk.dex' error: type 'com.android.settings.DevelopmentSettings': direct method 'source_FakeSignatureGlobalUI_updateAllOptions():void': target 'updateAllOptions': (DevelopmentSettings.java:152): target not found 1 error(s), 0 warning(s)

Lanchon commented 7 years ago

hmmm...

the standard Settings app has a "com.android.settings.DevelopmentSettings::updateAllOptions() -> void" non-virtual method that the UI patch tries to hook.

this method is missing on your Huawei stock rom. you could mod the patch source and re compile it (i'm not going to do that), but i recommend that you just forgo the 3rd stage patch instead (the UI, which is optional), and just use the first 2 stages.

bitching commented 7 years ago

thx, any way stage 2 works!