I'm investigating the necessary code for an AOSP device to trigger Device Owner Provisioning as part of an Out-Of-Box experience with Android Enterprise. As the device vendor, I have complete control of the start-up wizard, but sadly the device itself does not have NFC capabilities but QR code, SD card and even bluetooth are all available options. If I made the device wait for a payload, how would I trigger the Device Owner Provisioning with that payload? The device is designed to be corporate owned & managed, and will be locked down to a single app in kiosk mode.
- be put into a mode to wait for the payload
- receive the payload
- trigger the Device Ownership Provisioning with that payload
I already have an app that will take the role of Device Owner, and I could even have it preinstalled, but I'm lost as to which AOSP API I need to call to start the process.
Any help would be greatly appreciated.