tags:

views:

760

answers:

1

Hi

Is there a way we can update (not reinstall) a non-market apk on an Android device? I could only find an adb install (nothing like adb update)

Thanks.

+3  A: 

adb install -r is the closest you get, that is actually an update as it keeps the database and stored preferences. If you uninstall/re-install both the app database and preferences is deleted. What exactly are you trying to update about the app that -r option does not help you with ?

PHP_Jedi
There is some data I store in the app which I would like to retain across updates/reinstalls. I figure if this is a limitation, the only way I have is to store it in the SD Card, but thats again a risk if the user deletes the data from the card?
lostInTransit
The data you store in the app (in context preferences) will remain there on a reinstall, that is if you use adb -r option.... These data will only be deleted if you uninstall or delete them manually by code.
PHP_Jedi
@lostInTransit: This is the answer you were looking for, why don't you accept it
HXCaine