diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2020-05-11 08:38:19 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2020-05-19 14:07:43 -0700 |
commit | a8f97ffdaadb510af5d7f67fbb75bd51cf4e909b (patch) | |
tree | e6c1a3c7cda1a0757c5e60c925621451239c459b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a543dfde92e33b0d067943c6d4f0a3149d822bc2 (diff) |
AudioService: permission for volume adjustment to lowest values
Define an attenuation threshold under which the
MODIFY_AUDIO_SETTINGS permission is required to adjust volume.
Verify permission at the interface of audio service, and
propagate this information so its used when getting a valid
index during a volume adjustment or set.
Make the audio service dump display the min index when it
differs from the normal min index.
Enforcement is only for STREAM_ALARM.
Bug: 137015603
Test: use POC app in bug, verify ALARM volume not at 1 with \
adb shell dumpsys audio
Change-Id: I083a26fd8eeebd4e5434ed02a4a803cbb920ab84
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions