summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2023-08-21 15:38:30 -0700
committer Song Chun Fan <schfan@google.com> 2023-09-06 20:35:57 +0000
commita71de26cceebe9163cde1e772795cdd474d092cc (patch)
tree99a62b83c47cfa92d359e7ef8f89601bfb2f3431 /libs/androidfw/ObbFile.cpp
parenteabdf5da43c5e4881b5ec0e30d8c8945c2bd42b6 (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 Merged-In: I13337d9cbd325c0b6f9e526b3dc44bd4d03e3bd0 Change-Id: I13337d9cbd325c0b6f9e526b3dc44bd4d03e3bd0 (cherry picked from commit 8d19951877566ed72f5380bb6c830984e7942445)
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions