Skip to content

Instantly share code, notes, and snippets.

@daldegam
Forked from avoidik/README.md
Created October 4, 2023 15:45
Show Gist options
  • Save daldegam/19e59f809fcc5762c0a265297f2ec019 to your computer and use it in GitHub Desktop.
Save daldegam/19e59f809fcc5762c0a265297f2ec019 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