diff --git a/Android.bp b/Android.bp index 74026e7..05ee89c 100644 --- a/Android.bp +++ b/Android.bp @@ -80,34 +80,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "android.frameworks.displayservice@1.0", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/android.frameworks.displayservice@1.0.so", - ], - shared_libs: [ - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "android.hardware.audio.core-impl-mediatek", owner: "xiaomi", @@ -2921,34 +2893,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "lib_android_keymaster_keymint_utils-v36", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/lib_android_keymaster_keymint_utils-v36.so", - ], - shared_libs: [ - "libkeymint_shim", - "android.hardware.security.keymint-V3-ndk-v36", - "libbase-v36", - "libhardware", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "lib_iir", owner: "xiaomi", @@ -4053,31 +3997,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libbase-v36", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libbase-v36.so", - ], - shared_libs: [ - "liblog", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libbessound_hd_mtk_vendor", owner: "xiaomi", @@ -5185,7 +5104,7 @@ cc_prebuilt_library_shared { shared_libs: [ "libbase", "libcodec2", - "libcodec2_vndk_prebuilt", + "libcodec2_vndk", "liblog", "libstagefright_foundation", "server_configurable_flags", @@ -5280,7 +5199,7 @@ cc_prebuilt_library_shared { "libcodec2_hidl@1.0", "libcodec2_hidl@1.1", "libcodec2_hidl@1.2", - "libformatter-v33", + "libformatter", "libdpframework", "android.hardware.graphics.bufferqueue@2.0", "android.hardware.media.bufferpool2-V2-ndk", @@ -5352,7 +5271,7 @@ cc_prebuilt_library_shared { "libcodec2_hidl@1.0", "libcodec2_hidl@1.1", "libcodec2_hidl@1.2", - "libformatter-v33", + "libformatter", "libdpframework", "android.hardware.graphics.bufferqueue@2.0", "android.hardware.media.bufferpool2-V2-ndk", @@ -5416,10 +5335,10 @@ cc_prebuilt_library_shared { "libbase", "liblog", "libcodec2", - "libcodec2_hal_common_prebuilt", - "libcodec2_vndk_prebuilt", + "libcodec2_hal_common", + "libcodec2_vndk", "libutils", - "libcodec2_soft_common_prebuilt", + "libcodec2_soft_common", "libcodec2_store_dolby", "libc++", "libc", @@ -5433,41 +5352,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libcodec2_soft_common_prebuilt", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libcodec2_soft_common_prebuilt.so", - ], - shared_libs: [ - "server_configurable_flags", - "libaconfig_storage_read_api_cc", - "libbase", - "libcodec2", - "libcodec2_hal_common_prebuilt", - "libcodec2_vndk_prebuilt", - "libutils", - "libcutils", - "liblog", - "libsfplugin_ccodec_utils", - "libstagefright_foundation", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libcodec2_soft_ddpdec", owner: "xiaomi", @@ -5489,10 +5373,10 @@ cc_prebuilt_library_shared { "libbase", "liblog", "libcodec2", - "libcodec2_hal_common_prebuilt", - "libcodec2_vndk_prebuilt", + "libcodec2_hal_common", + "libcodec2_vndk", "libutils", - "libcodec2_soft_common_prebuilt", + "libcodec2_soft_common", "libcodec2_store_dolby", "libc++", "libc", @@ -5524,8 +5408,8 @@ cc_prebuilt_library_shared { "libbase", "liblog", "libcodec2", - "libcodec2_hal_common_prebuilt", - "libcodec2_vndk_prebuilt", + "libcodec2_hal_common", + "libcodec2_vndk", "libutils", "libc++", "libc", @@ -6674,33 +6558,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libcppcose_rkp_prebuilt", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libcppcose_rkp_prebuilt.so", - ], - shared_libs: [ - "libcppbor", - "libcrypto", - "liblog", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libcustom_nvram", owner: "xiaomi", @@ -7325,7 +7182,7 @@ cc_prebuilt_library_shared { } cc_prebuilt_library_shared { - name: "libformatter-v33", + name: "libformatter", owner: "xiaomi", strip: { none: true, @@ -7333,7 +7190,7 @@ cc_prebuilt_library_shared { target: { android_arm64: { srcs: [ - "proprietary/vendor/lib64/libformatter-v33.so", + "proprietary/vendor/lib64/libformatter.so", ], shared_libs: [ "libion_mtk", @@ -8147,110 +8004,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libkeymint-v36", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libkeymint-v36.so", - ], - shared_libs: [ - "libkeymint_shim", - "android.hardware.security.keymint-V3-ndk-v36", - "libhidlbase", - "android.hardware.security.rkp-V3-ndk", - "android.hardware.security.secureclock-V1-ndk", - "android.hardware.security.sharedsecret-V1-ndk", - "lib_android_keymaster_keymint_utils-v36", - "libbase-v36", - "libbinder_ndk", - "libcppbor", - "libcrypto", - "libcutils", - "libkeymaster_messages", - "libkeymaster_portable", - "liblog", - "libpuresoftkeymasterdevice", - "libutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libkeymint_remote_prov_support-v36", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libkeymint_remote_prov_support-v36.so", - ], - shared_libs: [ - "libkeymint_shim", - "android.hardware.security.keymint-V3-ndk-v36", - "libbase-v36", - "libbinder_ndk", - "libcppbor", - "libcppcose_rkp_prebuilt", - "libcrypto", - "libkeymaster_portable", - "libjsoncpp", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libkeymint_support-v36", - owner: "xiaomi", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libkeymint_support-v36.so", - ], - shared_libs: [ - "libkeymint_shim", - "android.hardware.security.keymint-V3-ndk-v36", - "libbase-v36", - "libcrypto", - "libutils", - "libhardware", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libladder", owner: "xiaomi", @@ -21901,7 +21654,7 @@ cc_prebuilt_library_shared { } cc_prebuilt_library_shared { - name: "libmnld", + name: "libmnl", owner: "xiaomi", strip: { none: true, @@ -21909,7 +21662,7 @@ cc_prebuilt_library_shared { target: { android_arm64: { srcs: [ - "proprietary/vendor/lib64/mt6899/libmnld.so", + "proprietary/vendor/lib64/mt6899/libmnl.so", ], shared_libs: [ "libc++", @@ -32765,7 +32518,6 @@ cc_prebuilt_library_shared { "proprietary/system_ext/lib64/libsink-mtk.so", ], shared_libs: [ - "libaudioclient_shim", "libbinder", "libcutils", "libgui", @@ -36893,9 +36645,8 @@ cc_prebuilt_library_shared { "proprietary/odm/lib64/libgoogleid.so", ], shared_libs: [ - "libkeymint_shim", "liblog", - "libbase-v36", + "libbase", "libcrypto", "libutils", "libbinder", @@ -36906,12 +36657,12 @@ cc_prebuilt_library_shared { "libxml2", "vendor.xiaomi.hardware.idmanager-V1-ndk", "libkeymaster_messages", - "lib_android_keymaster_keymint_utils-v36", + "lib_android_keymaster_keymint_utils", "libhardware", "libkeymaster4support", - "libkeymint-v36", - "libkeymint_support-v36", - "libkeymint_remote_prov_support-v36", + "libkeymint", + "libkeymint_support", + "libkeymint_remote_prov_support", "android.hardware.security.keymint-V3-ndk-v36", "android.hardware.secure_element-V1-ndk", "libc++", @@ -37753,7 +37504,6 @@ cc_prebuilt_library_shared { "proprietary/odm/lib64/libmt_mitee.so", ], shared_libs: [ - "libkeymint_shim", "vendor.xiaomi.hardware.aidl.mtdservice-V1-ndk", "libcrypto", "liblog", @@ -37771,12 +37521,12 @@ cc_prebuilt_library_shared { "vendor.xiaomi.hardware.idmanager-V1-ndk", "libhardware", "libkeymaster4support", - "lib_android_keymaster_keymint_utils-v36", - "libkeymint-v36", + "lib_android_keymaster_keymint_utils", + "libkeymint", "libkeymaster_messages", - "libkeymint_support-v36", + "libkeymint_support", "android.hardware.security.keymint-V3-ndk-v36", - "libkeymint_remote_prov_support-v36", + "libkeymint_remote_prov_support", "libmisight", "libc++", "libc", @@ -38470,6 +38220,46 @@ android_app_import { device_specific: true, } +dex_import { + name: "mediatek-ims-base", + owner: "xiaomi", + jars: [ + "proprietary/system/framework/mediatek-ims-base.jar", + ], +} + +dex_import { + name: "mediatek-ims-common", + owner: "xiaomi", + jars: [ + "proprietary/system/framework/mediatek-ims-common.jar", + ], +} + +dex_import { + name: "mediatek-telecom-common", + owner: "xiaomi", + jars: [ + "proprietary/system/framework/mediatek-telecom-common.jar", + ], +} + +dex_import { + name: "mediatek-telephony-base", + owner: "xiaomi", + jars: [ + "proprietary/system/framework/mediatek-telephony-base.jar", + ], +} + +dex_import { + name: "mediatek-telephony-common", + owner: "xiaomi", + jars: [ + "proprietary/system/framework/mediatek-telephony-common.jar", + ], +} + dex_import { name: "androidx.camera.extensions.impl", owner: "xiaomi", @@ -38488,26 +38278,6 @@ dex_import { system_ext_specific: true, } -dex_import { - name: "mediatek-ims-base", - owner: "xiaomi", - jars: [ - "proprietary/system_ext/framework/mediatek-ims-base.jar", - ], - system_ext_specific: true, - use_generic_config: true, -} - -dex_import { - name: "mediatek-ims-common", - owner: "xiaomi", - jars: [ - "proprietary/system_ext/framework/mediatek-ims-common.jar", - ], - system_ext_specific: true, - use_generic_config: true, -} - dex_import { name: "mediatek-ims-extension-plugin", owner: "xiaomi", @@ -38517,36 +38287,6 @@ dex_import { system_ext_specific: true, } -dex_import { - name: "mediatek-telecom-common", - owner: "xiaomi", - jars: [ - "proprietary/system_ext/framework/mediatek-telecom-common.jar", - ], - system_ext_specific: true, - use_generic_config: true, -} - -dex_import { - name: "mediatek-telephony-base", - owner: "xiaomi", - jars: [ - "proprietary/system_ext/framework/mediatek-telephony-base.jar", - ], - system_ext_specific: true, - use_generic_config: true, -} - -dex_import { - name: "mediatek-telephony-common", - owner: "xiaomi", - jars: [ - "proprietary/system_ext/framework/mediatek-telephony-common.jar", - ], - system_ext_specific: true, - use_generic_config: true, -} - prebuilt_etc_xml { name: "CommandService.xml", owner: "xiaomi", @@ -38736,6 +38476,15 @@ prebuilt_etc_xml { soc_specific: true, } +prebuilt_etc_xml { + name: "manifest_media_c2_default.xml", + owner: "xiaomi", + src: "proprietary/vendor/etc/vintf/manifest/manifest_media_c2_default.xml", + filename_from_src: true, + sub_dir: "vintf/manifest", + soc_specific: true, +} + prebuilt_etc_xml { name: "manifest_mmlpq.xml", owner: "xiaomi", @@ -38889,7 +38638,6 @@ cc_prebuilt_binary { "proprietary/system/bin/spkcal", ], shared_libs: [ - "libaudiobase", "liblog", "libutils", "libaudioclient", @@ -39351,6 +39099,104 @@ cc_prebuilt_binary { soc_specific: true, } +cc_prebuilt_binary { + name: "android.hardware.media.c2-mediatek-64b", + owner: "xiaomi", + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/bin/hw/android.hardware.media.c2-mediatek-64b", + ], + shared_libs: [ + "server_configurable_flags", + "libaconfig_storage_read_api_cc", + "libcodec2_hal_common", + "libcodec2_aidl_prebuilt", + "libbase", + "liblog", + "libcodec2", + "libutils", + "android.hardware.media.c2@1.0", + "android.hardware.media.c2@1.1", + "android.hardware.media.c2@1.2", + "libcodec2_hidl@1.0", + "libcodec2_hidl@1.1", + "libcodec2_hidl@1.2", + "libcodec2_vndk", + "libhidlbase", + "libcutils", + "libavservices_minijail", + "libbinder", + "libbinder_ndk", + "libcodec2_mtk_c2store", + "libcodec2_mtk_vdec", + "libcodec2_mtk_venc", + "android.hardware.media.c2-V1-ndk", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + strip: { + none: true, + }, + prefer: true, + relative_install_path: "hw", + soc_specific: true, +} + +cc_prebuilt_binary { + name: "android.hardware.media.c2@1.2-mediatek-64b", + owner: "xiaomi", + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b", + ], + shared_libs: [ + "server_configurable_flags", + "libaconfig_storage_read_api_cc", + "libcodec2_hal_common", + "android.hardware.media.c2-V1-ndk", + "libcodec2_aidl", + "libbase", + "liblog", + "libcodec2", + "libutils", + "android.hardware.media.c2@1.0", + "android.hardware.media.c2@1.1", + "android.hardware.media.c2@1.2", + "libcodec2_hidl@1.0", + "libcodec2_hidl@1.1", + "libcodec2_hidl@1.2", + "libcodec2_vndk", + "libhidlbase", + "libcutils", + "libavservices_minijail", + "libbinder", + "libbinder_ndk", + "libcodec2_mtk_c2store", + "libcodec2_mtk_vdec", + "libcodec2_mtk_venc", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + strip: { + none: true, + }, + prefer: true, + relative_install_path: "hw", + soc_specific: true, +} + cc_prebuilt_binary { name: "android.hardware.neuralnetworks-shim-service-mtk", owner: "xiaomi", @@ -39428,26 +39274,25 @@ cc_prebuilt_binary { "proprietary/vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee", ], shared_libs: [ - "libkeymint_shim", "android.hardware.security.keymint-V3-ndk-v36", "libteecli", "libhidlbase", "android.hardware.security.rkp-V3-ndk", "android.hardware.security.secureclock-V1-ndk", "android.hardware.security.sharedsecret-V1-ndk", - "lib_android_keymaster_keymint_utils-v36", - "libbase-v36", + "lib_android_keymaster_keymint_utils", + "libbase", "libbinder_ndk", "libcrypto", "libhardware", "libkeymaster_messages", - "libkeymint-v36", + "libkeymint", "liblog", "libtrusty", "libutils", "libcutils", "libcppbor_external", - "libcppcose_rkp_prebuilt", + "libcppcose_rkp", "libc++", "libc", "libm", @@ -39686,7 +39531,7 @@ cc_prebuilt_binary { "libbase", "liblog", "libcodec2", - "libcodec2_hal_common_prebuilt", + "libcodec2_hal_common", "libutils", "android.hardware.media.c2@1.0", "android.hardware.media.c2@1.1", @@ -39694,7 +39539,7 @@ cc_prebuilt_binary { "libcodec2_hidl@1.0", "libcodec2_hidl@1.1", "libcodec2_hidl@1.2", - "libcodec2_vndk_prebuilt", + "libcodec2_vndk", "libhidlbase", "libavservices_minijail", "libbinder", @@ -40118,7 +39963,7 @@ cc_prebuilt_binary { "proprietary/vendor/bin/mnld", ], shared_libs: [ - "libmnld", + "libmnl", "libcurl", "libcutils", "libnvram", @@ -40488,7 +40333,6 @@ cc_prebuilt_binary { "proprietary/system_ext/bin/spkcal_88263s_m9", ], shared_libs: [ - "libaudiobase", "libstagefright", "liblog", "libutils", @@ -40521,7 +40365,6 @@ cc_prebuilt_binary { "proprietary/system_ext/bin/spkcal_p10", ], shared_libs: [ - "libaudiobase", "libstagefright", "liblog", "libutils", @@ -40555,7 +40398,6 @@ cc_prebuilt_binary { "proprietary/system_ext/bin/spkcal_si_o12u", ], shared_libs: [ - "libaudiobase", "libcutils", "libutils", "liblog", @@ -40587,7 +40429,6 @@ cc_prebuilt_binary { "proprietary/system_ext/bin/spkcal_tfa98xx", ], shared_libs: [ - "libaudiobase", "libstagefright", "liblog", "libutils", @@ -43072,10 +42913,10 @@ install_symlink { } install_symlink { - name: "vendor_lib64_libmnld_so", + name: "vendor_lib64_libmnl_so", soc_specific: true, - installed_location: "lib64/libmnld.so", - symlink_target: "/vendor/lib64/mt6899/libmnld.so", + installed_location: "lib64/libmnl.so", + symlink_target: "/vendor/lib64/mt6899/libmnl.so", } install_symlink { diff --git a/klee-vendor.mk b/klee-vendor.mk index 6f51e4e..3db9196 100644 --- a/klee-vendor.mk +++ b/klee-vendor.mk @@ -606,6 +606,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.gnss-service.mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gnss-service.mediatek.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.graphics.composer@3.3-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.graphics.composer@3.3-service.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.identity@5.0-service.mitee.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.identity@5.0-service.mitee.rc \ + vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.media.c2-mediatek-64b.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.c2-mediatek-64b.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.neuralnetworks-shim-service-mtk.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.neuralnetworks-shim-service-mtk.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc \ vendor/xiaomi/klee/proprietary/vendor/etc/init/android.hardware.security.keymint.mitee@3.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.security.keymint.mitee@3.0-service.rc \ @@ -743,6 +744,8 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/klee/proprietary/vendor/etc/permissions/com.mediatek.hardware.vow_dsp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.mediatek.hardware.vow_dsp.xml \ vendor/xiaomi/klee/proprietary/vendor/etc/pq_flag.xml:$(TARGET_COPY_OUT_VENDOR)/etc/pq_flag.xml \ vendor/xiaomi/klee/proprietary/vendor/etc/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \ + vendor/xiaomi/klee/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-extended-seccomp-policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/android.hardware.media.c2@1.2-extended-seccomp-policy \ + vendor/xiaomi/klee/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-mediatek-seccomp-policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/android.hardware.media.c2@1.2-mediatek-seccomp-policy \ vendor/xiaomi/klee/proprietary/vendor/etc/sensor_diag.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/sensor_diag.cfg \ vendor/xiaomi/klee/proprietary/vendor/etc/slp_conf:$(TARGET_COPY_OUT_VENDOR)/etc/slp_conf \ vendor/xiaomi/klee/proprietary/vendor/etc/smartpa_param/AW_DSP.bin:$(TARGET_COPY_OUT_VENDOR)/etc/smartpa_param/AW_DSP.bin \ @@ -1115,7 +1118,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ APUWareApusysAidlServer \ APUWareUtilsAidlServer \ - android.frameworks.displayservice@1.0 \ android.hardware.audio.core-impl-mediatek \ android.hardware.bluetooth.audio-impl-mediatek \ android.hardware.security.keymint-V3-ndk-v36 \ @@ -1199,7 +1201,6 @@ PRODUCT_PACKAGES += \ libSQLiteModule_VER_ALL \ libXMFaceFocus-vendor \ libXMFaceFocus1206 \ - lib_android_keymaster_keymint_utils-v36 \ lib_iir \ libaaa_aaautil \ libaaa_afassist_V2 \ @@ -1240,7 +1241,6 @@ PRODUCT_PACKAGES += \ libaudiotoolkit_vendor \ libaurisysdemo \ libawinicsmartpaparse \ - libbase-v36 \ libbessound_hd_mtk_vendor \ libblisrc32_vendor \ libbluetooth_audio_session_aidl_mtk \ @@ -1283,7 +1283,6 @@ PRODUCT_PACKAGES += \ libcodec2_mtk_vdec \ libcodec2_mtk_venc \ libcodec2_soft_ac4dec \ - libcodec2_soft_common_prebuilt \ libcodec2_soft_ddpdec \ libcodec2_store_dolby \ libcodec2_vndk_prebuilt \ @@ -1318,7 +1317,6 @@ PRODUCT_PACKAGES += \ libcom.xiaomi.timer \ libcomposer_ext \ libconnfem \ - libcppcose_rkp_prebuilt \ libcustom_nvram \ libcvsd_mtk \ libdapparamstorage \ @@ -1340,7 +1338,7 @@ PRODUCT_PACKAGES += \ libfgauge_gm30 \ libfile_op \ libforkexecwrap \ - libformatter-v33 \ + libformatter \ libfsmsmartpaparse \ libfvaudio \ libged \ @@ -1369,9 +1367,6 @@ PRODUCT_PACKAGES += \ libjpeg-alpha_vendor \ libjpegdecoder_klee \ libjpegencoder_klee \ - libkeymint-v36 \ - libkeymint_remote_prov_support-v36 \ - libkeymint_support-v36 \ libladder \ libmbrainSDKv \ libmcve \ @@ -1799,7 +1794,7 @@ PRODUCT_PACKAGES += \ libmmagent \ libmml \ libmmlpqImpl \ - libmnld \ + libmnl \ libmtk_mali_utils \ libmtkcam.atmseventmgr \ libmtkcam.debugwrapper \ @@ -2300,14 +2295,14 @@ PRODUCT_PACKAGES += \ MtkTelephonyAssist \ OpticalTestTool_klee \ goodix_sz_klee \ - androidx.camera.extensions.impl \ - com.android.hotwordenrollment.common.util \ mediatek-ims-base \ mediatek-ims-common \ - mediatek-ims-extension-plugin \ mediatek-telecom-common \ mediatek-telephony-base \ mediatek-telephony-common \ + androidx.camera.extensions.impl \ + com.android.hotwordenrollment.common.util \ + mediatek-ims-extension-plugin \ CommandService.xml \ android.hardware.audio.effect.service-aidl.xml \ android.hardware.audio.service-aidl.mediatek.xml \ @@ -2329,6 +2324,7 @@ PRODUCT_PACKAGES += \ manifest_cameraprovider.xml \ manifest_hwcomposer.xml \ manifest_isphal.xml \ + manifest_media_c2_default.xml \ manifest_mmlpq.xml \ manifest_mtkgpuserv.xml \ manifest_uievent.xml \ @@ -2360,6 +2356,8 @@ PRODUCT_PACKAGES += \ android.hardware.gnss-service.mediatek \ android.hardware.graphics.composer@3.3-service \ android.hardware.identity-service.mitee@5.0 \ + android.hardware.media.c2-mediatek-64b \ + android.hardware.media.c2@1.2-mediatek-64b \ android.hardware.neuralnetworks-shim-service-mtk \ android.hardware.secure_element@1.2-service-mediatek \ android.hardware.security.keymint@3.0-service.mitee \ @@ -2714,7 +2712,7 @@ PRODUCT_PACKAGES += \ vendor_lib64_libmmagent_so \ vendor_lib64_libmml_so \ vendor_lib64_libmmlpqImpl_so \ - vendor_lib64_libmnld_so \ + vendor_lib64_libmnl_so \ vendor_lib64_libmtk_mali_utils_so \ vendor_lib64_libmtkcam_atmseventmgr_so \ vendor_lib64_libmtkcam_debugwrapper_so \ @@ -2879,8 +2877,8 @@ PRODUCT_PACKAGES += \ vendor_lib64_rodinsc820csultra_mipi_raw_tuning_so PRODUCT_BOOT_JARS += \ - system_ext:mediatek-ims-base \ - system_ext:mediatek-ims-common \ - system_ext:mediatek-telecom-common \ - system_ext:mediatek-telephony-base \ - system_ext:mediatek-telephony-common + mediatek-ims-base \ + mediatek-ims-common \ + mediatek-telecom-common \ + mediatek-telephony-base \ + mediatek-telephony-common diff --git a/proprietary/odm/lib64/libgoogleid.so b/proprietary/odm/lib64/libgoogleid.so index bbbf615..f2d139e 100644 Binary files a/proprietary/odm/lib64/libgoogleid.so and b/proprietary/odm/lib64/libgoogleid.so differ diff --git a/proprietary/odm/lib64/libmt_mitee.so b/proprietary/odm/lib64/libmt_mitee.so index 0381cc7..54e21b6 100644 Binary files a/proprietary/odm/lib64/libmt_mitee.so and b/proprietary/odm/lib64/libmt_mitee.so differ diff --git a/proprietary/system/bin/spkcal b/proprietary/system/bin/spkcal index 387af85..73d570a 100755 Binary files a/proprietary/system/bin/spkcal and b/proprietary/system/bin/spkcal differ diff --git a/proprietary/system_ext/framework/mediatek-ims-base.jar b/proprietary/system/framework/mediatek-ims-base.jar similarity index 100% rename from proprietary/system_ext/framework/mediatek-ims-base.jar rename to proprietary/system/framework/mediatek-ims-base.jar diff --git a/proprietary/system_ext/framework/mediatek-ims-common.jar b/proprietary/system/framework/mediatek-ims-common.jar similarity index 100% rename from proprietary/system_ext/framework/mediatek-ims-common.jar rename to proprietary/system/framework/mediatek-ims-common.jar diff --git a/proprietary/system_ext/framework/mediatek-telecom-common.jar b/proprietary/system/framework/mediatek-telecom-common.jar similarity index 100% rename from proprietary/system_ext/framework/mediatek-telecom-common.jar rename to proprietary/system/framework/mediatek-telecom-common.jar diff --git a/proprietary/system_ext/framework/mediatek-telephony-base.jar b/proprietary/system/framework/mediatek-telephony-base.jar similarity index 100% rename from proprietary/system_ext/framework/mediatek-telephony-base.jar rename to proprietary/system/framework/mediatek-telephony-base.jar diff --git a/proprietary/system_ext/framework/mediatek-telephony-common.jar b/proprietary/system/framework/mediatek-telephony-common.jar similarity index 100% rename from proprietary/system_ext/framework/mediatek-telephony-common.jar rename to proprietary/system/framework/mediatek-telephony-common.jar diff --git a/proprietary/system_ext/bin/spkcal_88263s_m9 b/proprietary/system_ext/bin/spkcal_88263s_m9 index b3e77f0..ea17734 100755 Binary files a/proprietary/system_ext/bin/spkcal_88263s_m9 and b/proprietary/system_ext/bin/spkcal_88263s_m9 differ diff --git a/proprietary/system_ext/bin/spkcal_p10 b/proprietary/system_ext/bin/spkcal_p10 index 6442c30..86cf3e9 100755 Binary files a/proprietary/system_ext/bin/spkcal_p10 and b/proprietary/system_ext/bin/spkcal_p10 differ diff --git a/proprietary/system_ext/bin/spkcal_si_o12u b/proprietary/system_ext/bin/spkcal_si_o12u index 1b2d0d0..ac6141b 100755 Binary files a/proprietary/system_ext/bin/spkcal_si_o12u and b/proprietary/system_ext/bin/spkcal_si_o12u differ diff --git a/proprietary/system_ext/bin/spkcal_tfa98xx b/proprietary/system_ext/bin/spkcal_tfa98xx index 93ec39e..29db26f 100755 Binary files a/proprietary/system_ext/bin/spkcal_tfa98xx and b/proprietary/system_ext/bin/spkcal_tfa98xx differ diff --git a/proprietary/system_ext/lib64/libsink-mtk.so b/proprietary/system_ext/lib64/libsink-mtk.so index 5a75583..df172f2 100644 Binary files a/proprietary/system_ext/lib64/libsink-mtk.so and b/proprietary/system_ext/lib64/libsink-mtk.so differ diff --git a/proprietary/vendor/bin/hw/android.hardware.media.c2-mediatek-64b b/proprietary/vendor/bin/hw/android.hardware.media.c2-mediatek-64b new file mode 100755 index 0000000..659ab8f Binary files /dev/null and b/proprietary/vendor/bin/hw/android.hardware.media.c2-mediatek-64b differ diff --git a/proprietary/vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b b/proprietary/vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b new file mode 100755 index 0000000..c731a4a Binary files /dev/null and b/proprietary/vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b differ diff --git a/proprietary/vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee b/proprietary/vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee index fd829b5..c0f8fed 100755 Binary files a/proprietary/vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee and b/proprietary/vendor/bin/hw/android.hardware.security.keymint@3.0-service.mitee differ diff --git a/proprietary/vendor/bin/hw/vendor.dolby.media.c2-default-service-dax b/proprietary/vendor/bin/hw/vendor.dolby.media.c2-default-service-dax index 1b0a18c..caeb7d9 100755 Binary files a/proprietary/vendor/bin/hw/vendor.dolby.media.c2-default-service-dax and b/proprietary/vendor/bin/hw/vendor.dolby.media.c2-default-service-dax differ diff --git a/proprietary/vendor/bin/mnld b/proprietary/vendor/bin/mnld index feb2e94..ee3cd31 100755 Binary files a/proprietary/vendor/bin/mnld and b/proprietary/vendor/bin/mnld differ diff --git a/proprietary/vendor/etc/init/android.hardware.media.c2-mediatek-64b.rc b/proprietary/vendor/etc/init/android.hardware.media.c2-mediatek-64b.rc new file mode 100644 index 0000000..0cc2b20 --- /dev/null +++ b/proprietary/vendor/etc/init/android.hardware.media.c2-mediatek-64b.rc @@ -0,0 +1,7 @@ +service android-hardware-media-c2-hal /vendor/bin/hw/android.hardware.media.c2-mediatek-64b + class hal + user mediacodec + group camera drmrpc mediadrm media_rw sdcard_rw media system audio inet net_bt net_bt_admin net_bw_acct sdcard_r + ioprio rt 4 + task_profiles ProcessCapacityHigh HighPerformance + diff --git a/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-extended-seccomp-policy b/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-extended-seccomp-policy new file mode 100644 index 0000000..e0b3dd9 --- /dev/null +++ b/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-extended-seccomp-policy @@ -0,0 +1,44 @@ +connect: 1 +fcntl64: 1 +socket: 1 +writev: 1 +clock_nanosleep: 1 +eventfd2: 1 +sched_getparam: 1 +sched_getscheduler :1 +setsockopt: 1 +bind: 1 +listen: 1 + +# Add more for 32bits process, from android.hardware.media.c2@1.1-default-arm.policy +mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE +ftruncate64: 1 +getuid32: 1 +open: 1 +fstat64: 1 +readlink: 1 +fstatfs64: 1 +_llseek: 1 +fstatat64: 1 +ugetrlimit: 1 +# crash dump policy additions +sigreturn: 1 +futex: 1 +#mmap2: arg2 in 0x1|0x2 +geteuid32: 1 +getgid32: 1 +getegid32: 1 +getgroups32: 1 +getpriority: 1 +mlock: 1 +munlock: 1 +fchmod: 1 +getuid: 1 +mmap: 1 +getrlimit: 1 +newfstatat: 1 +fstat: 1 +fstatfs: 1 +unlinkat: 1 +sched_setscheduler: 1 +mkdirat: 1 diff --git a/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-mediatek-seccomp-policy b/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-mediatek-seccomp-policy new file mode 100644 index 0000000..3c3b4fb --- /dev/null +++ b/proprietary/vendor/etc/seccomp_policy/android.hardware.media.c2@1.2-mediatek-seccomp-policy @@ -0,0 +1,88 @@ +# 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. + +futex: 1 +# ioctl calls are filtered via the selinux policy. +ioctl: 1 +sched_yield: 1 +close: 1 +dup: 1 +ppoll: 1 +mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE +mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE +getuid: 1 +getrlimit: 1 +fstat: 1 +newfstatat: 1 +fstatfs: 1 +memfd_create: 1 +ftruncate: 1 + +# mremap: Ensure |flags| are (MREMAP_MAYMOVE | MREMAP_FIXED) TODO: Once minijail +# parser support for '<' is in this needs to be modified to also prevent +# |old_address| and |new_address| from touching the exception vector page, which +# on ARM is statically loaded at 0xffff 0000. See +# http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html +# for more details. +mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE +munmap: 1 +prctl: 1 +writev: 1 +sigaltstack: 1 +clone: 1 +exit: 1 +lseek: 1 +rt_sigprocmask: 1 +openat: 1 +write: 1 +nanosleep: 1 +setpriority: 1 +set_tid_address: 1 +getdents64: 1 +readlinkat: 1 +read: 1 +pread64: 1 +gettimeofday: 1 +faccessat: 1 +exit_group: 1 +restart_syscall: 1 +rt_sigreturn: 1 +getrandom: 1 +madvise: 1 +sched_setaffinity: 1 +sched_getaffinity: 1 +sched_getparam: 1 +sched_getscheduler: 1 +recvfrom: 1 + +# crash dump policy additions +clock_gettime: 1 +getpid: 1 +gettid: 1 +pipe2: 1 +recvmsg: 1 +process_vm_readv: 1 +tgkill: 1 +rt_sigaction: 1 +rt_tgsigqueueinfo: 1 +#mprotect: arg2 in 0x1|0x2 +munmap: 1 +#mmap: arg2 in 0x1|0x2 +geteuid: 1 +getgid: 1 +getegid: 1 +getgroups: 1 +unlinkat: 1 +sched_setscheduler: 1 +mkdirat: 1 diff --git a/proprietary/vendor/etc/vintf/manifest/manifest_media_c2_default.xml b/proprietary/vendor/etc/vintf/manifest/manifest_media_c2_default.xml new file mode 100644 index 0000000..719c56f --- /dev/null +++ b/proprietary/vendor/etc/vintf/manifest/manifest_media_c2_default.xml @@ -0,0 +1,9 @@ + + + + android.hardware.media.c2 + 1 + IComponentStore/default + IComponentStore/dolby + + \ No newline at end of file diff --git a/proprietary/vendor/lib64/android.frameworks.displayservice@1.0.so b/proprietary/vendor/lib64/android.frameworks.displayservice@1.0.so deleted file mode 100644 index 2421b97..0000000 Binary files a/proprietary/vendor/lib64/android.frameworks.displayservice@1.0.so and /dev/null differ diff --git a/proprietary/vendor/lib64/lib_android_keymaster_keymint_utils-v36.so b/proprietary/vendor/lib64/lib_android_keymaster_keymint_utils-v36.so deleted file mode 100644 index 6b79e99..0000000 Binary files a/proprietary/vendor/lib64/lib_android_keymaster_keymint_utils-v36.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libbase-v36.so b/proprietary/vendor/lib64/libbase-v36.so deleted file mode 100644 index beda3c9..0000000 Binary files a/proprietary/vendor/lib64/libbase-v36.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libcodec2_hal_common_prebuilt.so b/proprietary/vendor/lib64/libcodec2_hal_common_prebuilt.so index 65fb2f3..b2aa74c 100644 Binary files a/proprietary/vendor/lib64/libcodec2_hal_common_prebuilt.so and b/proprietary/vendor/lib64/libcodec2_hal_common_prebuilt.so differ diff --git a/proprietary/vendor/lib64/libcodec2_hidl_plugin_prebuilt.so b/proprietary/vendor/lib64/libcodec2_hidl_plugin_prebuilt.so index 8abe805..368767e 100644 Binary files a/proprietary/vendor/lib64/libcodec2_hidl_plugin_prebuilt.so and b/proprietary/vendor/lib64/libcodec2_hidl_plugin_prebuilt.so differ diff --git a/proprietary/vendor/lib64/libcodec2_mtk_vdec.so b/proprietary/vendor/lib64/libcodec2_mtk_vdec.so index ac38575..53752c7 100644 Binary files a/proprietary/vendor/lib64/libcodec2_mtk_vdec.so and b/proprietary/vendor/lib64/libcodec2_mtk_vdec.so differ diff --git a/proprietary/vendor/lib64/libcodec2_mtk_venc.so b/proprietary/vendor/lib64/libcodec2_mtk_venc.so index ad92d88..eb9fd4b 100644 Binary files a/proprietary/vendor/lib64/libcodec2_mtk_venc.so and b/proprietary/vendor/lib64/libcodec2_mtk_venc.so differ diff --git a/proprietary/vendor/lib64/libcodec2_soft_ac4dec.so b/proprietary/vendor/lib64/libcodec2_soft_ac4dec.so index dd474e8..c1ead48 100644 Binary files a/proprietary/vendor/lib64/libcodec2_soft_ac4dec.so and b/proprietary/vendor/lib64/libcodec2_soft_ac4dec.so differ diff --git a/proprietary/vendor/lib64/libcodec2_soft_common_prebuilt.so b/proprietary/vendor/lib64/libcodec2_soft_common_prebuilt.so deleted file mode 100644 index 80b7217..0000000 Binary files a/proprietary/vendor/lib64/libcodec2_soft_common_prebuilt.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libcodec2_soft_ddpdec.so b/proprietary/vendor/lib64/libcodec2_soft_ddpdec.so index b62a09e..16174f9 100644 Binary files a/proprietary/vendor/lib64/libcodec2_soft_ddpdec.so and b/proprietary/vendor/lib64/libcodec2_soft_ddpdec.so differ diff --git a/proprietary/vendor/lib64/libcodec2_store_dolby.so b/proprietary/vendor/lib64/libcodec2_store_dolby.so index e4872ad..034c787 100644 Binary files a/proprietary/vendor/lib64/libcodec2_store_dolby.so and b/proprietary/vendor/lib64/libcodec2_store_dolby.so differ diff --git a/proprietary/vendor/lib64/libcppcose_rkp_prebuilt.so b/proprietary/vendor/lib64/libcppcose_rkp_prebuilt.so deleted file mode 100644 index 2ab0ee7..0000000 Binary files a/proprietary/vendor/lib64/libcppcose_rkp_prebuilt.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libformatter-v33.so b/proprietary/vendor/lib64/libformatter.so similarity index 80% rename from proprietary/vendor/lib64/libformatter-v33.so rename to proprietary/vendor/lib64/libformatter.so index 9d7091e..6b746bd 100644 Binary files a/proprietary/vendor/lib64/libformatter-v33.so and b/proprietary/vendor/lib64/libformatter.so differ diff --git a/proprietary/vendor/lib64/libkeymint-v36.so b/proprietary/vendor/lib64/libkeymint-v36.so deleted file mode 100644 index 3f1a2a0..0000000 Binary files a/proprietary/vendor/lib64/libkeymint-v36.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libkeymint_remote_prov_support-v36.so b/proprietary/vendor/lib64/libkeymint_remote_prov_support-v36.so deleted file mode 100644 index 2796db4..0000000 Binary files a/proprietary/vendor/lib64/libkeymint_remote_prov_support-v36.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libkeymint_support-v36.so b/proprietary/vendor/lib64/libkeymint_support-v36.so deleted file mode 100644 index ca5f37e..0000000 Binary files a/proprietary/vendor/lib64/libkeymint_support-v36.so and /dev/null differ diff --git a/proprietary/vendor/lib64/mt6899/libmnld.so b/proprietary/vendor/lib64/mt6899/libmnl.so similarity index 98% rename from proprietary/vendor/lib64/mt6899/libmnld.so rename to proprietary/vendor/lib64/mt6899/libmnl.so index bf8ee59..b4d23d4 100644 Binary files a/proprietary/vendor/lib64/mt6899/libmnld.so and b/proprietary/vendor/lib64/mt6899/libmnl.so differ