Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active May 19, 2024 12:58
Show Gist options
  • Save avoidik/a34e7864d6a267102acf6111b66b213c to your computer and use it in GitHub Desktop.
Save avoidik/a34e7864d6a267102acf6111b66b213c to your computer and use it in GitHub Desktop.
Repack APK, make it debuggable

Tools:

https://github.com/patrickfav/uber-apk-signer

https://github.com/iBotPeaches/Apktool

How:

apktool d app-release.apk -o extracted_apk

# Change extracted_apk/AndroidManifest.xml, for example add android:debuggable="true" right into the <application> node

apktool b extracted_apk -o app-release-mod.apk

keytool -genkey -keystore android.jks -keyalg RSA -keysize 2048 \
        -validity 3650 -alias app -dname "cn=Unknown, ou=Unknown, o=Unknown, c=Unknown" \
        -storepass abcdef12 -keypass abcdef12

apk-signer -a app-release-mod.apk --ks android.jks --ksAlias app --ksKeyPass abcdef12 --ksPass abcdef12 -o app-release-mod-signed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment