Merge "Root UID can synthesize AttributionSource values." into sc-dev

This commit is contained in:
Jeff Sharkey
2021-07-14 23:25:08 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}