OSDN Git Service

ShortcutManager: rescan all apps after next OTA
authorMakoto Onuki <omakoto@google.com>
Tue, 2 Aug 2016 18:39:19 +0000 (11:39 -0700)
committerMakoto Onuki <omakoto@google.com>
Tue, 2 Aug 2016 18:42:55 +0000 (11:42 -0700)
commit4dd032d5a66916920c3a5dac7bd9959e307f7316
treeeaefab010d88be3ca414fd14ec4900cab0862468
parent61dd3c557c1fa4f58464ca632e1a797fb0b0592d
ShortcutManager: rescan all apps after next OTA

- Normally when a user is unlocked, SM scans all updated apps
since the last scan to see if their manifest shortcuts have changed.

- There was a known issue that's been fixed already that'd result
in all shortcuts being removed.

- To work around this issue, let's scan all packages after the next
user unlock.

- This can be done by just renaming the XML attribute name to persist
the last app scan time.

Bug 30591723

Change-Id: Ie9f723ef30a1c991990d981193841cb203c094ad
services/core/java/com/android/server/pm/ShortcutUser.java