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
For the same reason, the original Application class name is not saved in xpatch_asset/original_application_name.ini.
I saw that some obfuscated apk files cause this bug, so I would very much like to fix it. 😫
Steps to reproduce
Download this apk file.
This apk file has an application class com.example.testapp.MyApplication.
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.
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
Update the ManifestEditor to fix AndroidManifest issue.
Issues
xpatch_asset/original_application_name.ini
.I saw that some obfuscated apk files cause this bug, so I would very much like to fix it. 😫
Steps to reproduce
com.example.testapp.MyApplication
.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
.You can see that the aforementioned issues are occurring.
How to fix
Thank you!