OSDN Git Service

Permission enforcement for A11y volume changes
authorJean-Michel Trivi <jmtrivi@google.com>
Mon, 13 Mar 2017 22:33:39 +0000 (15:33 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 14 Mar 2017 00:26:16 +0000 (00:26 +0000)
commitab2d9315d169a7129c5d1284e91393edd32650bd
treef2280390e352ca0cfc161d6173f85aa11c474526
parent10dd69794b2b6704acdb24a54224a4089aec11f9
Permission enforcement for A11y volume changes

Make modifying the STREAM_ACCESSIBILITY volume conditional
  to have the BIND_ACCESSIBILITY_SERVICE permission.
Add BIND_ACCESSIBILITY_SERVICE permission to sysUI.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testAccessibilityVolume
Bug: 34379420
Bug: 30448020
Change-Id: I9f26affccd953bd8473d06822857edf92fef4ba8
packages/SystemUI/AndroidManifest.xml
services/core/java/com/android/server/audio/AudioService.java