Alex Johnston c40355f469 DPMS setDeviceOwner access control
* Check whether the caller is system or has
  permission to set the device owner before
  checking whether the package exists on
  device.

Manual testing
* Call DPMS setDeviceOwner with an installed
  package but not as the system caller
* Call DPMS setDeviceOwner 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.DeviceOwnerTest
Change-Id: I5654ef420ff44af01d475595609bb85fec132ce1
2021-04-14 09:52:11 +00:00
2021-03-15 12:32:58 +00:00
2021-01-18 17:45:19 +01:00
…
2020-07-15 13:02:35 +01:00
2021-01-27 12:09:16 -08:00
…
2021-01-06 18:40:58 -07:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%