diff --git a/Android.bp b/Android.bp
index b7be58e..5194617 100644
--- a/Android.bp
+++ b/Android.bp
@@ -7,6 +7,7 @@ soong_namespace {
"device/xiaomi/beryl",
"hardware/mediatek",
"hardware/mediatek/libmtkperf_client",
+ "hardware/mediatek/libion_mtk",
"hardware/xiaomi",
],
}
@@ -226,7 +227,7 @@ cc_prebuilt_library_shared {
"libfmq",
"liblog",
"libbluetooth_audio_session_aidl_mtk",
- "vendor.mediatek.hardware.bluetooth.audio-V1-ndk",
+ "vendor.mediatek.hardware.bluetooth.audio-V4-ndk",
"vendor.mediatek.hardware.bluetooth.audio@2.1",
"vendor.mediatek.hardware.bluetooth.audio@2.2",
"libc++",
@@ -685,7 +686,7 @@ cc_prebuilt_library_shared {
"libhidlbase",
"libhidltransport",
"libhwbinder",
- "vendor.mediatek.hardware.bluetooth.audio-V1-ndk",
+ "vendor.mediatek.hardware.bluetooth.audio-V4-ndk",
"android.hardware.bluetooth.audio-V5-ndk",
"android.hardware.audio.common@5.0",
"libtinycompress",
@@ -1555,7 +1556,7 @@ cc_prebuilt_library_shared {
shared_libs: [
"libbinder_ndk",
"libfmq",
- "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ "vendor.mediatek.hardware.videotelephony-V1-ndk_vendor",
"libc",
"libutils",
"libcutils",
@@ -36380,7 +36381,7 @@ cc_prebuilt_library_shared {
"libbinder_ndk",
"libfmq",
"liblog",
- "vendor.mediatek.hardware.bluetooth.audio-V1-ndk",
+ "vendor.mediatek.hardware.bluetooth.audio-V4-ndk",
"libhidlbase",
"libxml2",
"libflatbuffers-cpp",
@@ -38675,34 +38676,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "libion_mtk",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/libion_mtk.so",
- ],
- shared_libs: [
- "libion",
- "liblog",
- "libion_ulit",
- "libcutils",
- "libc++",
- "libc",
- "libm",
- "libdl",
- ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
-}
-
cc_prebuilt_library_shared {
name: "libion_ulit",
owner: "xiaomi",
@@ -38781,33 +38754,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "libladder",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/libladder.so",
- ],
- shared_libs: [
- "libunwindstack",
- "liblog",
- "libbase",
- "libc++",
- "libc",
- "libm",
- "libdl",
- ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
-}
-
cc_prebuilt_library_shared {
name: "libmbrainSDKv",
owner: "xiaomi",
@@ -42698,6 +42644,35 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
+cc_prebuilt_library_shared {
+ name: "libwifi-hal-mtk",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libwifi-hal-mtk.so",
+ ],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "liblog",
+ "libnl",
+ "libutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
+}
+
cc_prebuilt_library_shared {
name: "libwpfa",
owner: "xiaomi",
@@ -54479,34 +54454,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "vendor.mediatek.hardware.bluetooth.audio-V1-ndk",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/vendor.mediatek.hardware.bluetooth.audio-V1-ndk.so",
- ],
- shared_libs: [
- "libbinder_ndk",
- "android.hardware.common-V2-ndk",
- "android.hardware.common.fmq-V1-ndk",
- "android.hardware.audio.common-V4-ndk",
- "libc++",
- "libc",
- "libm",
- "libdl",
- ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
-}
-
cc_prebuilt_library_shared {
name: "vendor.mediatek.hardware.camera.atms-V1-ndk",
owner: "xiaomi",
@@ -54803,34 +54750,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "vendor.mediatek.hardware.lbs@1.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/vendor.mediatek.hardware.lbs@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: "vendor.mediatek.hardware.mbrain-V6-ndk",
owner: "xiaomi",
@@ -54985,31 +54904,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "vendor.mediatek.hardware.mtkpower-V1-ndk",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/vendor.mediatek.hardware.mtkpower-V1-ndk.so",
- ],
- shared_libs: [
- "libbinder_ndk",
- "libc++",
- "libc",
- "libm",
- "libdl",
- ],
- },
- },
- compile_multilib: "64",
- prefer: true,
- soc_specific: true,
-}
-
cc_prebuilt_library_shared {
name: "vendor.mediatek.hardware.mtkradioex.assist-V2-ndk",
owner: "xiaomi",
@@ -55573,34 +55467,6 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
-cc_prebuilt_library_shared {
- name: "vendor.mediatek.hardware.netdagent@1.0",
- owner: "xiaomi",
- strip: {
- none: true,
- },
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/lib64/vendor.mediatek.hardware.netdagent@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: "vendor.mediatek.hardware.neuropilot.agent-V1-ndk",
owner: "xiaomi",
@@ -55935,7 +55801,8 @@ cc_prebuilt_library_shared {
}
cc_prebuilt_library_shared {
- name: "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ name: "vendor.mediatek.hardware.videotelephony-V1-ndk_vendor",
+ stem: "vendor.mediatek.hardware.videotelephony-V1-ndk",
owner: "xiaomi",
strip: {
none: true,
@@ -56111,6 +55978,506 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
+cc_prebuilt_library_shared {
+ name: "libcomutils",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libcomutils.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "libstagefright_foundation",
+ "libutils",
+ "libstagefright",
+ "libmedia",
+ "liblog",
+ "libhidlbase",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libimsma",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libimsma.so",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libcutils",
+ "libgui",
+ "libmedia",
+ "libstagefright",
+ "libstagefright_foundation",
+ "libui",
+ "libutils",
+ "libsink-mtk",
+ "libsource",
+ "libvcodec_cap",
+ "libimsma_rtp",
+ "libcomutils",
+ "liblog",
+ "libsignal",
+ "libnetd_client",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libimsma_adapt",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libimsma_adapt.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libimsma_rtp",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libimsma_rtp.so",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libmedia",
+ "libutils",
+ "libcutils",
+ "libstagefright",
+ "libstagefright_foundation",
+ "libimsma_socketwrapper",
+ "libvcodec_cap",
+ "libimsma_adapt",
+ "liblog",
+ "libsignal",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libimsma_socketwrapper",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libimsma_socketwrapper.so",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libmedia",
+ "libutils",
+ "libcutils",
+ "libstagefright",
+ "libstagefright_foundation",
+ "libnetd_client",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libmtk_vt_service",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libmtk_vt_service.so",
+ ],
+ shared_libs: [
+ "libandroid_runtime",
+ "libbinder",
+ "libutils",
+ "libcutils",
+ "libnativehelper",
+ "libui",
+ "libgui",
+ "libmedia",
+ "libbase",
+ "libfmq",
+ "libbinder_ndk",
+ "vendor.mediatek.hardware.videotelephony@1.0",
+ "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ "libhidlbase",
+ "libhidltransport",
+ "libimsma",
+ "libsource",
+ "libimsma_rtp",
+ "libvt_avsync",
+ "libstagefright_foundation",
+ "libvcodec_cap",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libmtk_vt_wrapper",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libmtk_vt_wrapper.so",
+ ],
+ shared_libs: [
+ "libandroid_runtime",
+ "libbinder",
+ "libutils",
+ "libcutils",
+ "libnativehelper",
+ "libfmq",
+ "libbinder_ndk",
+ "vendor.mediatek.hardware.videotelephony@1.0",
+ "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ "libhidlbase",
+ "libhidltransport",
+ "libui",
+ "libgui",
+ "libmedia",
+ "libvcodec_cap",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libsignal",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libsignal.so",
+ ],
+ shared_libs: [
+ "libcutils",
+ "libutils",
+ "libstagefright_foundation",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libsink-mtk",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libsink-mtk.so",
+ ],
+ shared_libs: [
+ "libaudioclient_shim",
+ "libbinder",
+ "libcutils",
+ "libgui",
+ "libmedia",
+ "libstagefright",
+ "libstagefright_foundation",
+ "libui",
+ "libutils",
+ "libcomutils",
+ "libvcodec_cap",
+ "libvt_avsync",
+ "liblog",
+ "libmedia_omx",
+ "libaudioclient",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libsource",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libsource.so",
+ ],
+ shared_libs: [
+ "libui_shim",
+ "libbinder",
+ "libcutils",
+ "libgui",
+ "libmedia",
+ "libstagefright",
+ "libstagefright_foundation",
+ "libmedia_omx",
+ "libui",
+ "libutils",
+ "libcamera_client",
+ "libcomutils",
+ "libvcodec_cap",
+ "liblog",
+ "libsignal",
+ "libhardware",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libvcodec_cap",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libvcodec_cap.so",
+ ],
+ shared_libs: [
+ "libui",
+ "libcutils",
+ "libutils",
+ "libbinder",
+ "libexpat",
+ "liblog",
+ "libvcodec_capenc",
+ "libstagefright_omx_utils",
+ "libstagefright_foundation",
+ "libion",
+ "android.hardware.graphics.bufferqueue@2.0",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libvcodec_capenc",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libvcodec_capenc.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libion",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libvt_avsync",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/libvt_avsync.so",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libutils",
+ "libcutils",
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so",
+ ],
+ shared_libs: [
+ "libbinder_ndk",
+ "android.hardware.common-V2-ndk",
+ "android.hardware.common.fmq-V1-ndk",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "vendor.mediatek.hardware.videotelephony@1.0",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so",
+ ],
+ shared_libs: [
+ "libhidlbase",
+ "liblog",
+ "libutils",
+ "libcutils",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ system_ext_specific: true,
+}
+
prebuilt_apex {
name: "com.google.android.widevine.nonupdatable",
owner: "xiaomi",
@@ -56119,6 +56486,71 @@ prebuilt_apex {
soc_specific: true,
}
+android_app_import {
+ name: "ImsService",
+ owner: "xiaomi",
+ apk: "proprietary/system_ext/priv-app/ImsService/ImsService.apk",
+ certificate: "platform",
+ dex_preopt: {
+ enabled: false,
+ },
+ privileged: true,
+ system_ext_specific: true,
+}
+
+android_app_import {
+ name: "MtkGbaService",
+ owner: "xiaomi",
+ apk: "proprietary/system_ext/priv-app/MtkGbaService/MtkGbaService.apk",
+ certificate: "platform",
+ dex_preopt: {
+ enabled: false,
+ },
+ privileged: true,
+ system_ext_specific: true,
+}
+
+android_app_import {
+ name: "MtkTelephonyAssist",
+ owner: "xiaomi",
+ apk: "proprietary/system_ext/priv-app/MtkTelephonyAssist/MtkTelephonyAssist.apk",
+ certificate: "platform",
+ dex_preopt: {
+ enabled: false,
+ },
+ privileged: true,
+ 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-extension-plugin",
+ owner: "xiaomi",
+ jars: [
+ "proprietary/system_ext/framework/mediatek-ims-extension-plugin.jar",
+ ],
+ system_ext_specific: 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,
+}
+
prebuilt_etc_xml {
name: "android.hardware.audio.effect.service-aidl.xml",
owner: "xiaomi",
@@ -56254,6 +56686,15 @@ prebuilt_etc_xml {
soc_specific: true,
}
+prebuilt_etc_xml {
+ name: "vendor.xiaomi.hw.touchfeature-service.xml",
+ owner: "xiaomi",
+ src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hw.touchfeature-service.xml",
+ filename_from_src: true,
+ sub_dir: "vintf/manifest",
+ soc_specific: true,
+}
+
prebuilt_etc_xml {
name: "vendor.xiaomi.sensor.citsensorservice.aidl.xml",
owner: "xiaomi",
@@ -57235,6 +57676,40 @@ cc_prebuilt_binary {
soc_specific: true,
}
+cc_prebuilt_binary {
+ name: "vendor.xiaomi.hw.touchfeature-service",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/bin/hw/vendor.xiaomi.hw.touchfeature-service",
+ ],
+ shared_libs: [
+ "libcutils",
+ "libutils",
+ "libbase",
+ "liblog",
+ "libbinder_ndk",
+ "vendor.xiaomi.hw.touchfeature-V1-ndk",
+ "android.frameworks.sensorservice-V1-ndk",
+ "android.hardware.sensors-V3-ndk",
+ "libhidlbase",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ relative_install_path: "hw",
+ soc_specific: true,
+}
+
cc_prebuilt_binary {
name: "vtservice_aidl",
owner: "xiaomi",
@@ -57249,7 +57724,7 @@ cc_prebuilt_binary {
"liblog",
"libbase",
"libfmq",
- "vendor.mediatek.hardware.videotelephony-V1-ndk",
+ "vendor.mediatek.hardware.videotelephony-V1-ndk_vendor",
"vendor.mediatek.hardware.videotelephony-impl",
"libbinder_ndk",
"libc++",
@@ -57645,33 +58120,6 @@ cc_prebuilt_binary {
soc_specific: true,
}
-cc_prebuilt_binary {
- name: "wlan_assistant",
- owner: "xiaomi",
- target: {
- android_arm64: {
- srcs: [
- "proprietary/vendor/bin/wlan_assistant",
- ],
- shared_libs: [
- "libc",
- "liblog",
- "libcutils",
- "libnl",
- "libc++",
- "libm",
- "libdl",
- ],
- },
- },
- compile_multilib: "64",
- strip: {
- none: true,
- },
- prefer: true,
- soc_specific: true,
-}
-
cc_prebuilt_binary {
name: "wmt_launcher",
owner: "xiaomi",
@@ -57756,6 +58204,35 @@ cc_prebuilt_binary {
system_ext_specific: true,
}
+cc_prebuilt_binary {
+ name: "vtservice",
+ owner: "xiaomi",
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/system_ext/bin/vtservice",
+ ],
+ shared_libs: [
+ "libbinder",
+ "libutils",
+ "libcutils",
+ "liblog",
+ "libmtk_vt_service",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ strip: {
+ none: true,
+ },
+ prefer: true,
+ system_ext_specific: true,
+}
+
cc_prebuilt_binary {
name: "vendor.xiaomi.sensor.citsensorservice.aidl",
owner: "xiaomi",
@@ -57871,6 +58348,13 @@ install_symlink {
symlink_target: "/vendor/lib64/hw/mt6855/libpvr_mapper_utils.so",
}
+install_symlink {
+ name: "vendor_lib64_libpvr_mapper_utils_so",
+ soc_specific: true,
+ installed_location: "lib64/libpvr_mapper_utils.so",
+ symlink_target: "/vendor/lib64/hw/mt6855/libpvr_mapper_utils.so",
+}
+
install_symlink {
name: "vendor_lib64_hw_mapper_powervr_so",
soc_specific: true,
diff --git a/beryl-vendor.mk b/beryl-vendor.mk
index 56b9c85..a7d5507 100644
--- a/beryl-vendor.mk
+++ b/beryl-vendor.mk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e6a7ed81a54dbe941243927151f3a9d197b32592670542ffc628bd66b6bc1f22
-size 236845
+oid sha256:0fee30462bc395c8e9996ab2fcafe68333722a02f1c233976f13c23751f1b560
+size 237849
diff --git a/proprietary/vendor/bin/wlan_assistant b/proprietary/system_ext/bin/vtservice
similarity index 71%
rename from proprietary/vendor/bin/wlan_assistant
rename to proprietary/system_ext/bin/vtservice
index 3b315fd..8ae8f09 100755
Binary files a/proprietary/vendor/bin/wlan_assistant and b/proprietary/system_ext/bin/vtservice differ
diff --git a/proprietary/system_ext/etc/init/init.vtservice.rc b/proprietary/system_ext/etc/init/init.vtservice.rc
new file mode 100644
index 0000000..bc6bb95
--- /dev/null
+++ b/proprietary/system_ext/etc/init/init.vtservice.rc
@@ -0,0 +1,15 @@
+# VTService .rc configure
+
+service vtservice /system_ext/bin/vtservice
+ class main
+ user system
+ group system camera graphics inet net_admin net_raw media sdcard_rw radio sdcard_r media_rw
+ capabilities NET_ADMIN NET_RAW
+ ioprio rt 4
+ disabled
+
+on property:persist.vendor.vilte_support=1
+ start vtservice
+
+on property:persist.vendor.viwifi_support=1
+ start vtservice
\ No newline at end of file
diff --git a/proprietary/system_ext/framework/mediatek-ims-base.jar b/proprietary/system_ext/framework/mediatek-ims-base.jar
new file mode 100644
index 0000000..b085858
Binary files /dev/null and b/proprietary/system_ext/framework/mediatek-ims-base.jar differ
diff --git a/proprietary/system_ext/framework/mediatek-ims-extension-plugin.jar b/proprietary/system_ext/framework/mediatek-ims-extension-plugin.jar
new file mode 100644
index 0000000..aef0abc
Binary files /dev/null and b/proprietary/system_ext/framework/mediatek-ims-extension-plugin.jar differ
diff --git a/proprietary/system_ext/framework/mediatek-telephony-base.jar b/proprietary/system_ext/framework/mediatek-telephony-base.jar
new file mode 100644
index 0000000..3c1d602
Binary files /dev/null and b/proprietary/system_ext/framework/mediatek-telephony-base.jar differ
diff --git a/proprietary/system_ext/lib64/libcomutils.so b/proprietary/system_ext/lib64/libcomutils.so
new file mode 100644
index 0000000..980d0d8
Binary files /dev/null and b/proprietary/system_ext/lib64/libcomutils.so differ
diff --git a/proprietary/system_ext/lib64/libimsma.so b/proprietary/system_ext/lib64/libimsma.so
new file mode 100644
index 0000000..7a5405b
Binary files /dev/null and b/proprietary/system_ext/lib64/libimsma.so differ
diff --git a/proprietary/system_ext/lib64/libimsma_adapt.so b/proprietary/system_ext/lib64/libimsma_adapt.so
new file mode 100644
index 0000000..564e3b1
Binary files /dev/null and b/proprietary/system_ext/lib64/libimsma_adapt.so differ
diff --git a/proprietary/system_ext/lib64/libimsma_rtp.so b/proprietary/system_ext/lib64/libimsma_rtp.so
new file mode 100644
index 0000000..597f08d
Binary files /dev/null and b/proprietary/system_ext/lib64/libimsma_rtp.so differ
diff --git a/proprietary/system_ext/lib64/libimsma_socketwrapper.so b/proprietary/system_ext/lib64/libimsma_socketwrapper.so
new file mode 100644
index 0000000..47def87
Binary files /dev/null and b/proprietary/system_ext/lib64/libimsma_socketwrapper.so differ
diff --git a/proprietary/system_ext/lib64/libmtk_vt_service.so b/proprietary/system_ext/lib64/libmtk_vt_service.so
new file mode 100644
index 0000000..40c88c2
Binary files /dev/null and b/proprietary/system_ext/lib64/libmtk_vt_service.so differ
diff --git a/proprietary/system_ext/lib64/libmtk_vt_wrapper.so b/proprietary/system_ext/lib64/libmtk_vt_wrapper.so
new file mode 100644
index 0000000..1f2c5ab
Binary files /dev/null and b/proprietary/system_ext/lib64/libmtk_vt_wrapper.so differ
diff --git a/proprietary/system_ext/lib64/libsignal.so b/proprietary/system_ext/lib64/libsignal.so
new file mode 100644
index 0000000..40f8929
Binary files /dev/null and b/proprietary/system_ext/lib64/libsignal.so differ
diff --git a/proprietary/system_ext/lib64/libsink-mtk.so b/proprietary/system_ext/lib64/libsink-mtk.so
new file mode 100644
index 0000000..109d5db
Binary files /dev/null and b/proprietary/system_ext/lib64/libsink-mtk.so differ
diff --git a/proprietary/system_ext/lib64/libsource.so b/proprietary/system_ext/lib64/libsource.so
new file mode 100644
index 0000000..94c7f69
Binary files /dev/null and b/proprietary/system_ext/lib64/libsource.so differ
diff --git a/proprietary/system_ext/lib64/libvcodec_cap.so b/proprietary/system_ext/lib64/libvcodec_cap.so
new file mode 100644
index 0000000..72df2e5
Binary files /dev/null and b/proprietary/system_ext/lib64/libvcodec_cap.so differ
diff --git a/proprietary/system_ext/lib64/libvcodec_capenc.so b/proprietary/system_ext/lib64/libvcodec_capenc.so
new file mode 100644
index 0000000..d51f546
Binary files /dev/null and b/proprietary/system_ext/lib64/libvcodec_capenc.so differ
diff --git a/proprietary/vendor/lib64/libladder.so b/proprietary/system_ext/lib64/libvt_avsync.so
similarity index 60%
rename from proprietary/vendor/lib64/libladder.so
rename to proprietary/system_ext/lib64/libvt_avsync.so
index 0952e23..6736538 100644
Binary files a/proprietary/vendor/lib64/libladder.so and b/proprietary/system_ext/lib64/libvt_avsync.so differ
diff --git a/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so
new file mode 100644
index 0000000..3796dae
Binary files /dev/null and b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so differ
diff --git a/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
new file mode 100644
index 0000000..ae24139
Binary files /dev/null and b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so differ
diff --git a/proprietary/system_ext/priv-app/ImsService/ImsService.apk b/proprietary/system_ext/priv-app/ImsService/ImsService.apk
new file mode 100644
index 0000000..0ce0069
Binary files /dev/null and b/proprietary/system_ext/priv-app/ImsService/ImsService.apk differ
diff --git a/proprietary/system_ext/priv-app/MtkGbaService/MtkGbaService.apk b/proprietary/system_ext/priv-app/MtkGbaService/MtkGbaService.apk
new file mode 100644
index 0000000..d860479
Binary files /dev/null and b/proprietary/system_ext/priv-app/MtkGbaService/MtkGbaService.apk differ
diff --git a/proprietary/system_ext/priv-app/MtkTelephonyAssist/MtkTelephonyAssist.apk b/proprietary/system_ext/priv-app/MtkTelephonyAssist/MtkTelephonyAssist.apk
new file mode 100644
index 0000000..4be744b
Binary files /dev/null and b/proprietary/system_ext/priv-app/MtkTelephonyAssist/MtkTelephonyAssist.apk differ
diff --git a/proprietary/vendor/bin/hw/vendor.xiaomi.hw.touchfeature-service b/proprietary/vendor/bin/hw/vendor.xiaomi.hw.touchfeature-service
new file mode 100755
index 0000000..aca7f7f
Binary files /dev/null and b/proprietary/vendor/bin/hw/vendor.xiaomi.hw.touchfeature-service differ
diff --git a/proprietary/vendor/etc/dolby/dax-default-spatializer.xml b/proprietary/vendor/etc/dolby/dax-default-spatializer.xml
new file mode 100644
index 0000000..249f4f4
--- /dev/null
+++ b/pro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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/proprietary/vendor/etc/dolby/dax-default.xml b/proprietary/vendor/etc/dolby/dax-default.xml
new file mode 100644
index 0000000..9a13ddb
--- /dev/null
+++ b/proprietary/vendor/etc/dolby/dax-default.xml
@@ -0,0 +1,1978 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/proprietary/vendor/etc/init/vendor.xiaomi.hw.touchfeature-service.rc b/proprietary/vendor/etc/init/vendor.xiaomi.hw.touchfeature-service.rc
new file mode 100644
index 0000000..09557c0
--- /dev/null
+++ b/proprietary/vendor/etc/init/vendor.xiaomi.hw.touchfeature-service.rc
@@ -0,0 +1,145 @@
+# Copyright (c) 2023 Xiaomi, Inc.
+# All Rights Reserved.
+# Confidential and Proprietary - Xiaomi, Inc.
+#
+on post-fs-data
+ mkdir /data/vendor/mqsas_common 0771 system system
+ mkdir /data/vendor/touch 0771 system system
+ mkdir /data/vendor/touch_state 0771 system system
+ mkdir /mnt/vendor/persist/touch 0775 system system
+
+on boot
+ chown system system /dev/xiaomi-touch
+ chmod 0666 /dev/xiaomi-touch
+ chown system system /dev/xiaomi-touch-knock
+ chmod 0664 /dev/xiaomi-touch-knock
+ chown system system /dev/xiaomi-thp
+ chmod 0664 /dev/xiaomi-thp
+ chown system system /sys/class/touch/tp_dev/fod_status
+ chmod 0664 /sys/class/touch/tp_dev/fod_status
+ chown system system /sys/class/touch/touch_dev/gesture_single_tap_state
+ chmod 0664 /sys/class/touch/touch_dev/gesture_single_tap_state
+ chown system system /sys/class/touch/touch_dev/fod_press_status
+ chmod 0664 /sys/class/touch/touch_dev/fod_press_status
+ chown system system /proc/tp_selftest
+ chmod 0664 /proc/tp_selftest
+ chown system system /proc/tp_selftest_1
+ chmod 0664 /proc/tp_selftest_1
+ chown system system /sys/class/touch/touch_dev/clicktouch_raw
+ chmod 0664 /sys/class/touch/touch_dev/clicktouch_raw
+ chown system system /sys/class/touch/touch_dev/update_rawdata
+ chmod 0664 /sys/class/touch/touch_dev/update_rawdata
+ chown system system /sys/class/touch/touch_dev/enable_touch_raw
+ chmod 0664 /sys/class/touch/touch_dev/enable_touch_raw
+ chown system system /sys/class/touch/touch_dev/resolution_factor
+ chmod 0664 /sys/class/touch/touch_dev/resolution_factor
+ chown system system /sys/class/touch/touch_dev/enable_touch_delta
+ chmod 0664 /sys/class/touch/touch_dev/enable_touch_delta
+ chown system system /sys/class/touch/touch_dev/touch_thp_dump
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_dump
+ chown system system /sys/class/touch/touch_dev/touch_thp_cmd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd
+ chown system system /sys/class/touch/touch_dev/suspend_state
+ chmod 0664 /sys/class/touch/touch_dev/suspend_state
+ chown system system /sys/class/touch/touch_dev/prox_sensor_data
+ chmod 0664 /sys/class/touch/touch_dev/prox_sensor_data
+ chown system system /sys/class/touch/touch_dev/prox_sensor
+ chmod 0664 /sys/class/touch/touch_dev/prox_sensor
+ chown system system /sys/class/touch/touch_dev/touch_thp_rx_num
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_rx_num
+ chown system system /sys/class/touch/touch_dev/touch_thp_tx_num
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_tx_num
+ chown system system /sys/class/touch/touch_dev/touch_thp_x_resolution
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_x_resolution
+ chown system system /sys/class/touch/touch_dev/touch_thp_y_resolution
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_y_resolution
+ chown system system /sys/class/touch/touch_dev/touch_thp_smooth
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_smooth
+ chown system system /sys/class/touch/touch_dev/touch_thp_noisefilter
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_noisefilter
+ chown system system /sys/class/touch/touch_dev/touch_thp_downthd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_downthd
+ chown system system /sys/class/touch/touch_dev/touch_thp_upthd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_upthd
+ chown system system /sys/class/touch/touch_dev/touch_thp_movethd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_movethd
+ chown system system /sys/class/touch/touch_dev/touch_thp_islandthd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_islandthd
+ chown system system /sys/class/touch/touch_dev/touch_thp_cmd_data
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_data
+ chown system system /sys/class/touch/touch_dev/palm_sensor_data
+ chmod 0664 /sys/class/touch/touch_dev/palm_sensor_data
+ chown system system /sys/class/touch/touch_dev/palm_sensor
+ chmod 0664 /sys/class/touch/touch_dev/palm_sensor
+ chown system system /sys/class/touch/touch_dev/hold_sensor
+ chmod 0664 /sys/class/touch/touch_dev/hold_sensor
+ chown system system /proc/tp_fw_version
+ chmod 0664 /proc/tp_fw_version
+ chown system system /proc/tp_lockdown_info
+ chmod 0664 /proc/tp_lockdown_info
+ chmod 0664 /sys/class/touch/touch_dev/touch_active_status
+ chown system system /sys/class/touch/touch_dev/touch_active_status
+ chmod 0664 /sys/class/touch/touch_dev/touch_finger_status
+ chown system system /sys/class/touch/touch_dev/touch_finger_status
+ chmod 0664 /sys/class/touch/touch_dev/touch_irq_no
+ chown system system /sys/class/touch/touch_dev/touch_irq_no
+ chmod 0664 /sys/class/touch/touch_dev/touch_sensor
+ chown system system /sys/class/touch/touch_dev/touch_sensor
+ chmod 0664 /sys/class/touch/touch_dev/touch_sensor_ctrl
+ chown system system /sys/class/touch/touch_dev/touch_sensor_ctrl
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_mem_notify
+ chown system system /sys/class/touch/touch_dev/touch_thp_mem_notify
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_testmode
+ chown system system /sys/class/touch/touch_dev/touch_thp_testmode
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_testresult
+ chown system system /sys/class/touch/touch_dev/touch_thp_testresult
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_preset_point
+ chown system system /sys/class/touch/touch_dev/touch_thp_preset_point
+ chmod 0664 /sys/class/touch/touch_dev/touch_doze_analysis
+ chown system system /sys/class/touch/touch_dev/touch_doze_analysis
+ chown system system /sys/class/touch/touch_dev/touch_thp_cmd_ready
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_ready
+ chmod 0664 /sys/class/touch/touch_dev/touch_ic_buffer
+ chown system system /sys/class/touch/touch_dev/touch_ic_buffer
+ chmod 0664 /sys/class/touch/touch_dev/abnormal_event
+ chown system system /sys/class/touch/touch_dev/abnormal_event
+ chown system system /sys/class/touch/touch_dev/touch_thp_ic_cmd
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_ic_cmd
+ chown system system /sys/class/touch/touch_dev/touch_thp_ic_cmd_data
+ chmod 0664 /sys/class/touch/touch_dev/touch_thp_ic_cmd_data
+ chown system system /sys/class/touch/touch_dev/touch_dfs_test
+ chmod 0664 /sys/class/touch/touch_dev/touch_dfs_test
+
+
+on charger
+ write /sys/class/touch/touch_dev/touch_doze_analysis 6
+
+service touchfeature-service /vendor/bin/hw/vendor.xiaomi.hw.touchfeature-service
+ interface aidl vendor.xiaomi.hw.touchfeature.ITouchFeature/default
+ class hal
+ user system
+ group system system input
+ capabilities SYS_NICE
+ ioprio rt 4
+
+
+service toucheventcheck /odm/bin/toucheventcheck
+ class main
+ user root
+ group system
+ oneshot
+
+service panel-info-sh /system/vendor/bin/sh /odm/etc/init.panel_info.sh
+ class core
+ user root
+ oneshot
+ group root system
+ seclabel u:r:vendor_touch_init_shell:s0
+
+service touch-kmsg-init-sh /system/vendor/bin/sh /odm/etc/tp_kmsg_init.sh
+ class main
+ user root
+ group root system
+ oneshot
+ seclabel u:r:vendor_touch_init_shell:s0
+
diff --git a/proprietary/vendor/etc/init/wlan_assistant.rc b/proprietary/vendor/etc/init/wlan_assistant.rc
deleted file mode 100644
index 0d70a71..0000000
--- a/proprietary/vendor/etc/init/wlan_assistant.rc
+++ /dev/null
@@ -1,4 +0,0 @@
-service wlan_assistant /vendor/bin/wlan_assistant
- class main
- user wifi
- group system gps inet
\ No newline at end of file
diff --git a/proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hw.touchfeature-service.xml b/proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hw.touchfeature-service.xml
new file mode 100644
index 0000000..434dec8
--- /dev/null
+++ b/proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hw.touchfeature-service.xml
@@ -0,0 +1,10 @@
+
+
+
+ vendor.xiaomi.hw.touchfeature
+ ITouchFeature/default
+
+
diff --git a/proprietary/vendor/lib64/android.hardware.bluetooth.audio-impl-mediatek.so b/proprietary/vendor/lib64/android.hardware.bluetooth.audio-impl-mediatek.so
index 6e779b6..0e5be39 100644
Binary files a/proprietary/vendor/lib64/android.hardware.bluetooth.audio-impl-mediatek.so and b/proprietary/vendor/lib64/android.hardware.bluetooth.audio-impl-mediatek.so differ
diff --git a/proprietary/vendor/lib64/hw/audio.primary.mediatek.so b/proprietary/vendor/lib64/hw/audio.primary.mediatek.so
index f4cde2a..df21208 100644
Binary files a/proprietary/vendor/lib64/hw/audio.primary.mediatek.so and b/proprietary/vendor/lib64/hw/audio.primary.mediatek.so differ
diff --git a/proprietary/vendor/lib64/libbluetooth_audio_session_aidl_mtk.so b/proprietary/vendor/lib64/libbluetooth_audio_session_aidl_mtk.so
index ae5131a..cd9d923 100644
Binary files a/proprietary/vendor/lib64/libbluetooth_audio_session_aidl_mtk.so and b/proprietary/vendor/lib64/libbluetooth_audio_session_aidl_mtk.so differ
diff --git a/proprietary/vendor/lib64/libcomposer_ext.so b/proprietary/vendor/lib64/libcomposer_ext.so
index f098d37..b1be188 100644
Binary files a/proprietary/vendor/lib64/libcomposer_ext.so and b/proprietary/vendor/lib64/libcomposer_ext.so differ
diff --git a/proprietary/vendor/lib64/libion_mtk.so b/proprietary/vendor/lib64/libion_mtk.so
deleted file mode 100644
index 662584d..0000000
Binary files a/proprietary/vendor/lib64/libion_mtk.so and /dev/null differ
diff --git a/proprietary/vendor/lib64/libwifi-hal-mtk.so b/proprietary/vendor/lib64/libwifi-hal-mtk.so
new file mode 100644
index 0000000..a5908e9
Binary files /dev/null and b/proprietary/vendor/lib64/libwifi-hal-mtk.so differ
diff --git a/proprietary/vendor/lib64/vendor.mediatek.hardware.bluetooth.audio-V1-ndk.so b/proprietary/vendor/lib64/vendor.mediatek.hardware.bluetooth.audio-V1-ndk.so
deleted file mode 100644
index 8434c15..0000000
Binary files a/proprietary/vendor/lib64/vendor.mediatek.hardware.bluetooth.audio-V1-ndk.so and /dev/null differ
diff --git a/proprietary/vendor/lib64/vendor.mediatek.hardware.lbs@1.0.so b/proprietary/vendor/lib64/vendor.mediatek.hardware.lbs@1.0.so
deleted file mode 100644
index 35cee0c..0000000
Binary files a/proprietary/vendor/lib64/vendor.mediatek.hardware.lbs@1.0.so and /dev/null differ
diff --git a/proprietary/vendor/lib64/vendor.mediatek.hardware.mtkpower-V1-ndk.so b/proprietary/vendor/lib64/vendor.mediatek.hardware.mtkpower-V1-ndk.so
deleted file mode 100644
index dfdc0e7..0000000
Binary files a/proprietary/vendor/lib64/vendor.mediatek.hardware.mtkpower-V1-ndk.so and /dev/null differ
diff --git a/proprietary/vendor/lib64/vendor.mediatek.hardware.netdagent@1.0.so b/proprietary/vendor/lib64/vendor.mediatek.hardware.netdagent@1.0.so
deleted file mode 100644
index 340393e..0000000
Binary files a/proprietary/vendor/lib64/vendor.mediatek.hardware.netdagent@1.0.so and /dev/null differ