Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ded3cfc
commit 9a1f2df
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9a1f2df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of 5.0, <uses-permission android:name="android.permission.GET_TASKS" /> is deprecated and will no longer work as it used to. It will result in these log messages when included in your manifest:
W/ActivityManager( 1288): getTasks: caller 10165 does not hold REAL_GET_TASKS; limiting output
Unfortunately, there are only workarounds as opposed to comparable permissions, as its replacement "REAL_GET_TASKS" is a signature level permission restricted to either system apps or apps that share the same signature.
One semi workaround for platforms < 6.0 can be found here https://stackoverflow.com/questions/30619349/android-5-1-1-and-above-getrunningappprocesses-returns-my-application-packag/32366476#32366476
Good luck!