kgmarsch / auto-update-apk-client

Automatically exported from code.google.com/p/auto-update-apk-client
0 stars 0 forks source link

Disabling downgrade #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using same device for developing and testing. 

Lets say latest version is 1.3 on Applications. But I started developing 1.4

This happens when i execute app:

1) Launch 1.4
2) Check for update
3) Different apk found (1.3)
4) Download and execute old apk

I will never be able to develop my app without commenting auto-update.

It would be good if downgrading is disabled.
Thank you

Original issue reported on code.google.com by ufukto...@gmail.com on 30 Mar 2013 at 11:45

GoogleCodeExporter commented 9 years ago
There are two ways to avoid this situation:

1. when you develop you generally use your development key to sign the APK, and 
when you publish a finished version on the web you use the production key to 
sign the APK -- if keys don't match, the upgrade won't happen.

2. if you want to disable downgrades outright, there's an option on your 
Account page, which says "Deploy update when:" and you may choose between "MD5 
sum is different" (default) and "Version is higher" (your choice).

Original comment by lenik.terenin on 31 Mar 2013 at 1:46