s5e8825-common: Setup DRM

Change-Id: Idab7bb8f8187d2c7dc0469332b9405e47006026e
Signed-off-by: Majaahh <maja.blaszczak@proton.me>
This commit is contained in:
Tim Zimmerman
2025-08-31 23:17:52 +02:00
committed by Majaahh
parent 3ff1f8bae7
commit 72612d8da6
6 changed files with 138 additions and 0 deletions

View File

@@ -1814,6 +1814,44 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libwvhidl",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libwvhidl.so",
],
shared_libs: [
"android.hardware.drm@1.0",
"android.hardware.drm@1.1",
"android.hardware.drm@1.2",
"android.hardware.drm@1.3",
"android.hardware.drm@1.4",
"android.hidl.memory@1.0",
"libbase",
"libcrypto",
"libcutils",
"libhidlbase",
"libhidlmemory",
"liblog",
"libprotobuf-cpp-lite-3.9.1",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.samsung.hardware.audio-V1-ndk",
owner: "samsung",
@@ -2052,6 +2090,15 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
prebuilt_etc_xml {
name: "manifest_android.hardware.drm@1.4-service.widevine.xml",
owner: "samsung",
src: "proprietary/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.4-service.widevine.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
prebuilt_etc_xml {
name: "secaudiohalaidl_manifest.xml",
owner: "samsung",
@@ -2117,6 +2164,42 @@ cc_prebuilt_binary {
soc_specific: true,
}
cc_prebuilt_binary {
name: "android.hardware.drm@1.4-service.widevine",
owner: "samsung",
target: {
android_arm64: {
srcs: [
"proprietary/vendor/bin/hw/android.hardware.drm@1.4-service.widevine",
],
shared_libs: [
"android.hardware.drm@1.0",
"android.hardware.drm@1.1",
"android.hardware.drm@1.2",
"android.hardware.drm@1.3",
"libbase",
"libhidlbase",
"liblog",
"libutils",
"libbinder",
"android.hardware.drm@1.4",
"libwvhidl",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
soc_specific: true,
}
cc_prebuilt_binary {
name: "rild",
owner: "samsung",

Binary file not shown.

View File

@@ -0,0 +1,28 @@
on property:init.svc.mediadrm=running
mkdir /data/vendor/mediadrm 0770 media mediadrm
start vendor.move_data_sh
service vendor.move_data_sh /system/bin/move_widevine_data.sh
class late_start
user media
group media mediadrm system
disabled
oneshot
service vendor.drm-widevine-hal-1-4 /vendor/bin/hw/android.hardware.drm@1.4-service.widevine
interface android.hardware.drm@1.0::ICryptoFactory widevine
interface android.hardware.drm@1.0::IDrmFactory widevine
interface android.hardware.drm@1.1::ICryptoFactory widevine
interface android.hardware.drm@1.1::IDrmFactory widevine
interface android.hardware.drm@1.2::ICryptoFactory 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.hardware.drm@1.4::ICryptoFactory widevine
interface android.hardware.drm@1.4::IDrmFactory widevine
interface android.hidl.base@1.0::IBase widevine
class hal
user media
group media mediadrm drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 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.4::ICryptoFactory/widevine</fqname>
<fqname>@1.4::IDrmFactory/widevine</fqname>
</hal>
</manifest>

BIN
proprietary/vendor/lib64/libwvhidl.so vendored Normal file

Binary file not shown.

View File

@@ -8,6 +8,7 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_COPY_FILES += \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/SoundBoosterParam.txt:$(TARGET_COPY_OUT_VENDOR)/etc/SoundBoosterParam.txt \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/dolby/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/init/android.hardware.drm@1.4-service.widevine.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.4-service.widevine.rc \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/init/cass.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/cass.rc \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/init/init.baseband.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.baseband.rc \
vendor/samsung/s5e8825-common/proprietary/vendor/etc/init/init.vendor.rilcommon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vendor.rilcommon.rc \
@@ -76,6 +77,7 @@ PRODUCT_PACKAGES += \
libuniapi \
libuniplugin \
libvkmanager_vendor \
libwvhidl \
vendor.samsung.hardware.audio-V1-ndk \
vendor.samsung.hardware.radio-V1-ndk \
vendor.samsung.hardware.radio.bridge-V1-ndk \
@@ -85,11 +87,13 @@ PRODUCT_PACKAGES += \
vendor.samsung.hardware.radio.messaging-V1-ndk \
vendor.samsung.hardware.radio.sim-V1-ndk \
vendor.samsung.hardware.thermal@1.0 \
manifest_android.hardware.drm@1.4-service.widevine.xml \
secaudiohalaidl_manifest.xml \
vendor.samsung.hardware.radio.exclude.slsi.xml \
vendor.samsung.hardware.radio_manifest_2_33.xml \
vendor.samsung.hardware.sehradio_manifest_2_33.xml \
cass \
android.hardware.drm@1.4-service.widevine \
rild \
secaudiohalaidl \
secril_config_svc