OSDN Git Service

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)
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>
Tue, 21 Jan 2014 07:41:11 +0000 (07:41 +0000)
commit719b3b807509d998eeb2aabd582d30b99947673d
treefa5ccf5c5156e7afc003edfc3c91ddedafb55314
parentc9a60b0f77525244ac4f970258703b8dc62ee140
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

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