Open Himan6 opened 6 years ago
I did a little more digging and in the kwetza.py script, if I remove some of the options form the apktool command line...
changing this:
to this:
(removing the -f and -r parameters) then the AndroidManifest.xml looks correct and kwetza will successfully locate the HOME Activity. I then get hung up at the readPayloads point:
It seems like kwetza is designed to NOT decode the resources when it extracts the apk, but then has trouble locating the Launcher because it is parsing the Manifest file looking for specific strings that do not exist in the encoded version of the file:
I'm certainly no coding expert, just pointing out what I found to hopefully help the cause!
I an confirm this behavior with multiple tested apks. I have updated to the latest apktool (2.3.1) and still get the same issue. If I run the kwetza script, the extracted AndroidManifest.xml looks like this:![2018-01-12-141547_446x252_scrot](https://user-images.githubusercontent.com/24832561/34891417-81358c1a-f7a3-11e7-9ece-08828da8a464.png)
If I just manually run![2018-01-12-141927_410x302_scrot](https://user-images.githubusercontent.com/24832561/34891446-9e916c52-f7a3-11e7-8988-7afbae8277ad.png)
apktool d <apkname.apk>
then the resulting AndroidManifest.xml looks correct: