Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit db3573a8 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Audio hardening: audio focus requires control capability

Add audio focus request to AudioService's HardeningEnforcer
filtering.
Requesting audio focus requires being performed from a
foreground state or service, and is mapped to a new
capability, FOREGROUND_AUDIO_CONTROL.
Logging for focus hardening goes to system log, add
methods in EventLogger for Slog output.

Bug: 296232417
Test: adb shell device_config put media_audio android.media.audio.foreground_audio_control true ;\
      atest CtsAppTestCases:android.app.cts.ActivityManagerFgsBgStartTest ;\
      atest AudioFocusTest

Change-Id: I2abc27c2439af77690685f779998c0fdfa1f77f0
parent b3929115
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment