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

Total Post:13

Points:91
 1340  View(s)
Ratings:
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.
  1. Post:67

    Points:471
    Re: how to sign a modded an apk on a mac with apktool

    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>

      Modified On Apr-06-2018 06:27:18 AM

Answer