Testing an adb update, versus install?

AndroidAndroid EmulatorApkAdb

Android Problem Overview


How do I test an update of my application, versus a clean install? I see that adb install has several flags, but I'm not sure which one mimics reality.

I explicitly need to test app updating.

Android Solutions


Solution 1 - Android

You don't need to re-install to get a 'clean install', you can just wipe the application's data.

Go to Settings > Applications > Find your app and use 'clear data' (or similar). At that point your app won't know the difference unless you are also using files on the SD card.

And, of course, app updating can be tested by installing normally (or, with adb, you can use adb install -r for installing while keeping the app's data, as you would on the market or with an APK)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStefan KendallView Question on Stackoverflow
Solution 1 - AndroidHXCaineView Answer on Stackoverflow