Check Finger Print From Apk Installed

Here is how I checked SHA-1 / SHA-256 finger prints from APK installed in devices. For this purpose, we can use adb commands.

First, check the application identifier. The list of application identifiers installed in a device is obtained with the command below. From the list, pick up the application identifier you want to know the finger prints.

% adb shell pm list package

Suppose that the application identifier is XXX.XXX.XXX. Then, check the path to the apk with the command below. There would be several apks depending on the configuration.

% adb shell pm path XXX.XXX.XXX
package:/data/app/XXX.XXX.XXX-xxxxxxxxxxxxxxxxxxxxxx==/base.apk

Now you know the path to the apk, you can pull it to current directory with adb pull command.

% adb pull /data/app/XXX.XXX.XXX-xxxxxxxxxxxxxxxxxxxxxx==/base.apk

Finally, you can check the SHA-1 / SHA-256 finger prints with keytool command.

% keytool -printcert -jarfile base.apk

About me

Experienced software developer. Technical lead at Fuller, Inc. My speciality is developing Android native app. I'm living in Tsukuba Japan, with my family, dogs, and cats :)

Here is more detailed profile.