Recompile Android Application using APKTool

9 comments
Simple step to recompile android application using apktool


apktool b <folder> <new apk name>

Example:
apktool b myapp myapp-new.apk

Not done yet, you need to sign the application.
Following command to generate keystore and sign the application.
keytool -genkey -v -keystore <keystore file name> -alias <alias> -keyalg RSA -keysize 2048 -validity 7300

jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore <keystore file name> <apk name> <alias>

Example:
keytool -genkey -v -keystore myapp.keystore -alias myapp -keyalg RSA -keysize 2048 -validity 7300

jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore myapp.keystore app-new.apk myapp

9 comments :

Post a Comment