OSDN Git Service

DO NOT MERGE - FLAG_PRIVILEGED disappears if privileged app is updated and rebooted
authorNaofumi Harada <naofumi.harada@sonymobile.com>
Tue, 21 Jan 2014 01:29:36 +0000 (10:29 +0900)
committerChristopher Tate <ctate@google.com>
Tue, 11 Mar 2014 19:26:21 +0000 (12:26 -0700)
commit68c0346b22d11a0e2c5e89f1a9206bc06ad3d0cf
tree1cb61bdc189e971119cfe0fa23ba2f7f761bb5a2
parent674f85af4c04970ec8875669b3f08eaf0465ba4b
DO NOT MERGE - FLAG_PRIVILEGED disappears if privileged app is updated and rebooted

Since Kitkat, an app pre-loaded under /system/priv-app/ has
FLAG_PRIVILEGED. However, if the app updated and the device
rebooted, privileged flag is unset from pkgFlags. This patch
fix issue to assign privileged flag when scanning the updated
packages.

Bug: 12640283

Cherrypick from master.

Change-Id: I833d94cd911693c9291e8204f63bd8de945dbba6
services/java/com/android/server/pm/PackageManagerService.java