Friday, 21 March 2014

How to resign the android apk files with your keystore file?

Hi All,

We can able to sign the apps by your own keystore files.
Todo this, make sure you should ready with your keystore file and apk file which you want to sign.

To Generate the Keystore, refer http://suramsridhar.blogspot.in/2014/03/how-to-create-android-debug-keystore.html


1. Change the APK file to zip file. (let say your file name is abc.apk then rename it to abc.zip).
2. Extract the abc.zip folder to abc folder.
3. Open the abc folder and delete the META-INF folder.
4. Now zip the abc folder to abc.zip
5. Rename the new abc.zip file to abc.apk file.
6. Now the APK file is ready to sign by your keystore file.
7. Run the below command to sign the above generated apk file.

jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore yourkeystore.keystore -storepass password abc.apk alias_name

8. After running the above command your abc.apk is ready with your own keystore file.


Note: If you face any problems while executing the above command then check whether your system is configured with Java. And also your system should be configured with all necessary Path variables

No comments:

Post a Comment