summaryrefslogtreecommitdiffstats
path: root/drm
diff options
context:
space:
mode:
authorParamananda Pradhan <parama@codeaurora.org>2015-12-10 18:42:09 +0530
committerSteve Kondik <steve@cyngn.com>2016-01-08 21:03:36 -0800
commitf8eea5d1502a1d7c2751adb56ff02ce215893d2b (patch)
tree0bc072ac945874fa65620fc705ac2e7f6fcaa379 /drm
parent698154336144bf4e76dda488a0b9ef7258775ea9 (diff)
downloadframeworks_av-f8eea5d1502a1d7c2751adb56ff02ce215893d2b.zip
frameworks_av-f8eea5d1502a1d7c2751adb56ff02ce215893d2b.tar.gz
frameworks_av-f8eea5d1502a1d7c2751adb56ff02ce215893d2b.tar.bz2
drm : Give permission to access drm service api from Oma Drm engine
Uses user defined permission "com.oma.drm.permission.ACCESS_OMA_DRM" to access protected api call from Oma Drm util framework. This changes is required for DRM Image support in Android. CRs-Fixed: 941545 Change-Id: If9b7d079612453f51e3e9e9126dd6553e73b8a5a
Diffstat (limited to 'drm')
-rw-r--r--drm/drmserver/DrmManagerService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drm/drmserver/DrmManagerService.cpp b/drm/drmserver/DrmManagerService.cpp
index 857d73e..df08f32 100644
--- a/drm/drmserver/DrmManagerService.cpp
+++ b/drm/drmserver/DrmManagerService.cpp
@@ -93,6 +93,9 @@ bool DrmManagerService::isProtectedCallAllowed(drm_perm_t perm) {
return selinuxIsProtectedCallAllowed(spid, perm);
}
}
+ if (checkCallingPermission(String16("com.oma.drm.permission.ACCESS_OMA_DRM")) == true) {
+ return true;
+ }
return false;
}