Merge "Remove calling UID check from ContentProvider" into sc-dev am: c2c1c0341b am: dcd809e7cd

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

Change-Id: I6488ef52341051e77863a1a0a66f3bf5a7b552cc
This commit is contained in:
Nate Myren
2021-08-05 17:18:56 +00:00
committed by Automerger Merge Worker

View File

@@ -745,9 +745,6 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
if (Binder.getCallingPid() == Process.myPid()) {
return PermissionChecker.PERMISSION_GRANTED;
}
if (!attributionSource.checkCallingUid()) {
return PermissionChecker.PERMISSION_HARD_DENIED;
}
return PermissionChecker.checkPermissionForDataDeliveryFromDataSource(getContext(),
permission, -1, new AttributionSource(getContext().getAttributionSource(),
attributionSource), /*message*/ null);