Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of the keystore validity in Android?

Can be a sign to the expiration keystore, install are also available.

ex) 1 day keystore generate.

$ keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 1

ex) my-release-key.keystore already is expired.

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name

App launch is also available. So, What is the meaning of the keystore validity in Android?

like image 235
Charming Avatar asked Dec 21 '15 07:12

Charming


1 Answers

this is from developer.android.com

If you plan to support upgrades for an app, ensure that your key has a validity period that exceeds the expected lifespan of that app. A validity period of 25 years or more is recommended. When your key's validity period expires, users will no longer be able to seamlessly upgrade to new versions of your application.

If you plan to publish your apps on Google Play, the key you use to sign these apps must have a validity period ending after 22 October 2033. Google Play enforces this requirement to ensure that users can seamlessly upgrade apps when new versions are available.

like image 169
Akhil Jayakumar Avatar answered Sep 30 '22 20:09

Akhil Jayakumar