[ALPS03916010] Upgrade to drm hidl 1.1
Google has upgraded drm hidl to version 1.1, need upgrade
all config(device.mk, sepolicy, manifest) to new version.
MTK-Commit-Id: 50b87ab9d8654c2ea1bea22fa9a589fd85481324
Change-Id: I9a36ad250153bcbb446b790bae5942965409fab3
CR-Id: ALPS03916010
Feature: Google Widevine Level1
diff --git a/non_plat/file.te b/non_plat/file.te
index 0ecd67a..6d2003b 100644
--- a/non_plat/file.te
+++ b/non_plat/file.te
@@ -264,3 +264,6 @@
# Purpose : for charger to access vbus info and pump_express
type sysfs_vbus, fs_type, sysfs_type;
type sysfs_pump_express, fs_type, sysfs_type;
+
+# Widevine move data/mediadrm folder from system to vendor
+type mediadrm_vendor_data_file, file_type, data_file_type;
diff --git a/non_plat/file_contexts b/non_plat/file_contexts
index e9d1369..55ea950 100644
--- a/non_plat/file_contexts
+++ b/non_plat/file_contexts
@@ -62,6 +62,7 @@
#/data/vendor/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/vendor/connsyslog(/.*)? u:object_r:consyslog_data_file:s0
/data/vendor/stp_dump(/.*)? u:object_r:stp_dump_data_file:s0
+/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0
# Misc data
#/data/misc/acdapi(/.*)? u:object_r:acdapi_data_file:s0
@@ -558,7 +559,7 @@
/(system\/vendor|vendor)/bin/hw/camerahalserver u:object_r:mtk_hal_camera_exec:s0
/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.imsa@1\.0-service u:object_r:mtk_hal_imsa_exec:s0
#Widevine drm hal
-/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.0-service.widevine u:object_r:hal_drm_widevine_exec:s0
+/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service.widevine u:object_r:hal_drm_widevine_exec:s0
#PQ hal
/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.pq@2\.1-service u:object_r:mtk_hal_pq_exec:s0
# Keymaster Attestation Hal
diff --git a/non_plat/hal_drm_widevine.te b/non_plat/hal_drm_widevine.te
index f49a823..261b156 100644
--- a/non_plat/hal_drm_widevine.te
+++ b/non_plat/hal_drm_widevine.te
@@ -9,6 +9,9 @@
vndbinder_use(hal_drm_widevine);
-#============= hal_drm_widevine ==============
allow hal_drm_widevine debugfs_tracing:file write;
allow hal_drm_widevine debugfs_ion:dir search;
+
+allow hal_drm_default hal_allocator_server:fd use;
+allow hal_drm_widevine mediadrm_vendor_data_file:dir create_dir_perms;
+allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;