I am building an 'App locker' App in which I've displayed all the User Apps and System App in Listview, and I've added a toggle button to this listview, on turning (toggle button) ON/OFF, I want to lock/unlock the app of the phone. And lock is based on Pattern.
Whenever the App, which I locked, there should appear a Pattern Lock for Unlocking the app.
For this I need to grant my App USAGE ACCESS.
How to achieve that
Thanks!