-
-
Save JonCooperWorks/cf4666eff44b64b51f5a42d2be269d45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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