After the upgrade Android phone application does not update OAT issue resolved

Introduction:

OTA version of the phone recently encountered after the upgrade is complete Some applications do not update problem

Follow these steps encountered this problem is usually the case:

1. Exclude ota upgrade fails (see the latest version of the phone by setting)

2. Review the application version (if upgrade to the latest version)

3. Comparison desktop application icons application icons and settings are the same (if the vendor does not customize the application icons, and the desktop set up inside view of icons is the same)

 

Encountered two problems ota upgrade:

.OTA a problem after upgrading find the latest version of an application icon should be replaced, but after the upgrade discovery application icon on the desktop does not refresh

Analysis: (1) ota upgrade was successful (2) application or an old version was not updated version

The second step is the application itself can determine not upgraded, whether the application you want to upgrade by contrast versionCode after major version (apk version if the new version number is greater than the current good to go installation process), is determined by looking at the version number of the application to compile because there is no resulting in an updated version number.

Re-compiled version of the OTA upgrade encountered new problems again revised version.

Description: After successfully upgrading OAT view of the application is the latest version and features but does not update the application icon on the desktop (application icons update)

Analysis: The same pass (1) (2) two-step no problem, (3) comparison of desktop icons and set the view to the application icon is inconsistent (manufacturers no custom icon)

Conclusion: The desktop application can confirm that there is a problem.

Why not updated analysis of the desktop icon: desktop displays application icons to the desktop will be stored in the database, if not in the database query to get through the system interface. After the first rule whether the desktop application update will update the application under normal circumstances, information (1) clearly found that normal icon is automatically updated when upgrading the application, see the application can view the source code update will notify the desktop update application information includes application icon. Need to restart the phone when (2) ota upgrade, and is in revovery mode, where the desktop is the process did not start so there will not notify the desktop application update events. Under normal circumstances the desktop on restart will do a background for comparison database update operations, the update once painted the desktop UI is completed, but now desktop applications do not update the database, the final analysis found that the update code is blocked predecessor. The following is the OTA upgrade process borrow online picture can refer to specific https://blog.csdn.net/dingfengnupt88/article/details/52875228/

 

Question two .OTA found after the upgrade is the latest version of an application, but the application is not updated analysis found

Analysis: The same determine ota upgrade successful, the application is the latest version, but the function is not updated, the problem is very clear ota compiled code inside the application code in question, I'm sorry to see the code normal compiled code, the whole package directly through the brush that everything is okay .

Following a discovery rule out the code ota package no problem, but finally found the latest code is very old apk that stage ota install a version before upgrading the phone number, to exclude this issue for a long time before deciding.

 

to sum up:

The first two questions above through the normal process we can identify the problem. But the second problem is difficult to locate, although we can rule out problems in your code ota package, but we have a clear cause of the problem the problem, because ota upgrade is not our own l do not know a lot of things, just know the final phenomenon. If the next time this happens you can think of in advance whether someone apk pre-installed version too old code.

 

 

 

 

 

Published 92 original articles · won praise 27 · views 90000 +

Guess you like

Origin blog.csdn.net/zhuxingchong/article/details/102708858