Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing an adb update, versus install?

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.

like image 465
Stefan Kendall Avatar asked Jan 22 '12 15:01

Stefan Kendall


People also ask

How do you check if adb is installed or not?

Next type cd platform-tools : Then type ls (or dir on Windows). You should see adb or adb.exe depending on your operating system. From here you can type ./adb and see some program output.

What does update from adb do?

APPLY UPDATE FROM ADB – Enables you to sideload firmware using your computer. APPLY UPDATE FROM SD CARD – Enables you to sideload firmware from an SD card. WIPE DATA/FACTORY RESET – Factory resets the phone. WIPE CACHE PARTITION – Deletes most items such as temporary files and logs from the phone.

What is adb install APK?

ADB (Android Debugging Bridge) can be used to execute commands on your VR device. It's mostly used to install applications (APK files) from a Windows PC or Mac with a device connected with USB.


1 Answers

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)

like image 117
HXCaine Avatar answered Sep 27 '22 20:09

HXCaine