GET_TASKS Permission Deprecated

后端 未结 2 1604
执念已碎
执念已碎 2020-12-15 03:04

I have an security App (App Locker) that uses this permission:

android.permission.GET_TASKS

In android Lollipop this permission is deprecat

2条回答
  •  佛祖请我去吃肉
    2020-12-15 04:04

    I saw a new permission REAL_GET_TASKS that is said to be used instead of GET_TASKS:

    New version of GET_TASKS that apps can request, since GET_TASKS doesn't really give access to task information. We need this new one because there are many existing apps that use add libraries and such that have validation code to ensure the app has requested the GET_TASKS permission by seeing if it has been granted the permission... if it hasn't, it kills the app with a message about being upset. So we need to have it continue to look like the app is getting that permission, even though it will never be checked, and new privileged apps can now request this one for real access.

    See the Android code difference at: https://android.googlesource.com/platform/frameworks/base/+/2d7576b%5E!/

提交回复
热议问题