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

Skip to content
Commit 4b99fe8a authored by Yisroel Forta's avatar Yisroel Forta
Browse files

Handle failed AppStartInfo record write

The IOException this catches can leave the write in a bad state causing it to fail later and crash system server.
Store whether individual record writes succeeded and then fail the write if not.
Also manually delete record as it's unlikely to work any better on the next persist.

This was manually confirmed to be the problem by throwing IOException in AppStartInfo#writeToProto and confirming system server crashes.

Test: manually throw an IOException in AppStartInfo#writeToProto, ensure write fails and system server lives
Bug: 342319837
Flag: EXEMPT - bugfix
Change-Id: Id0fa47fdade53bd8f262fbdb8aa1f75136aadcbd
parent 5efe00ed
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