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

Commit 26eeef9e 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

Change-Id: I7b2fb9865012eae2ba7b271091803058dc8ef64d
parents ae9fc485 e97cc6fb
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);