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

Commit 8ed5a46e 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: ffc3e741

Change-Id: Ib5aeca7f9e73f5b8c3191b8329783f1670b0fd54
parents 57c61de8 ffc3e741
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);