diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-07-29 09:09:12 -0700 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2015-07-29 09:09:26 -0700 |
commit | 525bc7a5a68cf2bf5159780ebb66ca4a3bf600ee (patch) | |
tree | 725c0dd60d328ee595092d0a3fa8ba51b5f2ea36 | |
parent | 02022b70bef7d6964bc8043385531d1aa97fb15b (diff) | |
download | frameworks_base-525bc7a5a68cf2bf5159780ebb66ca4a3bf600ee.zip frameworks_base-525bc7a5a68cf2bf5159780ebb66ca4a3bf600ee.tar.gz frameworks_base-525bc7a5a68cf2bf5159780ebb66ca4a3bf600ee.tar.bz2 |
Allow non system to set perm policy flags - needed by the installer
My previous change overtightened which permission flags can be changed
by a non-system caller. This took away the capability of the package
installer to set policy flags which it needs to implement the auto
grant/deny behavior.
bug:22776149
Change-Id: Ic2a82bedc413fc91360c3bcec355fac456f0fccf
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index b7756ac..f8ef51a 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -3628,8 +3628,6 @@ public class PackageManagerService extends IPackageManager.Stub { if (getCallingUid() != Process.SYSTEM_UID) { flagMask &= ~PackageManager.FLAG_PERMISSION_SYSTEM_FIXED; flagValues &= ~PackageManager.FLAG_PERMISSION_SYSTEM_FIXED; - flagMask &= ~PackageManager.FLAG_PERMISSION_POLICY_FIXED; - flagValues &= ~PackageManager.FLAG_PERMISSION_POLICY_FIXED; flagMask &= ~PackageManager.FLAG_PERMISSION_GRANTED_BY_DEFAULT; flagValues &= ~PackageManager.FLAG_PERMISSION_GRANTED_BY_DEFAULT; } |