I am trying to build an app that runs in lock task mode. I want users to go to settings->security->Device Administrators and select my app. But the issue is my app doesn't get listed in Device Administrator menu. I know that I can set my app as device owner using adb dpm command but its not useful in my scenario.
How can I make my app get listed on Device Administrator.