Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a71de26c authored by Songchun Fan's avatar Songchun Fan Committed by Song Chun Fan
Browse files

[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 8d199518)
parent eabdf5da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment