Skip to content

Instantly share code, notes, and snippets.

@JonCooperWorks

JonCooperWorks/apktool-rebuild Secret

Last active Aug 22, 2018
Embed
What would you like to do?
# Recompile APK
apktool b decompiled/apk/directory -o app-patched.apk
# Zipalign APK to make it compatible with Android
zipalign -p 4 app-patched.apk app-aligned.apk
# Sign APK with your key so Android accepts it.
apksigner sign --ks my-release-key.keystore app-aligned.apk
# Alternatively, you can use jarsigner
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore.jks app-aligned.apk selfsigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.