I want to enable Kiosk Mode for my app. I am aware that Android supports lock task mode. However, when I call the startLockTask() method, it prompts for confirmation. To bypass this, the app needs to be set as the device owner.
How can I make my app the device owner without requiring users to factory format their phones? What steps should I take next?
That is not possible.
Allow the user to confirm that your app should enable kiosk mode.