From bf5b3b29e31b293313788d7464cfb258ac0da803 Mon Sep 17 00:00:00 2001 From: James Dong Date: Mon, 30 Jul 2012 17:57:39 -0700 Subject: Let getOriginalMimeType() take a fd passed from drm java applications This patch enables the drm framework to avoid opening files directly. As a result, the drm framework no longer needs the sdcard read permision. o related-to-bug: 6426185 Change-Id: Ib176c35ef4b1a1a405e8e954f19a7985266f2510 --- include/drm/DrmManagerClient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/drm') diff --git a/include/drm/DrmManagerClient.h b/include/drm/DrmManagerClient.h index a5c6992..866edac 100644 --- a/include/drm/DrmManagerClient.h +++ b/include/drm/DrmManagerClient.h @@ -279,10 +279,11 @@ public: * Retrieves the mime type embedded inside the original content * * @param[in] path the path of the protected content + * @param[in] fd the file descriptor of the protected content * @return String8 * Returns mime-type of the original content, such as "video/mpeg" */ - String8 getOriginalMimeType(const String8& path); + String8 getOriginalMimeType(const String8& path, int fd); /** * Retrieves the type of the protected object (content, rights, etc..) -- cgit v1.1