I am able to make my app, the device owner app through NFC as mentioned here. Now I want to update my app over the air, but I couldn't find a method without rooting.
Google is providing many options for enterprises to develop apps as mentioned here, but nowhere providing a way to update the application through OTA.
Looking for a solution.
Create a service to background check for update. if update available download apk file and write it on some where like sdcard. wait some seconds to write completely flush. then call following code to install your new apk.
fileName
is path of your new apk file on sd card.