Click here to Skip to main content
15,891,682 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi, i just changed my question to add more step. hope this help to understand my problem.

The APK was originally created using Xamarin Studio for windows (back in early 2016).
I then take over and now using Visual studio to create an APK package.

The keystore has not been provided to me, so i had to extract from the current APK package the .Keystore file from the .rsa file contained into the APK using keytool from java.
once this done i have been able to get the alias and i have also been provided the .keystore password.

I have the "archive" in visual studio in release build my code, using ad hoc publishing i have imported the .keystore file and published with the correct alias and password, but the resulting sha are not the same.

is there somethign i have done not correctly or is it that VS does not used properly the .keystore imported.

is there a way, using command line tool to "resign" and APK from a .keystore file

Thank's

What I have tried:

create a package from visual studio
Posted
Updated 30-Jan-17 4:37am
v2

1 solution

The only way to get an identical SHA-1 signature is to have identical contents: that's the whole idea of using an SHA-1 hash value. If they are different, then the content is different, and probably not valid - that is the whole idea.
If you have a different hash, then it may be as simple as the original including a build time, date, or version code in the APK - any change, no matter how trivial will generate a different SHA-1 value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900