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:
@@ -482,7 +482,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
|
|||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
// Missing sessions are okay, probably first boot
|
// Missing sessions are okay, probably first boot
|
||||||
} catch (IOException | XmlPullParserException e) {
|
} catch (IOException | XmlPullParserException | ArrayIndexOutOfBoundsException e) {
|
||||||
Slog.wtf(TAG, "Failed reading install sessions", e);
|
Slog.wtf(TAG, "Failed reading install sessions", e);
|
||||||
} finally {
|
} finally {
|
||||||
IoUtils.closeQuietly(fis);
|
IoUtils.closeQuietly(fis);
|
||||||
|
|||||||
Reference in New Issue
Block a user