Merge "Validate AttributionSource during unparceling." into sc-dev am: fee338118c am: 0a31518cc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15275356 Change-Id: Ie29230201b4455228f10c3ea8128294faad6596b
This commit is contained in:
@@ -152,6 +152,10 @@ public final class AttributionSource implements Parcelable {
|
||||
|
||||
AttributionSource(@NonNull Parcel 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 */
|
||||
|
||||
Reference in New Issue
Block a user