Closed Maryannah closed 2 years ago
use aapt2
use aapt2
Tried to, both by using the aapt2 bin
java -jar apktool.jar b decoded -o encoded.apk -a path/to/aapt2 -d
Using the flag for it
java -jar apktool.jar b decoded -o encoded.apk -a path/to/aapt -d --use-aapt2
Combining both
java -jar apktool.jar b decoded -o encoded.apk -a path/to/aapt2 -d --use-aapt2
And not providing the path to aapt to let apktool handle it
java -jar apktool.jar b decoded -o encoded.apk -d --use-aapt2
Well after many tries I don't know why but this time it worked.
I used zipalign like I did before, but instead of transferring my APK to my phone to install it, I used remote ADB to install it directly, and it seems to have worked.
So you can forget about it 😅
Thank you for the amazing tool nontheless !
Information
I am trying to add the debuggable flag to an APK so that I can remotely debug it (it is a Cordova application). I tried all possible flag combinations as well as aapt binaries and I can't seem to be able to make it work.
Just decoding and encoding back the APK works fine, but the debuggable flag is not added.
I found similar issues online and tried them (notably, downgrading the apktool version), but none seem to work.
Please bear in mind that I am just a JS developper, this is way out of my league, so if you explain something to me, please do it like I'm 5 years old 😅
apktool -version
) - 2.6.0Stacktrace/Logcat
Steps to Reproduce
aapt
-d
flagAPK
If this APK can be freely shared, please upload/attach a link to it. (Rename to
.apk
, github wouldn't let me send an APK file) game.zipQuestions to ask before submission
apktool d
,apktool b
without changing anything ?Yes, and it works, the app can be installed after signing it
Yes I did
Guess so, took the latest one in https://bitbucket.org/iBotPeaches/apktool/downloads/