diff options
| author | 2023-06-16 14:59:46 +0000 | |
|---|---|---|
| committer | 2023-06-16 14:59:46 +0000 | |
| commit | f4c1b063bfbbaf03fb90166aadefec64d29aafc1 (patch) | |
| tree | 8fe5ed062c053cea42fae33d6e2c0af2b24820ca | |
| parent | 7e7ebfc9c796ec108bb79e74a3010d00ef605233 (diff) | |
| parent | b1c9cc744250addfee1d09ade8946162f7526bf4 (diff) | |
Merge "Device stuck in boot due to ArrayIndexOutOfBoundsException"
| -rw-r--r-- | services/core/java/com/android/server/pm/Installer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/Installer.java b/services/core/java/com/android/server/pm/Installer.java index a078b5d4e8b1..e826bf1474f7 100644 --- a/services/core/java/com/android/server/pm/Installer.java +++ b/services/core/java/com/android/server/pm/Installer.java @@ -390,7 +390,7 @@ public class Installer extends SystemService { args[j] = mArgs.get(i + j); } final CreateAppDataResult[] results = installer.createAppDataBatched(args); - for (int j = 0; j < args.length; j++) { + for (int j = 0; j < results.length; j++) { final CreateAppDataResult result = results[j]; final CompletableFuture<Long> future = mFutures.get(i + j); if (result.exceptionCode == 0) { |