diff options
author | Andreas Huber <andih@google.com> | 2012-04-13 14:54:36 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-04-17 11:22:11 -0700 |
commit | 1608735ef488ecd8c3c012a3b0d4b1d4ef3d93c7 (patch) | |
tree | c77756706095cdb6852e56392e8365bcaa7d9232 /drm | |
parent | a98db787397633155fd71b06ecaa765a7ad20cf2 (diff) | |
download | frameworks_av-1608735ef488ecd8c3c012a3b0d4b1d4ef3d93c7.zip frameworks_av-1608735ef488ecd8c3c012a3b0d4b1d4ef3d93c7.tar.gz frameworks_av-1608735ef488ecd8c3c012a3b0d4b1d4ef3d93c7.tar.bz2 |
Support widevine:// URLs in NuMediaExtractor / java MediaExtractor.
Allow anyone to talk to drm services.
Change-Id: I5c2f3c419d01de30c3d6e2bc85b1fe5c9c37b392
related-to-bug: 6276111
Diffstat (limited to 'drm')
-rw-r--r-- | drm/drmserver/DrmManagerService.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drm/drmserver/DrmManagerService.cpp b/drm/drmserver/DrmManagerService.cpp index 8ba0203..746f506 100644 --- a/drm/drmserver/DrmManagerService.cpp +++ b/drm/drmserver/DrmManagerService.cpp @@ -34,21 +34,7 @@ using namespace android; static Vector<uid_t> trustedUids; static bool isProtectedCallAllowed() { - // TODO - // Following implementation is just for reference. - // Each OEM manufacturer should implement/replace with their own solutions. - bool result = false; - - IPCThreadState* ipcState = IPCThreadState::self(); - uid_t uid = ipcState->getCallingUid(); - - for (unsigned int i = 0; i < trustedUids.size(); ++i) { - if (trustedUids[i] == uid) { - result = true; - break; - } - } - return result; + return true; } void DrmManagerService::instantiate() { |