Skip to content
Snippets Groups Projects
Commit d91b76da authored by Edwin Wong's avatar Edwin Wong Committed by Artem Borisov
Browse files

msm8953-common: Build clearkey HIDL service.

Convert clearkey plugin to HIDL to support drm HAL v1.1.
Add SELinux policy for android.hardware.drm@1.1-service.clearkey.

Test: CTS test
  ANDROID_BUILD_TOP= ./android-ccts-tradefed run cts-dev
  --module CtsMediaTestCases
  -t android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc

Merged-In: I61e9c272c2a2788fd07d5c12921d28c785661b77

bug: 69635855
Change-Id: I2b6dad3cbefa210400c0169b497ed58d355b85ab
parent c6d62ba5
No related branches found
No related tags found
No related merge requests found
...@@ -65,16 +65,18 @@ ...@@ -65,16 +65,18 @@
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.drm</name> <name>android.hardware.drm</name>
<transport>hwbinder</transport> <transport>hwbinder</transport>
<version>1.0</version> <version>1.1</version>
<interface> <interface>
<name>ICryptoFactory</name> <name>ICryptoFactory</name>
<instance>default</instance> <instance>default</instance>
<instance>widevine</instance> <instance>widevine</instance>
<instance>clearkey</instance>
</interface> </interface>
<interface> <interface>
<name>IDrmFactory</name> <name>IDrmFactory</name>
<instance>default</instance> <instance>default</instance>
<instance>widevine</instance> <instance>widevine</instance>
<instance>clearkey</instance>
</interface> </interface>
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
......
...@@ -154,7 +154,8 @@ PRODUCT_PACKAGES += \ ...@@ -154,7 +154,8 @@ PRODUCT_PACKAGES += \
# DRM # DRM
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \ android.hardware.drm@1.0-impl \
android.hardware.drm@1.0-service android.hardware.drm@1.0-service \
android.hardware.drm@1.1-service.clearkey
# Ebtables # Ebtables
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
# HALs # HALs
/(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\.0-service\.widevine u:object_r:hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.1-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.xiaomi_8953 u:object_r:hal_lineage_touch_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.xiaomi_8953 u:object_r:hal_lineage_touch_default_exec:s0
# Location # Location
/data/vendor/location/xtra/socket_hal_xtra u:object_r:location_socket:s0 /data/vendor/location/xtra/socket_hal_xtra u:object_r:location_socket:s0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment