Nosari20
Android Enterprise Device Owner ADB provisioning

Android Enterprise Device Owner ADB provisioning

Content

Purpose

One day, I had to do some screen capture for the whole enrollment process, but some app screens were protected to prevent screenshots. I found a solution: provision device using adb, enable Developer Options and use scrcpy to get my device screen on my computer.

Provisioning

  1. Initialize device as usual (do not provision the device with standard Anrdoid Enterprise provisioning method)
  2. Install the DPC client
  3. Remove all Google accounts on device
  4. Enable Developper Options and debug mode
  5. Set the DPC role to the DPC client (cannot be undone or changed) with the following commands:
1
adb shell dpm set-device-owner <PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME>
DPCAdmin component name
MobileIron Cloudcom.mobileiron.anyware.android/com.mobileiron.polaris.manager.device.AndroidDeviceAdminReceiver
MobileIron Corecom.mobileiron/com.mobileiron.receiver.MIDeviceAdmin
VMware Workspace ONEcom.airwatch.androidagent/com.airwatch.agent.DeviceAdministratorReceiver
Android Management APIcom.google.android.apps.work.clouddpc/.receivers.CloudDeviceAdminReceiver (seems to not work)
Cisco Merakicom.meraki.sm/.DeviceAdmin
Test DPCcom.afwsamples.testdpc/.DeviceAdminReceiver
  1. Enroll device with DPC

Sources / usefull resources