Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What functions or codes require GET_TASKS permission in Android?

Tags:

I think the GET_TASKS permission is an orphan line in my AndroidManifest.xml. I want to remove it safely. Do you know any function or code that requires this permission? Thank you.

<uses-permission android:name="android.permission.GET_TASKS" /> 
like image 503
Nizzy Avatar asked Aug 06 '14 02:08

Nizzy


People also ask

What is the use of Android permission Get_tasks?

GET_TASKS. Allows the app to retrieve information about currently and recently running tasks. This may allow the app to discover information about which applications are used on the device.

Which element allows you to specify the permission that is required by the Android application?

<permission> description: Declares a security permission that can be used to limit access to specific components or features of this or other applications.

What is the purpose of setting the user permission for Access_fine_location?

If your app needs to access the user's location, you must request permission by adding the relevant Android location permissions to your app. Android offers two location permissions: ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION . The permission you choose determines the accuracy of the location returned by the API.

What is the use of Android Protectionlevel in permission tag in manifest?

Also, there are various protection levels in permission i.e. if the protection level of permission is very low then you need not ask the user to use that permission. You can directly use that. But for dangerous permissions, you need to explicitly take permission from the user.


1 Answers

From the android reference

Allows an application to get information about the currently or recently running tasks.

An example is public List<ActivityManager.RecentTaskInfo> getRecentTasks (int maxNum, int flags) as it throws SecurityException if the caller does not hold the GET_TASKS permission.


Note that according to the documentation

This constant was deprecated in API level 21. No longer enforced.

and

As of LOLLIPOP, this method is no longer available to third party applications: the introduction of document-centric recents means it can leak personal information to the caller. For backwards compatibility, it will still return a small subset of its data: at least the caller's own tasks (though see getAppTasks() for the correct supported way to retrieve that information), and possibly some other tasks such as home that are known to not be sensitive.

like image 85
19greg96 Avatar answered Oct 25 '22 14:10

19greg96