From support for android, followed by points that complete the script. If you can make your test pass with these three, there should be no hassle
- The package name of the updated APK must match the current version.
- The version code must be greater than the current version.
- The updated APK must be signed with the same signature as the current version.
To make sure your APK uses the same certificate as the previous version, you can run the following command for both APKs and compare the results
$ jarsigner -verify -verbose -certs my_application.apk
If the results are identical, you are using the same key and are ready to continue. If the results are different, you will need to re-sign the APK with the correct key.
For more information, click on the link that contains the rules for registering your applications
source share