Skip to content
Commit 53fdbbcc authored by Alex Johnston's avatar Alex Johnston
Browse files

DPMS setProfileOwner access control

* Check whether the caller is system or has
  permission to set the profile owner before
  checking whether the package exists on
  device.

Manual testing
* Call DPMS setProfileOwner with an installed
  package but not as the system caller
* Call DPMS setProfileOwner with an uninstalled
  package and not as the system caller
* Both calls should give the same error message
  and logs.

Bug: 184525740
Test: manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.ProfileOwnerTest
Change-Id: I24e4d33442b0cf9baae290c0dbde45d725843055
parent 60f71b5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment