I have an security App (App Locker) that uses this permission:
android.permission.GET_TASKS
In android Lollipop this permission is deprecated and i want that my app works in +21 API.
Can anyone guide me how?
Thnx :)
I have an security App (App Locker) that uses this permission:
android.permission.GET_TASKS
In android Lollipop this permission is deprecated and i want that my app works in +21 API.
Can anyone guide me how?
Thnx :)
I saw a new permission REAL_GET_TASKS that is said to be used instead of GET_TASKS:
See the Android code difference at: https://android.googlesource.com/platform/frameworks/base/+/2d7576b%5E!/
There is reason why it is deprecated. The protection Level of android.permission.GET_TASKS has been elevated to signatureOrSystem. There is no easy and unharmful solution for that.
http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks(int,%20int)