Merge "Handle ArrayIndexOutOfBoundsException for install_sessions.xml" into main am: 89cc2c3b6f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2609861

Change-Id: I6492b5f05ce96ffc815ff4be5ee7325b98449d50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-07-20 06:01:50 +00:00
committed by Automerger Merge Worker

View File

@@ -482,7 +482,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
}
} catch (FileNotFoundException e) {
// Missing sessions are okay, probably first boot
} catch (IOException | XmlPullParserException e) {
} catch (IOException | XmlPullParserException | ArrayIndexOutOfBoundsException e) {
Slog.wtf(TAG, "Failed reading install sessions", e);
} finally {
IoUtils.closeQuietly(fis);