-
Notifications
You must be signed in to change notification settings - Fork 7
Widevine L3 DRM support #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# Copyright (C) 2020-2023 Roman Stratiienko ([email protected]) | ||
|
||
$(call inherit-product, glodroid/configuration/common/device-common.mk) | ||
$(call inherit-product, glodroid/devices-community/gd_rpi4/drm/device.mk) | ||
|
||
# Firmware | ||
PRODUCT_COPY_FILES += \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TARGET_ENABLE_MEDIADRM_64 := true | ||
|
||
BOARD_VENDOR_SEPOLICY_DIRS += glodroid/devices-community/gd_rpi4/drm/sepolicy/vendor |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$(call inherit-product, vendor/brcm/rpi4/rpi4-vendor.mk) | ||
|
||
PRODUCT_PACKAGES += \ | ||
android.hardware.drm-service.clearkey \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. + -.-.-.-.widevine \ ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry, my bad, didn't see manifest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I need to move those to gd_rpi4/drm or leave them in the vendor repo... if they stay in the vendor I should also move the Wi-Fi/BT firmware there to be consistent. That's why I left this as a draft, we need to decide if we want L3 DRM support. If we do it is worth checking if it works on the pine phones or not. It should, L3 is software DRM. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rsglobal do you want to include L3 DRM for RP4? If yes, I'll clean up this draft and get rid of the /vendor/brcm/rpi4 repo There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My only concern is the legal one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I get it, L3 is available on Raspbian by apt (libwidevinecdm0). The question is whether we can include the android equivalent or not... I don't know how the license works There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.tomshardware.com/uk/news/raspberry-pi-widevine I could try reaching out to the foundation and see what they say, I am no lawyer. Those libs show up everywhere: https://gitlab.com/rockchip_android_s/rk/platform/vendor/Widevine/-/commit/785cdb58f100144c365f80ad47995b1989557467 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those libs I use come from coral-tp1a.220624.014 btw, I can always add a setup-makefiles script and include them conditionally. But does it change anything? |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type mediadrm_vendor_data_file, file_type, data_file_type; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/vendor/bin/hw/android\.hardware\.drm-service\.widevine u:object_r:hal_drm_widevine_exec:s0 | ||
/vendor/bin/hw/android\.hardware\.drm-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0 | ||
# Data | ||
/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type hal_drm_widevine, domain; | ||
type hal_drm_widevine_exec, exec_type, vendor_file_type, file_type; | ||
|
||
init_daemon_domain(hal_drm_widevine) | ||
|
||
hal_server_domain(hal_drm_widevine, hal_drm) | ||
|
||
vndbinder_use(hal_drm_widevine); | ||
|
||
allow hal_drm_widevine hal_allocator_server:fd use; | ||
allow hal_drm mediacodec:fd use; | ||
|
||
hal_client_domain(hal_drm_widevine, hal_graphics_composer); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
android.hardware.drm.IDrmFactory/widevine u:object_r:hal_drm_service:s0 |
Uh oh!
There was an error while loading. Please reload this page.