diff options
| author | 2023-08-21 15:38:30 -0700 | |
|---|---|---|
| committer | 2023-08-21 15:38:35 -0700 | |
| commit | 8d19951877566ed72f5380bb6c830984e7942445 (patch) | |
| tree | 88b8e01e264cbc457025beec98965f92d10a05eb /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 2ba72c0611a4f1089dcd918c712ad95259f6da5a (diff) | |
[SettingsProvider] clean up if a setting failed to be serialized
Previously, if a setting is partially serialized with an error, the code
doesn't clean it up but proceeds to the next setting. This can cause
parsing errors on the next reboot. This CL captures such error and
deletes the problematic setting before trying again to persist the rest
of the settings. This makes sure that the final file doesn't contain any
partially serialized settings.
BUG: 295555884
Test: manually forcing a setting write to parially fail
Change-Id: I13337d9cbd325c0b6f9e526b3dc44bd4d03e3bd0
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions