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

Commit 988917ae authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Catch AOB exception as it might indicate corrupted packages.xml.

Fixes: 320213947
Test: presubmit
Change-Id: Ibb72a66c7e043703187ccb7f7df1e2e1d38303b1
parent eb4de313
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3437,7 +3437,7 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
                }

                str.close();
            } catch (IOException | XmlPullParserException e) {
            } catch (IOException | XmlPullParserException | ArrayIndexOutOfBoundsException e) {
                // Remove corrupted file and retry.
                atomicFile.failRead(str, e);