Skip to content

Commit

Permalink
Add Widevine L1_Gen in mixin
Browse files Browse the repository at this point in the history
Signed-off-by: Long, Hanyu <[email protected]>
  • Loading branch information
HawieLong committed Dec 17, 2024
1 parent 36a76ea commit a937a98
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions groups/widevine/L1_Gen/BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BOARD_USE_INTEL_OEMCRYPTO := true
BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/widevine/gen/gen_common

3 changes: 3 additions & 0 deletions groups/widevine/L1_Gen/option.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[defaults]
additional_lib =
widevine_arch =
48 changes: 48 additions & 0 deletions groups/widevine/L1_Gen/product.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#enable Widevine drm
PRODUCT_PROPERTY_OVERRIDES += drm.service.enabled=true


# There is an additional dependency on hdcpd that should be controlled
# through the content-protection mixin

PRODUCT_PACKAGES += com.google.android.widevine
#android.hardware.drm-service.widevine
#com.google.widevine.software.drm.xml \
com.google.widevine.software.drm \
libdrmwvmplugin \
libdrmclearkeyplugin \
libwvm \
libdrmdecrypt \
libWVStreamControlAPI_L1 \
libwvdrm_L1

#PRODUCT_PACKAGES += [email protected] \
[email protected] \
[email protected] \
[email protected] \
libdrmclearkeyplugin \
libwvhidl

# WV Modular
#PRODUCT_PACKAGES += libwvdrmengine

PRODUCT_PACKAGES_ENG += ExoPlayerDemo

PRODUCT_PACKAGES += liboemcrypto \
sigma \

#CP prebuilt binaries
#PRODUCT_PACKAGES += \
libcoreuclient \
libcoreuinterface \
libcoreuservice \
coreu \
cplib \
libpavp \
libpcp \
libskuwa \
msync \
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
TARGET_CFLAGS += -D__ANDROID_APEX__
TARGET_CPPFLAGS += -D__ANDROID_APEX__

0 comments on commit a937a98

Please sign in to comment.