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)
committerZach Riggle <riggle@google.com>
Tue, 26 May 2015 17:49:04 +0000 (17:49 +0000)
commitc9a0c0b90773fded6c251646300231f67c891b78
treea4fc6af9569e5996fd8cb85ebe8c246368349984
parentea2dcda788e035ccdc55ab16303c9e34740a3f8c
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