sm8250-common: dolby: Import Dolby audio blobs and sepolicy

This commit is contained in:
2025-09-24 20:57:01 +02:00
parent 2fb8be36c3
commit db108b06ff
18 changed files with 469 additions and 0 deletions

View File

@@ -723,6 +723,47 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libdapparamstorage",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libdapparamstorage.so",
],
shared_libs: [
"libcutils",
"libutils",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libdapparamstorage.so",
],
shared_libs: [
"libcutils",
"libutils",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libdiag",
owner: "xiaomi",
@@ -1620,6 +1661,49 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.dolby.hardware.dms@2.0",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so",
],
shared_libs: [
"libhidlbase",
"liblog",
"libutils",
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
android_arm64: {
srcs: [
"proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so",
],
shared_libs: [
"libhidlbase",
"liblog",
"libutils",
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "both",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.hardware.dsp@1.0",
owner: "xiaomi",
@@ -2264,6 +2348,35 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libdeccfg",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libdeccfg.so",
],
shared_libs: [
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libcutils",
"libutils",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libfastcrc",
owner: "xiaomi",
@@ -2825,6 +2938,74 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libstagefright_soft_ac4dec",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libstagefright_soft_ac4dec.so",
],
shared_libs: [
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libdeccfg",
"libstagefright_foundation-v33",
"libutils",
"libcutils",
"liblog",
"libstagefright_omx",
"libstagefright_softomx",
"libmedia_omx",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libstagefright_soft_ddpdec",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libstagefright_soft_ddpdec.so",
],
shared_libs: [
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libdeccfg",
"libstagefright_omx",
"libstagefright_softomx",
"libstagefright_foundation-v33",
"libutils",
"libcutils",
"libmedia_omx",
"liblog",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libwfdcodecv4l2_proprietary",
owner: "xiaomi",
@@ -3478,6 +3659,38 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libhwdap",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/soundfx/libhwdap.so",
],
shared_libs: [
"liblog",
"libutils",
"libcutils",
"libaudioutils",
"libdapparamstorage",
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
relative_install_path: "soundfx",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libmisoundfx",
owner: "xiaomi",
@@ -3533,6 +3746,70 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libswgamedap",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/soundfx/libswgamedap.so",
],
shared_libs: [
"liblog",
"libutils",
"libcutils",
"libaudioutils",
"libdapparamstorage",
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
relative_install_path: "soundfx",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libswvqe",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/soundfx/libswvqe.so",
],
shared_libs: [
"liblog",
"libutils",
"libcutils",
"libaudioutils",
"libdapparamstorage",
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
relative_install_path: "soundfx",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.hardware.wifidisplaysession@1.0_vendor",
stem: "vendor.qti.hardware.wifidisplaysession@1.0",
@@ -5618,6 +5895,39 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libdlbdsservice",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libdlbdsservice.so",
],
shared_libs: [
"libutils",
"libstagefright_foundation-v33",
"liblog",
"libxml2",
"libcrypto",
"libdapparamstorage",
"libsqlite",
"libhidlbase",
"vendor.dolby.hardware.dms@2.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libdpmqmihal",
owner: "xiaomi",
@@ -8965,6 +9275,36 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.dolby.hardware.dms@2.0-impl",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so",
],
shared_libs: [
"libhidlbase",
"libutils",
"liblog",
"libdapparamstorage",
"libdlbdsservice",
"vendor.dolby.hardware.dms@2.0",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.data.factory@2.0",
owner: "xiaomi",
@@ -12759,6 +13099,15 @@ prebuilt_etc_xml {
soc_specific: true,
}
prebuilt_etc_xml {
name: "manifest_vendor.dolby.hardware.dms.xml",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/manifest_vendor.dolby.hardware.dms.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
cc_prebuilt_binary {
name: "ATFWD-daemon",
owner: "xiaomi",
@@ -13310,6 +13659,38 @@ cc_prebuilt_binary {
soc_specific: true,
}
cc_prebuilt_binary {
name: "vendor.dolby.hardware.dms@2.0-service",
owner: "xiaomi",
target: {
android_arm64: {
srcs: [
"proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service",
],
shared_libs: [
"liblog",
"libutils",
"libhidlbase",
"libdapparamstorage",
"libdlbdsservice",
"vendor.dolby.hardware.dms@2.0",
"vendor.dolby.hardware.dms@2.0-impl",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
soc_specific: true,
}
cc_prebuilt_binary {
name: "vendor.qti.esepowermanager@1.1-service",
owner: "xiaomi",

Binary file not shown.

View File

@@ -0,0 +1,6 @@
service dms-hal-2-0 /vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service
class hal
user media
group audio media
on post-fs-data
mkdir /data/vendor/dolby 0770 media media

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 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.
This file was modified by Dolby Laboratories, Inc. The portions of the
code that are surrounded by "DOLBY..." are copyrighted and
licensed separately, as follows:
(C) 2018 Dolby Laboratories, Inc.
All rights reserved.
This program is protected under international and U.S. Copyright laws as
an unpublished work. This program is confidential and proprietary to the
copyright owners. Reproduction or disclosure, in whole or in part, or the
production of derivative works therefrom without the express permission of
the copyright owners is prohibited.
-->
<Included>
<Decoders>
<!-- DOLBY_UDC -->
<MediaCodec name="OMX.dolby.ac3.decoder" type="audio/ac3">
<Limit name="channel-count" max="6" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-640000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3.decoder" type="audio/eac3">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="32000,44100,48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<MediaCodec name="OMX.dolby.eac3-joc.decoder" type="audio/eac3-joc">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="32000-6144000" />
</MediaCodec>
<!-- DOLBY_UDC END -->
<!-- DOLBY_AC4 -->
<MediaCodec name="OMX.dolby.ac4.decoder" type="audio/ac4">
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="16000-2688000" />
</MediaCodec>
<!-- DOLBY_AC4 END -->
</Decoders>
</Included>

View File

@@ -0,0 +1,11 @@
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.dolby.hardware.dms</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

Binary file not shown.

BIN
proprietary/vendor/lib/libdeccfg.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -93,6 +93,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/shsusrd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/shsusrd.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/ssgtzd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ssgtzd.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.display.color@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.display.color@1.0-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.dolby.hardware.dms@2.0-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.adsprpc-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.adsprpc-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.cdsprpc-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.cdsprpc-service.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vendor.qti.esepowermanager@1.1-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.esepowermanager@1.1-service.rc \
@@ -111,6 +112,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/init/vppservice.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vppservice.rc \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config \
@@ -163,6 +165,7 @@ PRODUCT_PACKAGES += \
libadsprpc \
libc2d30_bltlib \
libcdsprpc \
libdapparamstorage \
libdiag \
libfastcvdsp_stub \
libfastcvopt \
@@ -184,6 +187,7 @@ PRODUCT_PACKAGES += \
libvpphcp \
libvpphvx \
libvpplibrary \
vendor.dolby.hardware.dms@2.0 \
vendor.qti.hardware.dsp@1.0 \
vendor.qti.hardware.vpp@1.1 \
vendor.qti.hardware.vpp@1.2 \
@@ -204,6 +208,7 @@ PRODUCT_PACKAGES += \
libcapiv2svacnn \
libcapiv2svarnn \
libcapiv2vop \
libdeccfg \
libfastcrc \
libgcs-calwrapper \
libgcs-ipc \
@@ -224,6 +229,8 @@ PRODUCT_PACKAGES += \
libqtigef \
libsmwrapper \
libssrec \
libstagefright_soft_ac4dec \
libstagefright_soft_ddpdec \
libwfdcodecv4l2_proprietary \
libwfdcommonutils_proprietary \
libwfdconfigutils_proprietary \
@@ -245,8 +252,11 @@ PRODUCT_PACKAGES += \
libwfduibcsrcinterface_proprietary \
libwfdutils_proprietary \
libasphere \
libhwdap \
libmisoundfx \
libshoebox \
libswgamedap \
libswvqe \
vendor.qti.hardware.wifidisplaysession@1.0_vendor \
vendor.qti.hardware.wifidisplaysessionl@1.0-halimpl \
android.hardware.secure_element@1.0-impl \
@@ -315,6 +325,7 @@ PRODUCT_PACKAGES += \
libdisp-aba \
libdisplayqos \
libdisplayskuutils \
libdlbdsservice \
libdpmqmihal \
libdrmfs \
libdrmtime \
@@ -427,6 +438,7 @@ PRODUCT_PACKAGES += \
vendor.display.color@1.4 \
vendor.display.color@1.5 \
vendor.display.postproc@1.0 \
vendor.dolby.hardware.dms@2.0-impl \
vendor.qti.data.factory@2.0 \
vendor.qti.data.factory@2.1 \
vendor.qti.data.factory@2.2 \
@@ -564,6 +576,7 @@ PRODUCT_PACKAGES += \
android.hardware.neuralnetworks@1.3-service-qti.xml \
c2_manifest_vendor.xml \
manifest_android.hardware.drm@1.3-service.widevine.xml \
manifest_vendor.dolby.hardware.dms.xml \
ATFWD-daemon \
adpl \
adsprpcd \
@@ -580,6 +593,7 @@ PRODUCT_PACKAGES += \
android.hardware.neuralnetworks@1.3-service-qti \
qcrild \
vendor.display.color@1.0-service \
vendor.dolby.hardware.dms@2.0-service \
vendor.qti.esepowermanager@1.1-service \
vendor.qti.hardware.alarm@1.0-service \
vendor.qti.hardware.capabilityconfigstore@1.0-service \