summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-07-29 09:09:12 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-07-29 09:09:26 -0700
commit525bc7a5a68cf2bf5159780ebb66ca4a3bf600ee (patch)
tree725c0dd60d328ee595092d0a3fa8ba51b5f2ea36
parent02022b70bef7d6964bc8043385531d1aa97fb15b (diff)
downloadframeworks_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.java2
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;
}