Revert "sm8250-common: remove OMX"
- Re-imported from HyperOS Alioth 1.0.3.0.TKHMIXM
This commit is contained in:
363
Android.bp
363
Android.bp
@@ -1925,6 +1925,344 @@ cc_prebuilt_library_shared {
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxAacDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxAacDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxAlacDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxAlacDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxAmrDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxAmrDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxAmrwbplusDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxAmrwbplusDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxApeDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxApeDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxDsdDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxDsdDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libcutils",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxEvrcDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxEvrcDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxG711Dec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxG711Dec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxQcelp13Dec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxQcelp13Dec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxVideoDSMode",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxVideoDSMode.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libmmosal_vendor",
|
||||
"libutils",
|
||||
"libOmxCore",
|
||||
"libwfdcommonutils_proprietary",
|
||||
"libwfdmmservice_proprietary",
|
||||
"libbinder",
|
||||
"libwfdutils_proprietary",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
check_elf_files: false,
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxVpp",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxVpp.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libutils",
|
||||
"libbinder",
|
||||
"libcutils",
|
||||
"libOmxCore",
|
||||
"libvppclient",
|
||||
"vendor.qti.hardware.vpp@1.1",
|
||||
"vendor.qti.hardware.vpp@1.2",
|
||||
"vendor.qti.hardware.capabilityconfigstore@1.0",
|
||||
"libhidlbase",
|
||||
"libhidltransport",
|
||||
"libhwbinder",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
check_elf_files: false,
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libOmxWmaDec",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libOmxWmaDec.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
"libion",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libacdb-fts",
|
||||
owner: "xiaomi",
|
||||
@@ -2264,6 +2602,31 @@ cc_prebuilt_library_shared {
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libdsd2pcm",
|
||||
owner: "xiaomi",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm: {
|
||||
srcs: [
|
||||
"proprietary/vendor/lib/libdsd2pcm.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "32",
|
||||
prefer: true,
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libfastcrc",
|
||||
owner: "xiaomi",
|
||||
|
||||
21
proprietary/vendor/etc/seccomp_policy/mediacodec.policy
vendored
Normal file
21
proprietary/vendor/etc/seccomp_policy/mediacodec.policy
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# device specific syscalls
|
||||
# extension of services/mediacodec/minijail/seccomp_policy/mediacodec-seccomp-arm.policy
|
||||
pselect6: 1
|
||||
eventfd2: 1
|
||||
sendto: 1
|
||||
recvfrom: 1
|
||||
_llseek: 1
|
||||
sysinfo: 1
|
||||
getcwd: 1
|
||||
getdents64: 1
|
||||
ARM_cacheflush: 1
|
||||
inotify_init1: 1
|
||||
inotify_add_watch: 1
|
||||
inotify_rm_watch: 1
|
||||
uname: 1
|
||||
ueventd: 1
|
||||
timer_create: 1
|
||||
timer_settime: 1
|
||||
rt_sigtimedwait: 1
|
||||
readlink: 1
|
||||
open: 1
|
||||
50
proprietary/vendor/etc/system_properties.xml
vendored
Normal file
50
proprietary/vendor/etc/system_properties.xml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<configs>
|
||||
<property name="vidc_dec_log_in" value="0"/>
|
||||
<property name="vidc_dec_log_out" value="0"/>
|
||||
<property name="vidc_enc_log_in" value="0"/>
|
||||
<property name="vidc_enc_log_out" value="0"/>
|
||||
<property name="vidc_enc_csc_custom_matrix" value="0"/>
|
||||
<property name="vidc_perf_control_enable" value="0"/>
|
||||
<!-- Bitmask for linear color: 1: 8-bit, 2: 10-bit -->
|
||||
<property name="vidc_enc_linear_color_format" value="0"/>
|
||||
<!-- Buffer size : internal : 200 MB (200 X 1), output : 200 MB (12.5 X 16) -->
|
||||
<property name="vidc_dec_sec_prefetch_size_internal" value="209715200"/>
|
||||
<property name="vidc_dec_sec_prefetch_size_output" value="13434880"/>
|
||||
<!-- Enable CAC control: 0x0: disabled, 0x1:enabled for 8 bit, 0x2:enabled for 10 bit, 0x3:enabled for 8 and 10 bits both -->
|
||||
<property name="vidc_enc_bitrate_savings_enable" value="3"/>
|
||||
<property name="vidc_enc_auto_blur_disable" value="0"/>
|
||||
<property name="vidc_enc_auto_dynamic_fps_enable" value="1"/>
|
||||
<!-- Bitmask 0: RGB565 1: YUV420P 8-bit, 2: YUV420P 10-bit, 3: YUV420p 8&10 bit -->
|
||||
<property name="vidc_dec_thumbnail_yuv_output" value="0"/>
|
||||
<property name="vidc_enc_quality_boost_enable" value="1"/>
|
||||
<property name="vidc_dec_output_rate" value="120"/>
|
||||
</configs>
|
||||
BIN
proprietary/vendor/lib/libOmxAacDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxAacDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxAlacDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxAlacDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxAmrDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxAmrDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxAmrwbplusDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxAmrwbplusDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxApeDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxApeDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxDsdDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxDsdDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxEvrcDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxEvrcDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxG711Dec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxG711Dec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxQcelp13Dec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxQcelp13Dec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxVideoDSMode.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxVideoDSMode.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxVpp.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxVpp.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libOmxWmaDec.so
vendored
Normal file
BIN
proprietary/vendor/lib/libOmxWmaDec.so
vendored
Normal file
Binary file not shown.
BIN
proprietary/vendor/lib/libdsd2pcm.so
vendored
Normal file
BIN
proprietary/vendor/lib/libdsd2pcm.so
vendored
Normal file
Binary file not shown.
@@ -107,10 +107,12 @@ PRODUCT_COPY_FILES += \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/codec2.vendor.base-arm.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.vendor.base-arm.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/codec2.vendor.ext-arm.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.vendor.ext-arm.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/imsrtp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/imsrtp.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/vendor.qti.hardware.dsp.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/seccomp_policy/wifidisplayhalservice.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/wifidisplayhalservice.policy \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/ssg/ta_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/ta_config.json \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/ssg/tz_whitelist.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/tz_whitelist.json \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/wfdconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wfdconfig.xml \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/wifi/aoa_cldb_falcon.bin:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/aoa_cldb_falcon.bin \
|
||||
vendor/xiaomi/sm8250-common/proprietary/vendor/etc/wifi/aoa_cldb_swl14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/aoa_cldb_swl14.bin \
|
||||
@@ -181,6 +183,18 @@ PRODUCT_PACKAGES += \
|
||||
sound_trigger.primary.kona \
|
||||
vendor.qti.hardware.bluetooth_audio@2.0-impl \
|
||||
libFileMux_proprietary \
|
||||
libOmxAacDec \
|
||||
libOmxAlacDec \
|
||||
libOmxAmrDec \
|
||||
libOmxAmrwbplusDec \
|
||||
libOmxApeDec \
|
||||
libOmxDsdDec \
|
||||
libOmxEvrcDec \
|
||||
libOmxG711Dec \
|
||||
libOmxQcelp13Dec \
|
||||
libOmxVideoDSMode \
|
||||
libOmxVpp \
|
||||
libOmxWmaDec \
|
||||
libacdb-fts \
|
||||
libacdbloader \
|
||||
libacdbrtac \
|
||||
@@ -193,6 +207,7 @@ PRODUCT_PACKAGES += \
|
||||
libcapiv2svacnn \
|
||||
libcapiv2svarnn \
|
||||
libcapiv2vop \
|
||||
libdsd2pcm \
|
||||
libfastcrc \
|
||||
libgcs-calwrapper \
|
||||
libgcs-ipc \
|
||||
|
||||
Reference in New Issue
Block a user