Merge "Validate AttributionSource during unparceling." into sc-dev am: fee338118c

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

Change-Id: I053ab02c3c3d8741c3ecdb0ef6260643ddaaa1b7
This commit is contained in:
TreeHugger Robot
2021-07-13 20:59:09 +00:00
committed by Automerger Merge Worker

View File

@@ -152,6 +152,10 @@ public final class AttributionSource implements Parcelable {
AttributionSource(@NonNull Parcel in) { AttributionSource(@NonNull Parcel in) {
this(AttributionSourceState.CREATOR.createFromParcel(in)); this(AttributionSourceState.CREATOR.createFromParcel(in));
// Since we just unpacked this object as part of it transiting a Binder
// call, this is the perfect time to enforce that its UID can be trusted
enforceCallingUid();
} }
/** @hide */ /** @hide */