summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yisroel Forta <yforta@google.com> 2024-05-23 23:01:35 +0000
committer Yisroel Forta <yforta@google.com> 2024-05-24 15:13:24 +0000
commit4b99fe8aec29fe67ccb753cad382218f95fe75f5 (patch)
treedd8ce1fa2a85f8ee0818da4f4a16d640e17edb6c /libs/androidfw/StringPool.cpp
parent5efe00ed04bfccb6b3aeddffa495030db830f1d6 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions