Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens on an android device when the app updates?

Tags:

android

What is the workflow on devices when the Play Store updates an app? What happens if the user is using the app at the same time?

I ask because we have some crashes where a String ID cannot be found, and when we looked at the APKs the String resource is available in both versions - but the hex ID reported in the crashes is found in the OLD apk and not in the NEW one. This is strange.

This leads us to think that the Play Store may have updated the app's files and resources while the app was running, and then when it looked up the string resource to load something it used the old ID from memory and of course didn't find it in the newly updated files.. leading to the ResourceNotFound exception.

How is that possible? Is it even possible? I'd think not, except we looked in the APKs and the ID that was in the crash matched the old resource id and not the new one that we just pushed.

like image 612
Matthew Runo Avatar asked Jul 19 '13 18:07

Matthew Runo


People also ask

What happens when app is updated in Android?

Updating your apps to the latest version gives you access to the latest features and improves app security and stability. Important: If Google determines that an app update fixes a critical security vulnerability, we may make certain app updates.

What happens when app is updating?

New features allow apps to have new capabilities after every major mobile OS release. Each time Android and iOS put up a new feature, apps generally need to be updated in order to catch up. An update will help your mobile app to have access to the new software and hardware feature sets introduced by the manufacturers.

How do Android app updates work?

The developer publishes a new version (4.0). The 90-day period ends, the app is added to the update queue and will be automatically updated according to the default update behavior, once the constraints are met. The constraints are met and therefore the app is updated to the latest available version (4.0).

Is updating apps good or bad?

It's just an example of why apps must be updated to be at par with technology. No matter how many times you test your mobile app before launching it, there will always be bugs left. Only regular users will be able to detect all the bugs.


1 Answers

From what I could find in researching this, it seems as though the App needs to be closed in order for the files to be reachable for update. Once closed, Google Play updates only the changed pieces of the apk to save time and cost.

There are several forum posts I have found that teach you how to rollback app options from flashed ROM (which happens all the time with rooted devices). Perhaps the user attempted to rollback after receiving the update. Either that, or the ID that was in the crash is referenced in part of your apk that was not updated.

Sources: Notification of Update

What Happens When You Update an App

Google Play Saves Cost & Time

like image 182
Phoenix Avatar answered Nov 08 '22 12:11

Phoenix