OSDN Git Service

Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
authorWale Ogunwale <ogunwale@google.com>
Mon, 6 Apr 2015 23:08:52 +0000 (16:08 -0700)
committerThe Android Automerger <android-build@google.com>
Thu, 9 Jul 2015 21:04:58 +0000 (14:04 -0700)
commitaaa0fee0d7a8da347a0c47cef5249c70efee209e
tree0814dbba5f9857c5877761659ffeac001b32858b
parent0b98d304c467184602b4c6bce76fda0b0274bc07
Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS

* Applications must now have ...permission.REAL_GET_TASKS to
be able to get process information for all applications.
* Only the process information for the calling application will be
returned if the app doesn't have the permission.
* Privilages apps will temporarily be able to get process information
for all applications if they don't have the new permission, but have
deprecated ...permission.GET_TASKS.

Bug: 20034603
Change-Id: I67ae9491f65d2280adb6a81593693d499714a216
(cherry picked from commit 9dbaa54f6834e013a63f18bd51ace554de811d80)
services/core/java/com/android/server/am/ActivityManagerService.java