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

Commit 2d6b59f6 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: 6e0bd264

Change-Id: Ic05c24a0dcf4e9bce8f8d75ecd07b43a6284a59a
parents ff775b3b 6e0bd264
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);