diff options
| author | 2023-05-10 11:57:15 +0200 | |
|---|---|---|
| committer | 2023-05-10 15:43:49 +0200 | |
| commit | 39d2938341352ba3f5765a26dee8e2ff2a2f24bf (patch) | |
| tree | 7d07659d9e72ab7c4c86a6061a86bb5840389683 /libs/androidfw/ConfigDescription.cpp | |
| parent | 6aecb91bd1eb9030565ad91aac182f35b3c86e54 (diff) | |
Fix system server crash on receiving <Report Audio Status>
This crash occurs when enabling absolute volume behavior, when
we receive <Report Audio Status> with an out-of-bounds volume level.
This is parsed as a negative error code, which causes
HdmiControlService to attempt to construct a VolumeInfo with a
negative volume. This throws an IllegalArgumentException.
To fix this, we ignore <Report Audio Status> messages with out-of-bounds
volume levels. To help prevent future issues, we also enforce that the
AudioStatus object can only represent volume levels in the [0, 100]
range.
Bug: 281821462
Test: atest TvToAudioSystemAvcTest PlaybackDeviceToTvAvcTest
PlaybackDeviceToAudioSystemAvcTest
Change-Id: I31dc0fd58da511262d829a10f7f03a4f0c99c05d
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions