OSDN Git Service

DO NOT MERGE Check caller for sending media key to global priority session
authorJaewan Kim <jaewan@google.com>
Mon, 19 Sep 2016 12:19:55 +0000 (21:19 +0900)
committergitbuildkicker <android-build@google.com>
Tue, 27 Sep 2016 22:58:52 +0000 (15:58 -0700)
commit4c95059c31584cbd5651183a4605301563cf2e8e
tree99a359c5d2533628d3c7ba7abed68187a88c81b8
parent4f0dec2e62ee47dec1e29a6c97e13af2c86a33e9
DO NOT MERGE Check caller for sending media key to global priority session

Prevent sending media key events from the non-system app to the global
priority session through the MediaSessionManager.dispatchMediaKeyEvent().
Note that any app can use the API indirectly with
the public API AudioManager.dispatchMediaKeyEvent().

Bug: 29833954
Tested: Installed malicious apps and confirmed that they don't work.
Tested: Run CtsTelecomTestCases and CtsMediaTestCases
Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
(cherry picked from commit c282c4f106bea5c5375fdb6062ffd4fdcf8563a7)
services/core/java/com/android/server/media/MediaSessionService.java