summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Santiago Seifert <aquilescanta@google.com> 2025-03-20 15:09:35 +0000
committer Santiago Seifert <aquilescanta@google.com> 2025-03-20 11:59:58 -0700
commitac24d089e2011cbccb63ddaf41d13c3b567187e5 (patch)
tree33d46ecb6446cbf394d2d06443f486df19729a5b /libs/androidfw/StringPool.cpp
parent5f61646a47e67390133cd622d31f37f6af1e020c (diff)
Fix "null or empty system routes" crash in SysUI
This can happen when the media strategy is not available during startup, so a legacy device route controller is instantiated, instead of the "correct" audio manager route controller. This change fixes an implementaiton issue in the legacy route controller, causing it to return an empty collection of available routes, which is in turn used to populate the provider info. This change makes the available routes include the currently selected route. Longer term, we want to get rid of the legacy route controller but, in the meantime, this bugfix prevents a crash in sys ui. Bug: b/357468728 Test: Manually by "forcing" a null media strat. Test: atest LegacyDeviceRouteControllerTest Flag: com.android.media.flags.enable_fix_for_empty_system_routes_crash Change-Id: I5f84bbc9f1102b3df8966be27c7754cd05b53b6b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions