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

Commit bf0df330 authored by Piyush Raj's avatar Piyush Raj Committed by Cherrypicker Worker
Browse files

AudioService: Fix STREAM_MUSIC volume persistence

across reboot

Currently, the media (STREAM_MUSIC) volume index
is stored under current user but read back form
system user after reboot, causing volume not
persistence after reboot.

This change update the storage logic to persist STREAM_MUSIC
volume under UserHandle.USER_SYSTEM, ensuring alignment between read and
write paths and reliable volume persistence across reboots.

For reference – commit that preserved music stream volume from one user to the next:
- https://android-review.googlesource.com/c/platform/frameworks/base/+/1893662



Test: -atest CtsMediaAudioTestCases
Flag: EXEMPT bug fix

Signed-off-by: default avatarPiyush Raj <piyushrj@amazon.com>
Merged-In: I422f3c44460d23ffe9a4945b1ebaf3b17b53dccd
Change-Id: I422f3c44460d23ffe9a4945b1ebaf3b17b53dccd
parent 09831056
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment