drm: switch clearkey to apex
This commit is contained in:
@@ -148,7 +148,7 @@ PRODUCT_SET_DEBUGFS_RESTRICTIONS := false
|
|||||||
|
|
||||||
# DRM
|
# DRM
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.drm-service.clearkey
|
com.android.hardware.drm.clearkey
|
||||||
|
|
||||||
# Emergency info
|
# Emergency info
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
1
sepolicy/file.te
Normal file
1
sepolicy/file.te
Normal file
@@ -0,0 +1 @@
|
|||||||
|
type mediadrm_vendor_data_file, file_type, data_file_type;
|
@@ -7,8 +7,7 @@
|
|||||||
/vendor/bin/hw/android\.hardware\.tv\.cec@1\.0-service\.rpi u:object_r:hal_tv_cec_default_exec:s0
|
/vendor/bin/hw/android\.hardware\.tv\.cec@1\.0-service\.rpi u:object_r:hal_tv_cec_default_exec:s0
|
||||||
|
|
||||||
# DRM
|
# DRM
|
||||||
/vendor/bin/hw/android\.hardware\.drm-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0
|
/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0
|
||||||
/vendor/bin/hw/android\.hardware\.drm-service\.widevine(.*)? u:object_r:hal_drm_widevine_exec:s0
|
|
||||||
|
|
||||||
# FFmpeg
|
# FFmpeg
|
||||||
/vendor/bin/hw/android\.hardware\.media\.c2@1\.2-service-ffmpeg u:object_r:mediacodec_exec:s0
|
/vendor/bin/hw/android\.hardware\.media\.c2@1\.2-service-ffmpeg u:object_r:mediacodec_exec:s0
|
||||||
|
@@ -1,10 +1,5 @@
|
|||||||
type hal_drm_clearkey, domain;
|
type hal_drm_clearkey, domain;
|
||||||
type hal_drm_clearkey_exec, exec_type, vendor_file_type, file_type;
|
type hal_drm_clearkey_exec, vendor_file_type, exec_type, file_type;
|
||||||
|
|
||||||
init_daemon_domain(hal_drm_clearkey)
|
init_daemon_domain(hal_drm_clearkey)
|
||||||
|
|
||||||
hal_server_domain(hal_drm_clearkey, hal_drm)
|
hal_server_domain(hal_drm_clearkey, hal_drm)
|
||||||
|
|
||||||
vndbinder_use(hal_drm_clearkey);
|
|
||||||
|
|
||||||
allow hal_drm_clearkey hal_allocator_server:fd use;
|
|
||||||
|
@@ -1,13 +1,8 @@
|
|||||||
type hal_drm_widevine, domain;
|
type hal_drm_widevine, domain;
|
||||||
type hal_drm_widevine_exec, exec_type, vendor_file_type, file_type;
|
type hal_drm_widevine_exec, vendor_file_type, exec_type, file_type;
|
||||||
|
|
||||||
init_daemon_domain(hal_drm_widevine)
|
init_daemon_domain(hal_drm_widevine)
|
||||||
|
|
||||||
hal_server_domain(hal_drm_widevine, hal_drm)
|
hal_server_domain(hal_drm_widevine, hal_drm)
|
||||||
|
|
||||||
vndbinder_use(hal_drm_widevine);
|
allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;
|
||||||
|
allow hal_drm_widevine mediadrm_vendor_data_file:dir create_dir_perms;
|
||||||
allow hal_drm_widevine hal_allocator_server:fd use;
|
|
||||||
allow hal_drm mediacodec:fd use;
|
|
||||||
|
|
||||||
hal_client_domain(hal_drm_widevine, hal_graphics_composer);
|
|
||||||
|
Reference in New Issue
Block a user