OSDN Git Service

Recover from missing upgrade to system package.
authorJeff Sharkey <jsharkey@android.com>
Sun, 5 Oct 2014 21:12:42 +0000 (14:12 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sun, 5 Oct 2014 21:12:45 +0000 (14:12 -0700)
commit1c133105774835deaa99db78d9668b107246abef
tree472842fb4bb47f4987725504efcdea0e1f640c41
parent914bd793b3415a198d0cb4216ff9da0a184ab803
Recover from missing upgrade to system package.

When a system app has been upgraded, we mark the built-in version as
disabled, and skip it when parsing built-in apps, since we expect
the userdata version to be scanned a few moments later.

However, in very rare cases we can end up missing the expected
userdata version, and we'd end up dropping the package entirely, even
though we have a built-in version to fall back to.  This change
handles that case by rescanning and enabling the built-in version when
the userdata version never materializes.

Also include critical log messages in check-in dumpsys to help track
down how we ended up in this state.

Bug: 17805839
Change-Id: I9971f882f9bb8ab7934c20b04e0b72366c4d04d0
services/core/java/com/android/server/pm/PackageManagerService.java