how to sign a modded an apk on a mac with apktool

I have created a modded apk using api tool but when i try to install it , it doesn't install. When I rechecked and compared it with old api I found out my apt wasn't signed. I searched a lot but couldn't find out a method to sign apk on mac OS X.
Last updated:11/17/2014 6:14:43 AM

1 Answers

Anonymous User
Anonymous User

Got my solution- I use keytool, Jarsigner and zipalign from JDK by using following commands in terminal

To generate keystore

keytool -genkey -v -keystore my-keystore.keystore -alias name_alias -keyalg RSA -validity 10000

To sign an apk

jarsigner -verbose -keystore <path of my-keystore.keystore> <path of apk>  alias_name

To zip align an apk

zipalign -f -v 4 <your.apk >  <your_aligned.apk>

Answer