wayne-common: Add SELinux policy for 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

bug: 69635855
Change-Id: I61e9c272c2a2788fd07d5c12921d28c785661b77
This commit is contained in:
Edwin Wong 2018-01-31 10:29:05 -08:00 committed by Isaac Chen
parent 84e5153cd7
commit 52a6298670
2 changed files with 8 additions and 2 deletions

View file

@ -83,16 +83,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>
<fqname>@1.1::ICryptoFactory/clearkey</fqname> <fqname>@1.1::ICryptoFactory/clearkey</fqname>
<fqname>@1.1::IDrmFactory/clearkey</fqname> <fqname>@1.1::IDrmFactory/clearkey</fqname>

View file

@ -200,7 +200,11 @@ PRODUCT_PACKAGES += \
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.0-service.widevine android.hardware.drm@1.1-service.clearkey
# FBE support
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/bin/init.qti.qseecomd.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.qseecomd.sh
# FM # FM
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \