Skip to content
Commit 895f3ba3 authored by Felipe Leme's avatar Felipe Leme
Browse files

Added a DevicePolicyManager.setDeviceOwnerOnly() method.

It will be used by the test infra to just set the device owner,
without setting the profile owner on current user on systems
using headless system user.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerSetup
Test: adb shell dpm set-device-owner --user 0 --device-owner-only com.afwsamples.testdpc/.DeviceAdminReceiver
Test: m update-api

Fixes: 201313785
Bug: 192395248

Change-Id: I41c2cf187c1eceebe7c6ef30f9cff693b9dcbc15
parent 292c4941
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment