Skip to content

Instantly share code, notes, and snippets.

@samuelbezerrab
Last active September 15, 2020 21:24
Show Gist options
  • Select an option

  • Save samuelbezerrab/d0d6e436985fd61a324bb8e61e820b03 to your computer and use it in GitHub Desktop.

Select an option

Save samuelbezerrab/d0d6e436985fd61a324bb8e61e820b03 to your computer and use it in GitHub Desktop.
Repack android APK
#### Install APK tool
`brew install apktool`
#### Depack the apk
`apktool d app-release.apk -o extracted_apk`
#### Change whatever you want inside the created apk
`code extracted_apk`
#### Repack the apk
`apktool b extracted_apk -o app-release-mod.apk`
#### Sign the apk with the original key
Download the jar here: [https://github.com/patrickfav/uber-apk-signer](https://github.com/patrickfav/uber-apk-signer)
`java -jar uber-apk-signer-1.1.0.jar -a app-release-mod.apk --ks /path/to/key.jks --ksAlias key --ksKeyPass <<password>> --ksPass <<password>> -o app-release-mod-signed`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment