diff --git a/Android.bp b/Android.bp
index e7be659..7d173a8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -16060,6 +16060,56 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
+cc_prebuilt_library_shared {
+ name: "libarm_egl_properties_sysprop",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libarm_egl_properties_sysprop.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
+ name: "libarm_gralloc_properties_sysprop",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/libarm_gralloc_properties_sysprop.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
+}
+
cc_prebuilt_library_shared {
name: "libarmnn",
owner: "xiaomi",
@@ -18368,6 +18418,31 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
+cc_prebuilt_library_shared {
+ name: "liblibarm_mali_config_sysprops",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/liblibarm_mali_config_sysprops.so",
+ ],
+ shared_libs: [
+ "liblog",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ prefer: true,
+ soc_specific: true,
+}
+
cc_prebuilt_library_shared {
name: "libmi_bokehpre",
owner: "xiaomi",
@@ -21315,6 +21390,32 @@ cc_prebuilt_library_shared {
soc_specific: true,
}
+cc_prebuilt_library_shared {
+ name: "arm.graphics-V3-ndk",
+ owner: "xiaomi",
+ strip: {
+ none: true,
+ },
+ target: {
+ android_arm64: {
+ srcs: [
+ "proprietary/vendor/lib64/mt6789/arm.graphics-V3-ndk.so",
+ ],
+ shared_libs: [
+ "libbinder_ndk",
+ "libc++",
+ "libc",
+ "libm",
+ "libdl",
+ ],
+ },
+ },
+ compile_multilib: "64",
+ relative_install_path: "mt6789",
+ prefer: true,
+ soc_specific: true,
+}
+
cc_prebuilt_library_shared {
name: "gc16b3_aac_front_mipi_raw_IdxMgr",
owner: "xiaomi",
diff --git a/emerald-vendor.mk b/emerald-vendor.mk
index 9a95828..d57a49c 100644
--- a/emerald-vendor.mk
+++ b/emerald-vendor.mk
@@ -495,6 +495,11 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/emerald/proprietary/vendor/etc/gnss/carrier/agps_profiles_conf2_carrier_Test_SIM1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/carrier/agps_profiles_conf2_carrier_Test_SIM1.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/gnss/carrier/agps_profiles_conf2_carrier_Test_SIM2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/carrier/agps_profiles_conf2_carrier_Test_SIM2.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/gnss/carrier/agps_profiles_conf2_carrier_Verizon_Wireless.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/carrier/agps_profiles_conf2_carrier_Verizon_Wireless.xml \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/gralloc/cam.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gralloc/cam.xml \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/gralloc/dpu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gralloc/dpu.xml \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/gralloc/dpu_aeu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gralloc/dpu_aeu.xml \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/gralloc/gpu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gralloc/gpu.xml \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/gralloc/vpu.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gralloc/vpu.xml \
vendor/xiaomi/emerald/proprietary/vendor/etc/init/android.hardware.drm@1.4-service.widevine.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.drm@1.4-service.widevine.rc \
vendor/xiaomi/emerald/proprietary/vendor/etc/init/android.hardware.gnss-service.mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gnss-service.mediatek.rc \
vendor/xiaomi/emerald/proprietary/vendor/etc/init/android.hardware.media.c2@1.2-mediatek.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.c2@1.2-mediatek.rc \
@@ -534,6 +539,7 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/emerald/proprietary/vendor/etc/ipsec/strongswan.conf:$(TARGET_COPY_OUT_VENDOR)/etc/ipsec/strongswan.conf \
vendor/xiaomi/emerald/proprietary/vendor/etc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
vendor/xiaomi/emerald/proprietary/vendor/etc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf \
+ vendor/xiaomi/emerald/proprietary/vendor/etc/mali_platform.config:$(TARGET_COPY_OUT_VENDOR)/etc/mali_platform.config \
vendor/xiaomi/emerald/proprietary/vendor/etc/meow.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/meow.cfg \
vendor/xiaomi/emerald/proprietary/vendor/etc/misound_res.bin:$(TARGET_COPY_OUT_VENDOR)/etc/misound_res.bin \
vendor/xiaomi/emerald/proprietary/vendor/etc/misound_res_headphone.bin:$(TARGET_COPY_OUT_VENDOR)/etc/misound_res_headphone.bin \
@@ -1334,6 +1340,8 @@ PRODUCT_PACKAGES += \
libapu_mdw_batch \
libapusys \
libapusys_edma \
+ libarm_egl_properties_sysprop \
+ libarm_gralloc_properties_sysprop \
libarmnn \
libarmnn_ndk.mtk.vndk \
libasn1c_core \
@@ -1414,6 +1422,7 @@ PRODUCT_PACKAGES += \
libjpeg-alpha-oal_vendor \
libjpeg-alpha_vendor \
libksensor \
+ liblibarm_mali_config_sysprops \
libmi_bokehpre \
libmialgo_ai_vision \
libmialgo_sd \
@@ -1517,6 +1526,7 @@ PRODUCT_PACKAGES += \
libwvkeybox \
libwvdrmengine \
arm.graphics-V1-ndk_platform \
+ arm.graphics-V3-ndk \
gc16b3_aac_front_mipi_raw_IdxMgr \
gc16b3_aac_front_mipi_raw_n6r_IdxMgr \
gc16b3_aac_front_mipi_raw_n6r_tuning \
diff --git a/proprietary/vendor/etc/gralloc/cam.xml b/proprietary/vendor/etc/gralloc/cam.xml
new file mode 100644
index 0000000..f64eeaa
--- /dev/null
+++ b/proprietary/vendor/etc/gralloc/cam.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/proprietary/vendor/etc/gralloc/dpu.xml b/proprietary/vendor/etc/gralloc/dpu.xml
new file mode 100644
index 0000000..f94cf14
--- /dev/null
+++ b/proprietary/vendor/etc/gralloc/dpu.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/proprietary/vendor/etc/gralloc/dpu_aeu.xml b/proprietary/vendor/etc/gralloc/dpu_aeu.xml
new file mode 100644
index 0000000..0ae5903
--- /dev/null
+++ b/proprietary/vendor/etc/gralloc/dpu_aeu.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/proprietary/vendor/etc/gralloc/gpu.xml b/proprietary/vendor/etc/gralloc/gpu.xml
new file mode 100644
index 0000000..186ad0e
--- /dev/null
+++ b/proprietary/vendor/etc/gralloc/gpu.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/proprietary/vendor/etc/gralloc/vpu.xml b/proprietary/vendor/etc/gralloc/vpu.xml
new file mode 100644
index 0000000..d0c9a87
--- /dev/null
+++ b/proprietary/vendor/etc/gralloc/vpu.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/proprietary/vendor/etc/mali_platform.config b/proprietary/vendor/etc/mali_platform.config
new file mode 100644
index 0000000..e24b5ed
--- /dev/null
+++ b/proprietary/vendor/etc/mali_platform.config
@@ -0,0 +1 @@
+PLATFORM_AGT_FREQUENCY_KHZ=13000
diff --git a/proprietary/vendor/lib64/egl/mt6789/libGLES_mali.so b/proprietary/vendor/lib64/egl/mt6789/libGLES_mali.so
index 16bc567..7c89083 100644
--- a/proprietary/vendor/lib64/egl/mt6789/libGLES_mali.so
+++ b/proprietary/vendor/lib64/egl/mt6789/libGLES_mali.so
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:73e215f5b5dd2726bbe328c1ab94d768d8cf1866fb1fd90e4aa6eba54400b4d5
-size 38597400
+oid sha256:3a5cf2dda7e0011652b075665c90726b4dd0d43d891dab9d40eb5b2e71654d7e
+size 42397352
diff --git a/proprietary/vendor/lib64/hw/mt6789/vulkan.mali.so b/proprietary/vendor/lib64/hw/mt6789/vulkan.mali.so
index 4e9a1ce..9be9fae 100644
--- a/proprietary/vendor/lib64/hw/mt6789/vulkan.mali.so
+++ b/proprietary/vendor/lib64/hw/mt6789/vulkan.mali.so
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2ae46e5c85ff73ab3441b1acbd12e60d50247b0be56a19a825e2fae66050c5b0
+oid sha256:cef5a1ca86ad1c96d8051c3d50032c370c6103d275ee2bf4ab06ec8d6f1f28e5
size 10368
diff --git a/proprietary/vendor/lib64/libarm_egl_properties_sysprop.so b/proprietary/vendor/lib64/libarm_egl_properties_sysprop.so
new file mode 100644
index 0000000..4555c4e
--- /dev/null
+++ b/proprietary/vendor/lib64/libarm_egl_properties_sysprop.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b0c462943ac01c25a6f11de5b395105164a60fed2a99c838e2c0b089e4e22993
+size 14784
diff --git a/proprietary/vendor/lib64/libarm_gralloc_properties_sysprop.so b/proprietary/vendor/lib64/libarm_gralloc_properties_sysprop.so
new file mode 100644
index 0000000..b38a3e9
--- /dev/null
+++ b/proprietary/vendor/lib64/libarm_gralloc_properties_sysprop.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d0e201cc1f25e1c6c4ace6785b8ef41381c365c20cae8e2f33005abefa814865
+size 14864
diff --git a/proprietary/vendor/lib64/liblibarm_mali_config_sysprops.so b/proprietary/vendor/lib64/liblibarm_mali_config_sysprops.so
new file mode 100644
index 0000000..8b649fc
--- /dev/null
+++ b/proprietary/vendor/lib64/liblibarm_mali_config_sysprops.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b9d3ba7188fc2c856b9324fc3b0b65f5783344c20fb75f0ad0eb2123a220895e
+size 43576
diff --git a/proprietary/vendor/lib64/mt6789/arm.graphics-V3-ndk.so b/proprietary/vendor/lib64/mt6789/arm.graphics-V3-ndk.so
new file mode 100644
index 0000000..21776df
--- /dev/null
+++ b/proprietary/vendor/lib64/mt6789/arm.graphics-V3-ndk.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1eedef4f77b095d720b38fa29826b3bf62bab2810f05ca2034585698c121adba
+size 10424