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