Skip to content

Commit

Permalink
miatoll: dynamically load widevine blobs
Browse files Browse the repository at this point in the history
due to some miatoll devices not having a11 fw which leads to them being L3, this should load a11 blobs for a11 devices (currently only curtana) while the default is a10 blobs, temporary
  • Loading branch information
Ramisky authored and Arjun-Ingole committed Aug 3, 2021
1 parent 3a4ab50 commit 7d6dafc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/thermal/thermal-engine-map-joyeuse.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-map-joyeuse.conf \
$(LOCAL_PATH)/thermal/thermal-engine-normal-joyeuse.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-normal-joyeuse.conf \
$(LOCAL_PATH)/thermal/thermal-engine-camera-joyeuse.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-camera-joyeuse.conf

# Widevine
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/widevine/32bit_libcpion_curtana.so:$(TARGET_COPY_OUT_VENDOR)/lib/libcpion_curtana.so \
$(LOCAL_PATH)/widevine/32bit_liboemcrypto_curtana.so:$(TARGET_COPY_OUT_VENDOR)/lib/liboemcrypto_curtana.so \
$(LOCAL_PATH)/widevine/64bit_libcpion_curtana.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libcpion_curtana.so \
$(LOCAL_PATH)/widevine/64bit_liboemcrypto_curtana.so:$(TARGET_COPY_OUT_VENDOR)/lib64/liboemcrypto_curtana.so
6 changes: 6 additions & 0 deletions rootdir/etc/init.device.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ on boot && property:ro.product.vendor.device=*
mount none /vendor/etc/thermal-engine-map-${ro.product.vendor.device}.conf /vendor/etc/thermal-engine-map.conf bind
start thermal-engine

on init && property:ro.boot.hwname=curtana
mount none /vendor/lib/libcpion_curtana.so /vendor/lib/libcpion.so bind
mount none /vendor/lib/liboemcrypto_curtana.so /vendor/lib/liboemcrypto.so bind
mount none /vendor/lib64/libcpion_curtana.so /vendor/lib64/libcpion.so bind
mount none /vendor/lib64/liboemcrypto_curtana.so /vendor/lib64/liboemcrypto.so bind

on init && property:ro.boot.hwname=joyeuse
setprop ro.boot.product.hardware.sku joyeuse
start vendor.nfc_hal_service
Binary file added widevine/32bit_libcpion_curtana.so
Binary file not shown.
Binary file added widevine/32bit_liboemcrypto_curtana.so
Binary file not shown.
Binary file added widevine/64bit_libcpion_curtana.so
Binary file not shown.
Binary file added widevine/64bit_liboemcrypto_curtana.so
Binary file not shown.

0 comments on commit 7d6dafc

Please sign in to comment.