OSDN Git Service

MediaSessionService: Clear calling identity for incoming calls from apps
authorJaewan Kim <jaewan@google.com>
Thu, 30 Mar 2017 09:19:17 +0000 (18:19 +0900)
committerJaewan Kim <jaewan@google.com>
Wed, 19 Apr 2017 05:53:32 +0000 (05:53 +0000)
commit83c4635e12a18ede60a792795a7e2b7e9c1b90c9
tree9b5f8c9e1d2b3461879d788f1be2130ccdac0d69
parentfe1bddfbb54c20156b45e99c9d18166d702c9adb
MediaSessionService: Clear calling identity for incoming calls from apps

This only clears calling identity if MediaSessionRecord calls
APIs of MediaSessionService.

Bug: 36682559
Test: Run CtsMediaTest (MediaSessionTest and MediaSessionManagerTest)
  and Manual test (Checked that a media app that changes the active
  state and supports cast doesn't crash)
Change-Id: Ia4a441b692ea7da606b1bafbe9a6c3f8fd690518
services/core/java/com/android/server/media/MediaSessionRecord.java