Help needed - error when patching ui fileset
Closed this issue · 2 comments
Xanto7 commented
I am receiving an error message when patching sigspoof-ui-global-9.0, however hook and core were "success".
./patch-fileset patches/sigspoof-ui-global-9.0/ 28 miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core/
>>> target directory: miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core__sigspoof-ui-global-9.0
>>> apply patch: services.jar
>>> dexpatcher --api-level 28 --verbose --output miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core__sigspoof-ui-global-9.0/tmp/services.jar/patched-dex --multi-dex miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core/services.jar patches/sigspoof-ui-global-9.0/services.jar.dex
DexPatcher version 1.6.2 by Lanchon (https://dexpatcher.github.io/)
info: read 'miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core/services.jar'
info: read 'patches/sigspoof-ui-global-9.0/services.jar.dex'
info: type 'com.android.server.pm.GeneratePackageInfoHook': method '<init>():void': implicit ignore of trivial default constructor
info: write 'miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core__sigspoof-ui-global-9.0/tmp/services.jar/patched-dex'
0 error(s), 0 warning(s)
>>> repack: services.jar
deleting: classes.dex
adding: classes.dex (stored 0%)
>>> apply patch: Settings.apk
>>> dexpatcher --api-level 28 --verbose --output miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core__sigspoof-ui-global-9.0/tmp/Settings.apk/patched-dex --multi-dex miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core/Settings.apk patches/sigspoof-ui-global-9.0/Settings.apk.dex
DexPatcher version 1.6.2 by Lanchon (https://dexpatcher.github.io/)
info: read 'miuiphone__sigspoof-hook-7.0-9.0__sigspoof-core/Settings.apk'
info: read 'patches/sigspoof-ui-global-9.0/Settings.apk.dex'
error: type 'com.android.settings.development.DevelopmentSettingsDashboardFragment': method 'buildPreferenceControllers(android.content.Context, android.app.Activity, com.android.settingslib.core.lifecycle.Lifecycle, com.android.settings.development.DevelopmentSettingsDashboardFragment, com.android.settings.development.BluetoothA2dpConfigStore):java.util.List': target not found
1 error(s), 0 warning(s)
Lanchon commented
your settings apk is nonstandard. just dont apply the UI patch. sig spoof
will be enabled all the time
Xanto7 commented
Yes! Signature spoofing is working now, without ui though, but that doesn't really matter. I also had to manually copy all the files(Settings.apk, ext.jar, framework.jar...), because after successful "adb remount" system was still read-only.