WindySha / Xpatch

This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
Apache License 2.0
2.56k stars 393 forks source link

Fix duplicate Application class attributes in AndroidManifest #114

Closed nonnonstop closed 2 years ago

nonnonstop commented 2 years ago

Issues

I saw that some obfuscated apk files cause this bug, so I would very much like to fix it. 😫

Steps to reproduce

  1. Download this apk file. This apk file has an application class com.example.testapp.MyApplication.
  2. Run Xpatch.

    java -jar xpatch-5.1.jar -f -l tmp/app-release3-replaced.apk Despite the application class being set, the detailed log shows Get the application name --> null.

  3. View the patched with an apk file viewer such as JADX. Alternatively, install and run the apk file, and look at the logs to see the status about Application class.

You can see that the aforementioned issues are occurring.

How to fix

Thank you!

nonnonstop commented 2 years ago

uploaded apk maybe broken. I will check.

nonnonstop commented 2 years ago

I replaced the link to apk file. https://www.mediafire.com/file/8wketx73chalm0j/app-release3-replaced.apk/file