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

Commit 1e8cd047 authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Merge "Check Read permissions when getDocumentMetadata" into rvc-dev am:...

Merge "Check Read permissions when getDocumentMetadata" into rvc-dev am: ffc3e741 am: 8ed5a46e am: e97cc6fb am: 26eeef9e

Change-Id: I830b306ebda9ab57e2097ba8986cc9df01cd5ae9
parents 166f7636 26eeef9e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1274,6 +1274,8 @@ 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);