Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test what will happen when you publish an update to your app to the Market

I'm about to publish a new version of an app to the Market. In order to avoid any potential problems once its been pushed to the Market and people get notified of an update, I'd like to simulate that process on my phone using the .apk for the new version of the app I'll be publishing.

For instance, it has an update to the SQLite DB it's using.

The closest I can find is using the Android Debug Bridge (adb) using the command: adb install C:\myApplication.apk with my phone attached to my PC via the usb cable. (the parameter represents wherever your apk file is on your PC).

When I do this, if the app is already installed on my phone, I get an error message:

Failure INSTALL FAILED ALREADY EXISTS.

If I delete the existing app from my phone, the adb install command works fine. So, it looks like this can only be used to install an app that doesn't currently exist on your phone.

Is there any way to simulate the update process? It'd be nice if there was an adb update command, but I don't see that.

like image 905
charlest Avatar asked Feb 14 '11 15:02

charlest


People also ask

How do you know if my app is published?

You can see your app's latest publishing status under your app's name and package name when you select your app in Play Console.

How do you ensure an app is updated?

At the top right, tap the profile icon. Tap Manage apps & device. Apps with an update available are labeled "Update available." Tap Update.

How long does it take to publish an app on Google Play 2022?

It will take up to 7 days to get it approved. Once approved, it will be available publicly for download on Google Play Store.


2 Answers

Try using option -r to adb install:

adb install [-l] [-r] [-s] - push this package file to the device and install it ('-l' means forward-lock the app) ('-r' means reinstall the app, keeping its data) ('-s' means install on SD card instead of internal storage)

like image 177
Heiko Rupp Avatar answered Oct 19 '22 08:10

Heiko Rupp


The closest I think you can get is to put the APK somewhere, and download it on a phone. That is about the closest you can get to the real market situations, with the only difference being that you need to add the "unknown sources" option.

(on a sidenote: you can get an error installing an apk with the same package-name, but a different signing.)

like image 42
Nanne Avatar answered Oct 19 '22 08:10

Nanne