sdm845-common: Use Widevine DRM from munch

Change-Id: I51b2e37aae3f1a5497c182707c5ec29f0aafb864
This commit is contained in:
duckyduckG committed 2026-04-04 10:17:33 +05:00
1 parent bcf1992f9b
commit c71226a742
8 files changed
+47 -12

No files matched your search

+17 -8
View File
@@ -8421,14 +8421,14 @@ cc_prebuilt_library_shared {
"android.hardware.drm@1.0", "android.hardware.drm@1.0",
"android.hardware.drm@1.1", "android.hardware.drm@1.1",
"android.hardware.drm@1.2", "android.hardware.drm@1.2",
"android.hardware.drm@1.3",
"android.hidl.memory@1.0", "android.hidl.memory@1.0",
"libbase", "libbase",
"libcrypto",
"libhidlbase", "libhidlbase",
"libhidlmemory", "libhidlmemory",
"libhidltransport",
"libhwbinder",
"liblog", "liblog",
"libprotobuf-cpp-lite-vendorcompat", "libprotobuf-cpp-lite-3.9.1-vendorcompat",
"libutils", "libutils",
"libc++", "libc++",
"libc", "libc",
@@ -8483,8 +8483,9 @@ cc_prebuilt_library_shared {
shared_libs: [ shared_libs: [
"libcrypto_shim", "libcrypto_shim",
"libbase", "libbase",
"libcrypto",
"liblog", "liblog",
"libprotobuf-cpp-lite-vendorcompat", "libprotobuf-cpp-lite-3.9.1-vendorcompat",
"libstagefright_foundation", "libstagefright_foundation",
"libutils", "libutils",
"libc++", "libc++",
@@ -12935,6 +12936,15 @@ prebuilt_etc_xml {
soc_specific: true, soc_specific: true,
} }
prebuilt_etc_xml {
name: "manifest_android.hardware.drm@1.3-service.widevine.xml",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.widevine.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
cc_prebuilt_binary { cc_prebuilt_binary {
name: "ATFWD-daemon", name: "ATFWD-daemon",
owner: "xiaomi", owner: "xiaomi",
@@ -13236,21 +13246,20 @@ cc_prebuilt_binary {
} }
cc_prebuilt_binary { cc_prebuilt_binary {
name: "android.hardware.drm@1.2-service.widevine", name: "android.hardware.drm@1.3-service.widevine",
owner: "xiaomi", owner: "xiaomi",
target: { target: {
android_arm64: { android_arm64: {
srcs: [ srcs: [
"proprietary/vendor/bin/hw/android.hardware.drm@1.2-service.widevine", "proprietary/vendor/bin/hw/android.hardware.drm@1.3-service.widevine",
], ],
shared_libs: [ shared_libs: [
"android.hardware.drm@1.0", "android.hardware.drm@1.0",
"android.hardware.drm@1.1", "android.hardware.drm@1.1",
"android.hardware.drm@1.2", "android.hardware.drm@1.2",
"android.hardware.drm@1.3",
"libbase", "libbase",
"libhidlbase", "libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog", "liblog",
"libutils", "libutils",
"libwvhidl", "libwvhidl",
Binary file not shown.
@@ -9,17 +9,19 @@ service vendor.move_data_sh /system/bin/move_widevine_data.sh
disabled disabled
oneshot oneshot
service vendor.drm-widevine-hal-1-2 /vendor/bin/hw/android.hardware.drm@1.2-service.widevine service vendor.drm-widevine-hal-1-3 /vendor/bin/hw/android.hardware.drm@1.3-service.widevine
interface android.hardware.drm@1.0::ICryptoFactory widevine interface android.hardware.drm@1.0::ICryptoFactory widevine
interface android.hardware.drm@1.0::IDrmFactory widevine interface android.hardware.drm@1.0::IDrmFactory widevine
interface android.hardware.drm@1.1::ICryptoFactory widevine interface android.hardware.drm@1.1::ICryptoFactory widevine
interface android.hardware.drm@1.1::IDrmFactory widevine interface android.hardware.drm@1.1::IDrmFactory widevine
interface android.hardware.drm@1.2::ICryptoFactory widevine interface android.hardware.drm@1.2::ICryptoFactory widevine
interface android.hardware.drm@1.2::IDrmFactory widevine interface android.hardware.drm@1.2::IDrmFactory widevine
interface android.hardware.drm@1.3::ICryptoFactory widevine
interface android.hardware.drm@1.3::IDrmFactory widevine
interface android.hidl.base@1.0::IBase widevine interface android.hidl.base@1.0::IBase widevine
class hal class hal
user media user media
group media mediadrm drmrpc system group media mediadrm drmrpc system
ioprio rt 4 ioprio rt 4
writepid /dev/cpuset/foreground/tasks writepid /dev/cpuset/foreground/tasks
writepid /sys/kernel/ktrace/sched/drm_pid capabilities SYS_NICE
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.drm</name>
<transport>hwbinder</transport>
<fqname>@1.3::ICryptoFactory/widevine</fqname>
<fqname>@1.3::IDrmFactory/widevine</fqname>
</hal>
</manifest>
Binary file not shown.
Binary file not shown.
+3 -2
View File
@@ -54,7 +54,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/default-permissions/com.qualcomm.qti.cne.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/com.qualcomm.qti.cne.xml \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/default-permissions/com.qualcomm.qti.cne.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default-permissions/com.qualcomm.qti.cne.xml \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.bluetooth@1.0-service-qti.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.bluetooth@1.0-service-qti.rc \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.drm@1.1-service.wfdhdcp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.1-service.wfdhdcp.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.drm@1.1-service.wfdhdcp.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.1-service.wfdhdcp.rc \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.drm@1.2-service.widevine.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.2-service.widevine.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.drm@1.3-service.widevine.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.3-service.widevine.rc \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.neuralnetworks@1.3-service-qti.rc \
vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/cnd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/cnd.rc \ vendor/xiaomi/sdm845-common/proprietary/vendor/etc/init/cnd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/cnd.rc \
@@ -539,6 +539,7 @@ PRODUCT_PACKAGES += \
qcrilhook \ qcrilhook \
android.hardware.neuralnetworks@1.3-service-qti-hta.xml \ android.hardware.neuralnetworks@1.3-service-qti-hta.xml \
android.hardware.neuralnetworks@1.3-service-qti.xml \ android.hardware.neuralnetworks@1.3-service-qti.xml \
manifest_android.hardware.drm@1.3-service.widevine.xml \
ATFWD-daemon \ ATFWD-daemon \
adpl \ adpl \
adsprpcd \ adsprpcd \
@@ -548,7 +549,7 @@ PRODUCT_PACKAGES += \
dpmQmiMgr \ dpmQmiMgr \
hvdcp_opti \ hvdcp_opti \
android.hardware.bluetooth@1.0-service-qti \ android.hardware.bluetooth@1.0-service-qti \
android.hardware.drm@1.2-service.widevine \ android.hardware.drm@1.3-service.widevine \
android.hardware.gatekeeper@1.0-service-qti \ android.hardware.gatekeeper@1.0-service-qti \
android.hardware.neuralnetworks@1.3-service-qti \ android.hardware.neuralnetworks@1.3-service-qti \
qcrild \ qcrild \