summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2021-06-22 12:38:56 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-30 23:58:42 +0000
commit49cb41f9d7d2ec741bc2ec27717283dc560a9060 (patch)
treea94442096b10379c6e9d4bb6d666ebb18409bdcc
parent372088d7721f4c8cb7260d8e9fdaf498c5a30464 (diff)
downloadbase-49cb41f9d7d2ec741bc2ec27717283dc560a9060.tar.gz
Remove ParsedIntentInfo CREATOR
Its existence allows implicit readParcelable calls to invoke a Parcel operation with mismatched read/write data sizes, allowing someone to swap out the data on a reparcel. Internal classes will use writeIntentInfoToParcel, so this is safe to remove. Bug: 191055353 Test: atest com.android.server.pm.test.parsing.parcelling Change-Id: I44faa635faf8a77894a3dda8adf89c10064e53f1 (cherry picked from commit 75214cc510c62f936a713c2da3d0a54db9405957)
-rw-r--r--core/java/android/content/pm/parsing/component/ParsedIntentInfo.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/core/java/android/content/pm/parsing/component/ParsedIntentInfo.java b/core/java/android/content/pm/parsing/component/ParsedIntentInfo.java
index 0ba92cc4fef7..504a7bd5a320 100644
--- a/core/java/android/content/pm/parsing/component/ParsedIntentInfo.java
+++ b/core/java/android/content/pm/parsing/component/ParsedIntentInfo.java
@@ -19,7 +19,6 @@ package android.content.pm.parsing.component;
import android.annotation.Nullable;
import android.content.IntentFilter;
import android.os.Parcel;
-import android.os.Parcelable;
import android.util.Pair;
import com.android.internal.util.DataClass;
@@ -168,19 +167,6 @@ public final class ParsedIntentInfo extends IntentFilter {
+ '}';
}
- public static final Parcelable.Creator<ParsedIntentInfo> CREATOR =
- new Parcelable.Creator<ParsedIntentInfo>() {
- @Override
- public ParsedIntentInfo createFromParcel(Parcel source) {
- return new ParsedIntentInfo(source);
- }
-
- @Override
- public ParsedIntentInfo[] newArray(int size) {
- return new ParsedIntentInfo[size];
- }
- };
-
public boolean isHasDefault() {
return hasDefault;
}