summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2019-03-25 14:31:04 (GMT)
committerEran Messeri <eranm@google.com>2019-03-25 14:31:04 (GMT)
commit4fd13eefcf99d9b9b0d5f5ea99fdc7c799c83d23 (patch)
tree5d88c1450cc922850a8553a6b7095cffa6d2a759
parentb5e7bbe5b8e1d120d3f13f6d15b7be16d4f2e132 (diff)
downloadframeworks_base-4fd13eefcf99d9b9b0d5f5ea99fdc7c799c83d23.zip
frameworks_base-4fd13eefcf99d9b9b0d5f5ea99fdc7c799c83d23.tar.gz
frameworks_base-4fd13eefcf99d9b9b0d5f5ea99fdc7c799c83d23.tar.bz2
Permission Check For DPM.getPermittedAccessibilityServices
Bug: 128599660 Test: com.android.server.devicepolicy.DevicePolicyManagerTest Test: com.google.android.gts.devicepolicy.DeviceOwnerTest Change-Id: I8be915bd6a4ff99884d23005a4c6f0100806dbe8 Merged-In: I8ee3f876fcaffa63636645f0f59709cd147254ef
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
index c09799e..64e9cea 100644
--- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
+++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -6868,6 +6868,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
if (!mHasFeature) {
return null;
}
+ enforceManageUsers();
synchronized (this) {
List<String> result = null;
// If we have multiple profiles we return the intersection of the