'ActivityManager does not hold REAL_GET_TASKS warning

I'm getting a warning message on my android phone (Nexus 5) from the ActivityManager. It doesn't seem to be from any particular application. And it keeps displaying about ever 2 seconds. Anyone know why this is happening? Or what I should look into to find out more about it?

enter image description here



Solution 1:[1]

Looks like an app is using permission for GET_TASKS which was deprecated in Lollipop: http://developer.android.com/reference/android/Manifest.permission.html#GET_TASKS

The error is specifying that REAL_GET_TASKS be used instead and there's a bug report about this issue (though I'm not spending the time to see if its the exact same issue): https://code.google.com/p/android-developer-preview/issues/detail?id=2347

Sorry (I looked it up now), 10078 is the UID according to the code:

private boolean isGetTasksAllowed(String caller, int callingPid, int callingUid) {
...
if (!allowed) {
    Slog.w(TAG, caller + ": caller " + callingUid
    + " does not hold GET_TASKS; limiting output");
}

https://github.com/android/platform_frameworks_base/blob/master/services/core/java/com/android/server/am/ActivityManagerService.java

The caller is a method of ActivityManager: http://developer.android.com/reference/android/app/ActivityManager.html#getRunningAppProcesses%28%29

I have no idea what 10078 uid actually is on your device. You can try 'adb shell' then 'id' and hopefully it shows up.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1