diff options
author | Alex Kershaw <alexkershaw@google.com> | 2020-05-19 20:30:16 +0100 |
---|---|---|
committer | Alex Kershaw <alexkershaw@google.com> | 2020-05-19 20:34:17 +0100 |
commit | e6a81b38d61972bbc1c37f191874e8a50a4fb9e8 (patch) | |
tree | e66dd4d5ae3ff418eae1eece921392c7a48fd600 /services/devicepolicy | |
parent | 2133dc6e7361289f355fae60c403d4f3f49a53d9 (diff) |
Prevent DPCs from requesting INTERACT_ACROSS_PROFILES
Fixes: 156745686
Test: atest
com.android.cts.devicepolicy.CrossProfileAppsPermissionHostSideTest#testCanRequestInteractAcrossProfiles_profileOwner_returnsFalse
Test: atest services/robotests/src/com/android/server/pm/CrossProfileAppsServiceImplRoboTest.java --verbose
Change-Id: Ia72573991ecccd9a9d01285ba55059e7f9ea14b0
Diffstat (limited to 'services/devicepolicy')
-rw-r--r-- | services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java | 5 |
1 files changed, 5 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 7e4c8f3e48e5..34be681d1e47 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -12683,6 +12683,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { Binder.restoreCallingIdentity(ident); } } + + @Override + public ComponentName getProfileOwnerAsUser(int userHandle) { + return DevicePolicyManagerService.this.getProfileOwnerAsUser(userHandle); + } } private Intent createShowAdminSupportIntent(ComponentName admin, int userId) { |