Thứ Sáu, 5 tháng 4, 2013

Android - KeyStore (My fingerprint) and register apk

Show my fingerprint :
keytool -list -alias androiddebugkey  
-keystore c:\Users\YOURUSER\.android\debug.keystore 
 -storepass android -keypass android
 

Displaying the SHA1 certificate fingerprint

There are two type of certificate fingerprint, debug and release.

To display debug certificate fingerprint in Linus, simple open Terminal and type the command:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android


display debug certificate fingerprint


To display release certificate fingerprint, you need to create the release keystore and and sign the .APK once.

- Right click your project and select Android Tools -> Export Signed Application Package...


- Accept the selected project and click Next.


- Select Create new keystore, browse to select Location and enter Password, and click Next.


- Enter Alias, Password, Validity and at least one Certificate issue field, and click Next.


- Select destination APK, and click Finish.


After created the release keystore and and signed the .APK. you can display the release certificate fingerprint.

- open Terminal and type the command:
keytool -list -v -keystore <your_keystore_name> -alias <your_alias_name>

where:
<your_keystore_name> is the path and name of the keystore, including the .keystore extension.
<your_alias_name> is alias that you assigned to the certificate when you created it.



If you get error of "keytool error: java.lang.Exception: Keystore file does not exist", read HERE.
 
 
 

Không có nhận xét nào:

Đăng nhận xét

Học lập trình web căn bản với PHP

Bài 1: Các kiến thức căn bản Part 1:  https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2:  https://...