Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f21b907b authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Revert "Check Read permissions when getDocumentMetadata"

This reverts commit c9464617.

Reason for revert: 155930637

Change-Id: Id452d316d1c1721fce715474df009ebe0fb719e8
parent c9464617
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1144,8 +1144,6 @@ public abstract class DocumentsProvider extends ContentProvider {

            out.putParcelable(DocumentsContract.EXTRA_RESULT, path);
        } else if (METHOD_GET_DOCUMENT_METADATA.equals(method)) {
            enforceReadPermissionInner(documentUri, getCallingPackage(),
                    getCallingAttributionTag(), null);
            return getDocumentMetadata(documentId);
        } else {
            throw new UnsupportedOperationException("Method not supported " + method);