Merge "Root UID can synthesize AttributionSource values." into sc-dev am: 9d0ddef67b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15285879 Change-Id: Id4254922cb486ba49eebe55caa74249583c4d5bd
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