OSDN Git Service

Let getOriginalMimeType() take a fd passed from drm java applications
authorJames Dong <jdong@google.com>
Tue, 31 Jul 2012 00:57:39 +0000 (17:57 -0700)
committerJames Dong <jdong@google.com>
Sat, 11 Aug 2012 00:38:19 +0000 (17:38 -0700)
commitbf5b3b29e31b293313788d7464cfb258ac0da803
tree1e3e016a1f7268688be59047be835a17609977f8
parentb3e12a4d15a329821979bf287c49a9630486e23f
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
19 files changed:
drm/common/DrmEngineBase.cpp
drm/common/IDrmManagerService.cpp
drm/drmserver/DrmManager.cpp
drm/drmserver/DrmManagerService.cpp
drm/libdrmframework/DrmManagerClient.cpp
drm/libdrmframework/DrmManagerClientImpl.cpp
drm/libdrmframework/include/DrmManager.h
drm/libdrmframework/include/DrmManagerClientImpl.h
drm/libdrmframework/include/DrmManagerService.h
drm/libdrmframework/include/IDrmManagerService.h
drm/libdrmframework/plugins/common/include/DrmEngineBase.h
drm/libdrmframework/plugins/common/include/IDrmEngine.h
drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/FwdLockEngine.h
drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp
drm/libdrmframework/plugins/forward-lock/internal-format/decoder/FwdLockFile.c
drm/libdrmframework/plugins/forward-lock/internal-format/decoder/FwdLockFile.h
drm/libdrmframework/plugins/passthru/include/DrmPassthruPlugIn.h
drm/libdrmframework/plugins/passthru/src/DrmPassthruPlugIn.cpp
include/drm/DrmManagerClient.h