Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32222a2f authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Automerger Merge Worker
Browse files

Merge "Root UID can synthesize AttributionSource values." into sc-dev am: 9d0ddef6

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

Change-Id: I0b1bfb252147c3b4b66ac30d2b5d5f3b71fa0b7c
parents 7f7cc857 9d0ddef6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
        }