Lanchon / haystack

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

error: already exists #15

Closed JonnyTech closed 7 years ago

JonnyTech commented 7 years ago

The following error is observed:

user@computer:/tmp/haystack-master$ ./pull-fileset spark
>>> target directory: spark
>>> adb pull /system/framework/framework.jar spark/
[100%] /system/framework/framework.jar
>>> adb pull /system/framework/framework2.jar spark/
adb: error: remote object '/system/framework/framework2.jar' does not exist
>>> adb pull /system/framework/core.jar spark/
adb: error: remote object '/system/framework/core.jar' does not exist
>>> adb pull /system/framework/core-libart.jar spark/
[100%] /system/framework/core-libart.jar
>>> adb pull /system/framework/core-oj.jar spark/
[100%] /system/framework/core-oj.jar
>>> adb pull /system/framework/ext.jar spark/
[100%] /system/framework/ext.jar
>>> adb pull /system/framework/services.jar spark/
[100%] /system/framework/services.jar
>>> adb pull /system/priv-app/Settings/Settings.apk spark/
[100%] /system/priv-app/Settings/Settings.apk

*** pull-fileset: success
user@computer:/tmp/haystack-master$ ./patch-fileset patches/sigspoof-hook-7.0/ 24 spark/
>>> target directory: spark__sigspoof-hook-7.0
>>> apply patch: services.jar
>>> dexpatcher --api-level 24 --verbose --output spark__sigspoof-hook-7.0/tmp/services.jar/patched-dex --multi-dex spark/services.jar patches/sigspoof-hook-7.0/services.jar.dex
info: read 'spark/services.jar'
info: read 'patches/sigspoof-hook-7.0/services.jar.dex'
info: write 'spark__sigspoof-hook-7.0/tmp/services.jar/patched-dex'
0 error(s), 0 warning(s)
>>> repack: services.jar
deleting: classes.dex
  adding: classes.dex (deflated 56%)

*** patch-fileset: success
user@computer:/tmp/haystack-master$ ./patch-fileset patches/sigspoof-hook-7.0/ 24 spark__sigspoof-hook-7.0/
>>> target directory: spark__sigspoof-hook-7.0__sigspoof-hook-7.0
>>> apply patch: services.jar
>>> dexpatcher --api-level 24 --verbose --output spark__sigspoof-hook-7.0__sigspoof-hook-7.0/tmp/services.jar/patched-dex --multi-dex spark__sigspoof-hook-7.0/services.jar patches/sigspoof-hook-7.0/services.jar.dex
info: read 'spark__sigspoof-hook-7.0/services.jar'
info: read 'patches/sigspoof-hook-7.0/services.jar.dex'
error: type 'com.android.server.pm.PackageManagerService': direct method 'source_Hook_generatePackageInfo(com.android.server.pm.PackageSetting, int, int):android.content.pm.PackageInfo': (PackageManagerService.java:37): already exists
error: type 'com.android.server.pm.GeneratePackageInfoHook': (GeneratePackageInfoHook.java:0): already exists
2 error(s), 0 warning(s)
user@computer:/tmp/haystack-master$ 

What am I doing wrong?

Lanchon commented 7 years ago

hi!

you tried to apply the same patch (patches/sigspoof-hook-7.0/) twice in a row. dexpatcher fails saying:

JonnyTech commented 7 years ago

My bad, I read the instruction incorrectly :/