Android app certificate expiration date

Is it possible to change the certificate validity period?

key-a: has a validity period of 2 years.
apk-a: signed key-a.
apk-b: signed with? which has 25 years of validity.
apk-a and apk-b are the same applications with the same package name.

Suppose there is a user who installed apk-a on his mobile phone. How can I make it possible to install apk-b as an update.
Here is what I have tried so far:
1.) I tried to use keytool to extend the validity of an existing key using the command below.
keytool -selfcert -v -alias mycertalias -validity 80000 -keystore teststore.jks -storepass mypassword
result: apk-b, which is signed with this key, cannot be installed on a cell phone (the previous one, which needs to be deleted, is required.)

2.) I created key-b, which is valid for 25 years. and signed apk-b with both keys.
result: the same as above.

ps 1: I tested them on the Samsung i7500 galaxy (on which Android version 1.6 is installed)
ps 2: My application is on the website. I had nothing to do with the Android market.

+3
source share
1 answer

Suppose there is a user who installed apk-a on his mobile phone. How can I make it possible to install apk-b as an update.

This is not possible, sorry. They will need to remove the old application and install a new one.

+1

All Articles