diff options
| author | 2025-01-03 15:26:10 +0000 | |
|---|---|---|
| committer | 2025-01-03 15:32:47 +0000 | |
| commit | 725577915491aa80c30512f87381df3b34d54e27 (patch) | |
| tree | 930ec093d4f31113a8803bd5875710ce79a38b40 /libs/androidfw/AttributeResolution.cpp | |
| parent | 1e379cb5ab615d527a555a112685ffca99b0306e (diff) | |
[Contextual Edu] Add corruptionHandler to handle file corruption
When the proto file is corrupted, it should replace it with a new healthy file instead of throwing fatal exception in systemui.
Bug: 386211247
Test: manually use below command to create a corrupted file and replace the existing one.
It creates a corrupted file by only getting the first 10 bytes of the existing file
"head -c 10 USER10_ContextualEducation.preferences_pb > USER10_ContextualEducation.preferences_pb_corrupted"
run "adb shell stop && adb shell start". With this change, a new empty proto file replaces the corrupted one.
Flag: com.android.systemui.keyboard_touchpad_contextual_education
Change-Id: I9a5a75420a76ff0aefab2e2f9b14770fd7b2ad7a
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions