From the course: Android App Development: Enterprise Integration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test DPC as device owner

Test DPC as device owner - Android Tutorial

From the course: Android App Development: Enterprise Integration

Start my 1-month free trial

Test DPC as device owner

- Before we can test lock task mode in our application, the device policy controller needs to be set up in device owner mode. There are a couple of methods for doing this outlined in the Test DPC documentation on the Github page. We will be using the QR Code method listed first. This method requires that we are using a device running Android Nougat or later that is in factory state. I've gone ahead and prepared a physical device for this. So let's go to our device and start the provisioning process. When our device has finished booting, and presents us with the welcome screen, we can begin. Tap the welcome screen six times. One, two, three, four, five, six. This will bring us to a device provisioning wizard that will ask us to connect to a wireless network so that it can download a QR Reader for us to use. Go ahead and connect to your wireless network now. Once we are connected, the device will automatically begin downloading the reader and installing it. This may take a couple…

Contents