Home > DeveloperSection > Forums > how to sign a modded an apk on a mac with apktool
Barbara Jones

Total Post:13

Posted on    November-17-2014 3:17 AM

 Android Android sdk 

 1 Reply(s)
 950  View(s)
Rate this:
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.

Alex Leblois
Alex Leblois

Total Post:67

Posted on    November-17-2014 6:14 AM

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>

Don't want to miss updates? Please click the below button!

Follow MindStick