APK Signature

GoogleFit Web —— Get an OAuth 2.0 Client ID
https://developers.google.com/fit/android/get-api-key
Google API Console启用GoogleFit API
https://console.developers.google.com/flows/enableapi?apiid=fitness


Android APK 默认使用debug.keystore
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android


查看KeyStore/jks SHA
keytool -list -v -keystore C:\Users\mtk54366\.android\debug.keystore -storepass android
keytool -v -list -keystore E:\Work\Aster\Tool\virgo.jks  (password 123456)
查看APK SHA
1、.apk改为.zip,并用winrar解压,获取META-INF/CERT.RSA
2、keytool -printcert -file META-INF/CERT.RSA
参考Web:
http://blog.csdn.net/wed110/article/details/38303637


签署APK —— 手动签署命令
https://developer.android.com/studio/publish/app-signing.html#signing-manually


MIME网页
http://www.isi.edu/in-notes/iana/assignments/media-types


Signature代表APK author
ApplicationID是APK unique ID
Version Code是APK unique version, Version Name仅用于显示


Signature都是demo keystore, A.apk A_Debug.apk B.apk B_debug.apk
1. 安装B后,再adb install B_debug,会被Failure [INSTALL_FAILED_ALREADY_EXISTS]。(adb install -r没问题)
2. 此时能再安装A,再安装A_debug仍会被reject。
3. 此时应该可以安装higher version A。(仍提示[INSTALL_FAILED_ALREADY_EXISTS])

你可能感兴趣的:(Android)