diff --git a/proprietary-files.txt b/proprietary-files.txt index 4f1e6b1..1aa38c3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1782,11 +1782,11 @@ system_ext/etc/init/init.vtservice.rc|50a2249906edc06059b443513db47a2ddc0490dc -system_ext/lib64/libvcodec_capenc.so|5527525dfcd25169bc380ac53d8181ffa1429c6f -system_ext/lib64/libvt_avsync.so|632cb05532ef2e022072d91bff3c1ae47c888b7e -system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so|fc3f645734d4e37fa50b77233d63c7b2eb166014 --system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so;MODULE=vendor.mediatek.hardware.videotelephony@1.0.system_ext|aee568e770a3835af2df2262c9dc8bb2911da324 +-system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so|aee568e770a3835af2df2262c9dc8bb2911da324 -vendor/bin/hw/vtservice_hidl|047b26f80b338b7d0869840d243eefebe82d56f5 vendor/etc/init/init.vtservice_hidl.rc|f2e992214ed5bb99c2c2a135cf1f0996dba8a8a0 -vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so|bb9ff554802e7bffb72cf24604109dafcf0019fc --vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so|5e228669d2c575e38fc02a13404f31bc22494b87 +-vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so;MODULE_SUFFIX=_vendor|5e228669d2c575e38fc02a13404f31bc22494b87 # Seccomp vendor/etc/seccomp_policy/mediacodec.policy diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 9a72cbb..b76fed9 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -29,6 +29,25 @@ function vendor_imports() { EOF } +function lib_to_package_fixup_vendor_variants() { + if [ "$2" != "vendor" ]; then + return 1 + fi + case "$1" in + vendor.mediatek.hardware.videotelephony@1.0) + echo "${1}_vendor" + ;; + *) + return 1 + ;; + esac +} +function lib_to_package_fixup() { + lib_to_package_fixup_clang_rt_ubsan_standalone "$1" || + lib_to_package_fixup_proto_3_9_1 "$1" || + lib_to_package_fixup_vendor_variants "$@" +} + # Initialize the helper for common setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true