diff options
| author | 2022-03-01 19:18:13 +0000 | |
|---|---|---|
| committer | 2022-03-01 19:18:16 +0000 | |
| commit | 9baf0dc3b115b1519fa868b1cd0e53a9cecaee4c (patch) | |
| tree | b03ef1d5cb7294cec7034d2493a81fcd5b68284f | |
| parent | c740b09828acfec17471d4215394c5a1c61e2ab5 (diff) | |
Change unsafe readSparseArray call in ApplicationInfo.
Replace the unsafe readSparseArray API call with the typed version.
Bug: 195622897
Change-Id: Ia874fd8e454ddb145d2e999afb08cb79f693566c
Test: Builds and Boots.
| -rw-r--r-- | core/java/android/content/pm/ApplicationInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index 84c9fa9b375c..a411eeef969b 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -1997,7 +1997,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { splitNames = source.createString8Array(); splitSourceDirs = source.createString8Array(); splitPublicSourceDirs = source.createString8Array(); - splitDependencies = source.readSparseArray(null); + splitDependencies = source.readSparseArray(null, int[].class); nativeLibraryDir = source.readString8(); secondaryNativeLibraryDir = source.readString8(); nativeLibraryRootDir = source.readString8(); |