Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert unsigned apk into signed apk

Tags:

java

android

apk

I have an android application with un-signed package, Whenever I try to install this apk, following error message throws Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES].

Now I want to insert my keystore certifcate with this apk file. is there any possibilities to do this with external command rather than IDE?

like image 941
Sathish Avatar asked Sep 15 '26 03:09

Sathish


1 Answers

We can do this via jarsigner tool comes with the JDK

Steps

In Windows

Step 1: set path C:\Program Files (x86)\Java\jdk1.8.0_20\bin in command line

Step 2: jarsigner -verbose -keystore /path_to_keystore/keystoreFileName /path_to_apk_file/application_name.apk keystoreFileName_alias

-keystoreFileName_alias. You have to provide your alias name of your keystore file name.

Step 3: Enter password of your keystore file

Step 4: Completed. It will displays warning messages like certifaction validity etc..

Step 5: Verify your apk file jarsigner -verify /path_to_apk_file/application_name.apk

Zip align:

Step 6: set path C:\Program Files (x86)\Android\sdk\build-tools\android-4.4W in command line

Step 7: zipalign -v 4 /path_to_apk_file/application_name.apk /path_to_destination_apk_locaion/zipped_application_name.apk

like image 171
Sathish Avatar answered Sep 17 '26 15:09

Sathish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!