Refactor permission checks removeActiveAdmin
Reorder permissions checks to not leak information about a package if it's admin or not. Bug: 192369136 Test: atest DevicePolicyManagerTest#testRemoveActiveAdmin_SecurityException atest DevicePolicyManagerTest#testRemoveActiveAdmin_userNotRunningOrLocked atest DevicePolicyManagerTest#testRemoveActiveAdmin_fromDifferentUserWithINTERACT_ACROSS_USERS_FULL atest DevicePolicyManagerTest#testRemoveActiveAdmin_sameUserNoMANAGE_DEVICE_ADMINS atest DevicePolicyManagerTest#testRemoveActiveAdmin_multipleAdminsInUser atest DevicePolicyManagerTest#testSetDeviceOwner atest DevicePolicyManagerTest#testSetDeviceOwner_headlessSystemUserMode atest DevicePolicyManagerTest#testSetProfileOwner Change-Id: I132e09f680c06fb5068bdbe140c08cafcc13f102 Merged-In: I132e09f680c06fb5068bdbe140c08cafcc13f102 (cherry picked from commit 11d2fb77)
Loading
Please register or sign in to comment