Skip to content

Instantly share code, notes, and snippets.

@salman0ansari
Last active August 20, 2022 19:10
Show Gist options
  • Save salman0ansari/c3373c068d158ce8c528a22eaf7f5ff2 to your computer and use it in GitHub Desktop.
Save salman0ansari/c3373c068d158ce8c528a22eaf7f5ff2 to your computer and use it in GitHub Desktop.
decompile apk
  1. Get apktool
  2. Get uber-apk-signer
  3. Create a signing certificate, this can be done inside android studio or using keytool
  4. Get your apk of choice from the internet or likewise
  5. Decompile the app using the following command, substitute the apktool version for what you downloaded.
java -jar apktool_2.6.1.jar d app.apk -r
  1. Open your text editor of choice in the new directory app and edit away, I recommend using jadx-gui for finding stuff to edit.
  2. Compile the app again using the following command
java -jar apktool_2.6.1.jar b app/ --use-aapt2
  1. Sign your apk with uber-apk-signer like this, you can use other signing software but i prefer this. Substitute keystore path, alias and passwords appropriately.
uber-apk-signer -a app/dist/app.apk --ks /path/to/your/keystore.jks --ksAlias "keyalias" --ksKeyPass "password" --ksPass "password"
  1. Install the apk!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment