[DO NOT MERGE] Fix build breakage caused by change in PermissionsChecker

Test: m -j
Change-Id: I24c0ee2a8e6826ea81fe46c14bafb3d051bd4e45
(cherry picked from commit 733c064a0b59eb5543e3fc36d395dcbfdf59500e)
diff --git a/src/com/android/providers/media/LocalCallingIdentity.java b/src/com/android/providers/media/LocalCallingIdentity.java
index 583f7a5..2292ff0 100644
--- a/src/com/android/providers/media/LocalCallingIdentity.java
+++ b/src/com/android/providers/media/LocalCallingIdentity.java
@@ -227,7 +227,7 @@
 
     private boolean isRedactionNeededInternal() {
         // System internals or callers holding permission have no redaction
-        if (hasPermission(PERMISSION_IS_SYSTEM) || PermissionChecker.checkPermission(getContext(),
+        if (hasPermission(PERMISSION_IS_SYSTEM) || PermissionChecker.checkPermissionForDataDelivery(getContext(),
                 ACCESS_MEDIA_LOCATION, pid, uid, getPackageName())
                 == PermissionChecker.PERMISSION_GRANTED) {
             return false;