I need to know how to set my application as Device owner in Android 5.0, 4.4 and 4.3(?). I've yet tried the method for rooted devices (described in there), successfully. I saw that works great in android 5.0 and 4.4.2 emulator and in CyanoGen AOSP 4.4.4 (all rooted devices). But I must need to try this on other non rooted devices, in Android 5.0 Developer API you can read this
"To deploy and activate a device owner, you must perform an NFC data transfer from a programming app to the device while the device is in its unprovisioned state."
but I don't understand what it means, or better, what I've to do. Can someone help me, or explain me the step to do?
PS. I know what NFC is and how it works but I can't understand how to use for this issue.
Create a NFC trigger application and install that on a device (other than the one on which you want to make your app as device owner) having NFC.
Following is the code for NFC trigger
For checksum run following command
Now upload your application apk which you want to make as device owner on google drive or dropbox.
Take a fresh device or factory reset the device on which you want to set your application as device owner.
Reboot the device and on first screen bring your device containing NFC trigger application and touch for beam transfer.
Your application will be downloaded and will get installed as device owner.