Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

ApkBinary.getSha1() returns different sha1 hash #38

Open
akbast opened this issue Jan 31, 2018 · 2 comments
Open

ApkBinary.getSha1() returns different sha1 hash #38

akbast opened this issue Jan 31, 2018 · 2 comments

Comments

@akbast
Copy link

akbast commented Jan 31, 2018

I have uploaded an app to my play account with google app signing. https://support.google.com/googleplay/android-developer/answer/7384423?hl=en

I want to read out the sha1 key of the keystore, which is created by google itself. I am using the following sample: https://github.com/googlesamples/android-play-publisher-api/blob/master/v2/java/src/com/google/play/developerapi/samples/ListApks.java

The sha1 key that I get is different than my upload key and signing key. What sha1 hash is that, which is returned by AndroidPublisher?

@orrc
Copy link

orrc commented Jan 31, 2018

I want to read out the sha1 key of the keystore, which is created by google itself.

The keystore is created by you, not Google. Your APKs for distribution will be signed with that key, and not the signing keystore Google give you to use.

In any case, you can't read the SHA-1 fingerprint of a signing key from an APK file.

I am using the following sample

The code sample suggests that the value is the SHA-1 hash of the APK file.

The API documentation mentions this here:
https://developers.google.com/android-publisher/api-ref/edits/apks#resource

@akbast
Copy link
Author

akbast commented Feb 1, 2018

Thanks for the explanation. is there a possibility for me to fetch that SHA-1 Key of the signing key via AndroidPublisher or anyother api?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants