Merge "Root UID can synthesize AttributionSource values." into sc-dev am: 9d0ddef67b am: 5d6be79488
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15285879 Change-Id: If7f3dec682900d65962238eb2688593e760a5b7d
This commit is contained in:
@@ -252,7 +252,8 @@ public final class AttributionSource implements Parcelable {
|
||||
*/
|
||||
public boolean checkCallingUid() {
|
||||
final int callingUid = Binder.getCallingUid();
|
||||
if (callingUid != Process.SYSTEM_UID
|
||||
if (callingUid != Process.ROOT_UID
|
||||
&& callingUid != Process.SYSTEM_UID
|
||||
&& callingUid != mAttributionSourceState.uid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user