Skip to content
Snippets Groups Projects
Forked from Dhina17 / platform_frameworks_base
Source project has a limited visibility.
user avatar
Songchun Fan authored
Due to unknown reasons, SettingsProvider has been seeing corrupted xml
files that can cause ArrayIndexOutOfBoundsException during parsing. When
the exception is uncaught, it can cause system crashes and device boot
loop. This CL prevents the exception by checking the index and array
length before indexing. It throws an IOException when the index is out
of bound, such that the SettingsProvider can handle it gracefully.

BUG: 295555884
Test: builds

Cherry-picked from ag/24450007

Change-Id: I7b6c7cf0b6150a3a4046ec35090a63c0912c80c8
26bf0881
History
Name Last commit Last update