+10
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
* 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