Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know file .apk use to the keystore to sign?

I have a keystore and a apk. is there a tool or a method to check file apk, signed from this keystore? I use Eclipse. Someome help me please. Thanks so much

like image 347
chishi Avatar asked Sep 01 '11 10:09

chishi


People also ask

Are APK files signed?

Android requires that all APKs be digitally signed with a certificate before they are installed on a device or updated. When releasing using Android App Bundles, you need to sign your app bundle with an upload key before uploading it to the Play Console, and Play App Signing takes care of the rest.

Which file is used to generate signed APK?

Use Keytool binary or exe to generate a private keystore. Instructions here. You can then sign your app using this keystore. Keytool gets installed when you install Java.

Which key is used for signing an .APK file using Jarsigner utility?

Sign the APK – This step involves using the apksigner utility from the Android SDK and signing the APK with the private key that was created in the previous step. Applications that are developed with older versions of the Android SDK build tools prior to v24. 0.3 will use the jarsigner app from the JDK.


1 Answers

Use jarsigner tool:

jarsigner -verify -verbose -keystore keystore_file apk_file.apk

This command gives output like this:

smk 22401 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/about_cover.png
smk 1206 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/add_normal.png
smk 1430 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/app_icon.png
smk 133 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/background_next_section.png

s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore

like image 116
Sergey Glotov Avatar answered Sep 22 '22 01:09

Sergey Glotov