RM6785: Sync with device tree

- https://github.com/realme-mt6785-devs/android_device_realme_RM6785-common/commit/dcb5ca5e482b3991944a13f2b77afa6c4e30e0f0
- https://github.com/realme-mt6785-devs/android_device_realme_RM6785-common/commit/0641e851445a8cc273fc3d60a7ed5573aa44b9e8
- https://github.com/realme-mt6785-devs/android_device_realme_RM6785-common/commit/645723f94b92c40cdc70608a210e44ff35d31164

Change-Id: I5a6eec68e171f39aae6b0967a0153760545b1d20
diff --git a/Android.bp b/Android.bp
index 4104d8b..b8ff94b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -25,101 +25,6 @@
 }
 
 cc_prebuilt_library_shared {
-	name: "libmtk_vt_wrapper",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/lib/libmtk_vt_wrapper.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/lib64/libmtk_vt_wrapper.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libmtkavenhancements",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/lib/libmtkavenhancements.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/lib64/libmtkavenhancements.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libvcodec_cap",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/lib/libvcodec_cap.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/lib64/libvcodec_cap.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libvcodec_capenc",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/lib/libvcodec_capenc.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/lib64/libvcodec_capenc.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libvsim-adaptor-client",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/lib/libvsim-adaptor-client.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/lib64/libvsim-adaptor-client.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
 	name: "libaptXHD_encoder",
 	owner: "realme",
 	strip: {
@@ -152,166 +57,6 @@
 }
 
 cc_prebuilt_library_shared {
-	name: "libcomutils",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libcomutils.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libimsma",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libimsma.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libimsma_adapt",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libimsma_adapt.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libimsma_rtp",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libimsma_rtp.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libimsma_socketwrapper",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libimsma_socketwrapper.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libmtk_vt_service",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libmtk_vt_service.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libsignal",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libsignal.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libsink",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libsink.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libsource",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libsource.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
-	name: "libvt_avsync",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm64: {
-			srcs: ["proprietary/lib64/libvt_avsync.so"],
-		},
-	},
-	compile_multilib: "64",
-	check_elf_files: false,
-	prefer: true,
-}
-
-cc_prebuilt_library_shared {
 	name: "arm.graphics-V1-ndk_platform",
 	owner: "realme",
 	strip: {
@@ -542,27 +287,6 @@
 }
 
 cc_prebuilt_library_shared {
-	name: "vendor.mediatek.hardware.videotelephony@1.0-impl",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/vendor/lib/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	relative_install_path: "hw",
-	prefer: true,
-	soc_specific: true,
-}
-
-cc_prebuilt_library_shared {
 	name: "libOpenCL",
 	owner: "realme",
 	strip: {
@@ -2063,26 +1787,6 @@
 }
 
 cc_prebuilt_library_shared {
-	name: "vendor.mediatek.hardware.videotelephony@1.0",
-	owner: "realme",
-	strip: {
-		none: true,
-	},
-	target: {
-		android_arm: {
-			srcs: ["proprietary/vendor/lib/vendor.mediatek.hardware.videotelephony@1.0.so"],
-		},
-		android_arm64: {
-			srcs: ["proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so"],
-		},
-	},
-	compile_multilib: "both",
-	check_elf_files: false,
-	prefer: true,
-	soc_specific: true,
-}
-
-cc_prebuilt_library_shared {
 	name: "AVCSecureVdecCA",
 	owner: "realme",
 	strip: {
@@ -4027,6 +3731,24 @@
 }
 
 cc_prebuilt_library_shared {
+	name: "vendor.mediatek.hardware.videotelephony@1.0-impl",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	relative_install_path: "hw",
+	prefer: true,
+	soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
 	name: "imx471_mipi_raw1_IdxMgr",
 	owner: "realme",
 	strip: {
@@ -14789,6 +14511,23 @@
 }
 
 cc_prebuilt_library_shared {
+	name: "vendor.mediatek.hardware.videotelephony@1.0",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	soc_specific: true,
+}
+
+cc_prebuilt_library_shared {
 	name: "vendor.mediatek.hardware.wifi.supplicant@2.0",
 	owner: "realme",
 	strip: {
@@ -14908,6 +14647,244 @@
 }
 
 cc_prebuilt_library_shared {
+	name: "libcomutils",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libcomutils.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libimsma",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libimsma.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libimsma_adapt",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libimsma_adapt.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libimsma_rtp",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libimsma_rtp.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libimsma_socketwrapper",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libimsma_socketwrapper.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libmtk_vt_service",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libmtk_vt_service.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libmtk_vt_wrapper",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libmtk_vt_wrapper.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libsignal",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libsignal.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libsink",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libsink.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libsource",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libsource.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libvcodec_cap",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libvcodec_cap.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libvcodec_capenc",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libvcodec_capenc.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "libvt_avsync",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/libvt_avsync.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
+	name: "vendor.mediatek.hardware.videotelephony-V1-ndk",
+	owner: "realme",
+	strip: {
+		none: true,
+	},
+	target: {
+		android_arm64: {
+			srcs: ["proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so"],
+		},
+	},
+	compile_multilib: "64",
+	check_elf_files: false,
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_library_shared {
 	name: "vendor.mediatek.hardware.videotelephony@1.0.system_ext",
 	stem: "vendor.mediatek.hardware.videotelephony@1.0",
 	owner: "realme",
@@ -14915,14 +14892,11 @@
 		none: true,
 	},
 	target: {
-		android_arm: {
-			srcs: ["proprietary/system_ext/lib/vendor.mediatek.hardware.videotelephony@1.0.so"],
-		},
 		android_arm64: {
 			srcs: ["proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so"],
 		},
 	},
-	compile_multilib: "both",
+	compile_multilib: "64",
 	check_elf_files: false,
 	prefer: true,
 	system_ext_specific: true,
@@ -15258,17 +15232,6 @@
 }
 
 cc_prebuilt_binary {
-	name: "vtservice",
-	owner: "realme",
-	srcs: ["proprietary/bin/vtservice"],
-	check_elf_files: false,
-	strip: {
-		none: true,
-	},
-	prefer: true,
-}
-
-cc_prebuilt_binary {
 	name: "atcid",
 	owner: "realme",
 	srcs: ["proprietary/vendor/bin/atcid"],
@@ -16168,6 +16131,18 @@
 }
 
 cc_prebuilt_binary {
+	name: "vtservice",
+	owner: "realme",
+	srcs: ["proprietary/system_ext/bin/vtservice"],
+	check_elf_files: false,
+	strip: {
+		none: true,
+	},
+	prefer: true,
+	system_ext_specific: true,
+}
+
+cc_prebuilt_binary {
 	name: "vendor.oplus.hardware.biometrics.fingerprint@2.1-service",
 	owner: "realme",
 	srcs: ["proprietary/odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service"],
diff --git a/RM6785-common-vendor.mk b/RM6785-common-vendor.mk
index d3b3250..badb3ea 100644
--- a/RM6785-common-vendor.mk
+++ b/RM6785-common-vendor.mk
@@ -6,7 +6,6 @@
     vendor/realme/RM6785-common
 
 PRODUCT_COPY_FILES += \
-    vendor/realme/RM6785-common/proprietary/etc/init/init.vtservice.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.vtservice.rc \
     vendor/realme/RM6785-common/proprietary/product/etc/permissions/com.android.hotwordenrollment.common.util.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/com.android.hotwordenrollment.common.util.xml \
     vendor/realme/RM6785-common/proprietary/odm/etc/audio/audio_device/audio_device.xml:$(TARGET_COPY_OUT_ODM)/etc/audio/audio_device/audio_device.xml \
     vendor/realme/RM6785-common/proprietary/odm/etc/audio/audio_device/common/audio_device.xml:$(TARGET_COPY_OUT_ODM)/etc/audio/audio_device/common/audio_device.xml \
@@ -173,6 +172,7 @@
     vendor/realme/RM6785-common/proprietary/odm/vendor/app/mcRegistry/09070000000000000000000000000000.drbin:$(TARGET_COPY_OUT_ODM)/vendor/app/mcRegistry/09070000000000000000000000000000.drbin \
     vendor/realme/RM6785-common/proprietary/odm/vendor/app/mcRegistry/09080000000000000000000000000000.tlbin:$(TARGET_COPY_OUT_ODM)/vendor/app/mcRegistry/09080000000000000000000000000000.tlbin \
     vendor/realme/RM6785-common/proprietary/odm/vendor/app/mcRegistry/09150000000000000000000000000000.tlbin:$(TARGET_COPY_OUT_ODM)/vendor/app/mcRegistry/09150000000000000000000000000000.tlbin \
+    vendor/realme/RM6785-common/proprietary/system_ext/etc/init/init.vtservice.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.vtservice.rc \
     vendor/realme/RM6785-common/proprietary/vendor/app/mcRegistry/020b0000000000000000000000000000.drbin:$(TARGET_COPY_OUT_VENDOR)/app/mcRegistry/020b0000000000000000000000000000.drbin \
     vendor/realme/RM6785-common/proprietary/vendor/app/mcRegistry/020b0000000000000000000000000000.tlbin:$(TARGET_COPY_OUT_VENDOR)/app/mcRegistry/020b0000000000000000000000000000.tlbin \
     vendor/realme/RM6785-common/proprietary/vendor/app/mcRegistry/020f0000000000000000000000000000.drbin:$(TARGET_COPY_OUT_VENDOR)/app/mcRegistry/020f0000000000000000000000000000.drbin \
@@ -800,23 +800,8 @@
 
 PRODUCT_PACKAGES += \
     libem_support_jni \
-    libmtk_vt_wrapper \
-    libmtkavenhancements \
-    libvcodec_cap \
-    libvcodec_capenc \
-    libvsim-adaptor-client \
     libaptXHD_encoder \
     libaptX_encoder \
-    libcomutils \
-    libimsma \
-    libimsma_adapt \
-    libimsma_rtp \
-    libimsma_socketwrapper \
-    libmtk_vt_service \
-    libsignal \
-    libsink \
-    libsource \
-    libvt_avsync \
     arm.graphics-V1-ndk_platform \
     libGLES_mali \
     libGLES_meow \
@@ -828,7 +813,6 @@
     vendor.mediatek.hardware.mms@1.5-impl \
     vendor.mediatek.hardware.nvram@1.1-impl \
     vendor.mediatek.hardware.pq@2.6-impl \
-    vendor.mediatek.hardware.videotelephony@1.0-impl \
     libOpenCL \
     libTEECommon \
     libaedv \
@@ -904,7 +888,6 @@
     vendor.mediatek.hardware.pq@2.4 \
     vendor.mediatek.hardware.pq@2.5 \
     vendor.mediatek.hardware.pq@2.6 \
-    vendor.mediatek.hardware.videotelephony@1.0 \
     AVCSecureVdecCA \
     VP9SecureVdecCA \
     audio.primary.mt6785 \
@@ -1018,6 +1001,7 @@
     vendor.mediatek.hardware.camera.postproc@1.0-impl \
     vendor.mediatek.hardware.dfps@1.0-impl \
     vendor.mediatek.hardware.keymaster_attestation@1.1-impl \
+    vendor.mediatek.hardware.videotelephony@1.0-impl \
     imx471_mipi_raw1_IdxMgr \
     imx471_mipi_raw1_tuning \
     imx682_mipi_raw_IdxMgr \
@@ -1651,6 +1635,7 @@
     vendor.mediatek.hardware.power@1.1 \
     vendor.mediatek.hardware.power@2.0 \
     vendor.mediatek.hardware.pplagent@1.0 \
+    vendor.mediatek.hardware.videotelephony@1.0 \
     vendor.mediatek.hardware.wifi.supplicant@2.0 \
     vendor.mediatek.hardware.wifi.supplicant@2.1 \
     vendor.mediatek.hardware.wifi.supplicant@2.2 \
@@ -1658,6 +1643,20 @@
     vendor.trustonic.tee.tui@1.0 \
     vendor.trustonic.tee@1.0 \
     vendor.trustonic.tee@1.1 \
+    libcomutils \
+    libimsma \
+    libimsma_adapt \
+    libimsma_rtp \
+    libimsma_socketwrapper \
+    libmtk_vt_service \
+    libmtk_vt_wrapper \
+    libsignal \
+    libsink \
+    libsource \
+    libvcodec_cap \
+    libvcodec_capenc \
+    libvt_avsync \
+    vendor.mediatek.hardware.videotelephony-V1-ndk \
     vendor.mediatek.hardware.videotelephony@1.0.system_ext \
     liboemcrypto \
     libormshalclient \
@@ -1689,7 +1688,6 @@
     oplus_appradio_device_manifest \
     oplus_radio_device_manifest \
     vendor.mediatek.hardware.dplanner@2.0-service \
-    vtservice \
     atcid \
     audiocmdservice_atci \
     autobt \
@@ -1763,4 +1761,5 @@
     wmt_loader \
     wpa_cli \
     xcap \
+    vtservice \
     vendor.oplus.hardware.biometrics.fingerprint@2.1-service
diff --git a/proprietary/bin/vtservice b/proprietary/bin/vtservice
deleted file mode 100755
index 1b9d5bf..0000000
--- a/proprietary/bin/vtservice
+++ /dev/null
Binary files differ
diff --git a/proprietary/etc/init/init.vtservice.rc b/proprietary/etc/init/init.vtservice.rc
deleted file mode 100644
index 08e217d..0000000
--- a/proprietary/etc/init/init.vtservice.rc
+++ /dev/null
@@ -1,8 +0,0 @@
-# VTService .rc configure
-
-service vtservice /system/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
diff --git a/proprietary/lib/libmtk_vt_wrapper.so b/proprietary/lib/libmtk_vt_wrapper.so
deleted file mode 100644
index 3a5d6e8..0000000
--- a/proprietary/lib/libmtk_vt_wrapper.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib/libmtkavenhancements.so b/proprietary/lib/libmtkavenhancements.so
deleted file mode 100644
index 00ba53b..0000000
--- a/proprietary/lib/libmtkavenhancements.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib/libvcodec_cap.so b/proprietary/lib/libvcodec_cap.so
deleted file mode 100644
index c9c6f9a..0000000
--- a/proprietary/lib/libvcodec_cap.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib/libvcodec_capenc.so b/proprietary/lib/libvcodec_capenc.so
deleted file mode 100644
index 54d28ed..0000000
--- a/proprietary/lib/libvcodec_capenc.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib/libvsim-adaptor-client.so b/proprietary/lib/libvsim-adaptor-client.so
deleted file mode 100644
index d0d9dfb..0000000
--- a/proprietary/lib/libvsim-adaptor-client.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libcomutils.so b/proprietary/lib64/libcomutils.so
deleted file mode 100644
index f17b4c4..0000000
--- a/proprietary/lib64/libcomutils.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libimsma.so b/proprietary/lib64/libimsma.so
deleted file mode 100644
index 374c710..0000000
--- a/proprietary/lib64/libimsma.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libimsma_adapt.so b/proprietary/lib64/libimsma_adapt.so
deleted file mode 100644
index 98be140..0000000
--- a/proprietary/lib64/libimsma_adapt.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libimsma_rtp.so b/proprietary/lib64/libimsma_rtp.so
deleted file mode 100644
index db3a6df..0000000
--- a/proprietary/lib64/libimsma_rtp.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libimsma_socketwrapper.so b/proprietary/lib64/libimsma_socketwrapper.so
deleted file mode 100644
index 87d014a..0000000
--- a/proprietary/lib64/libimsma_socketwrapper.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libmtk_vt_service.so b/proprietary/lib64/libmtk_vt_service.so
deleted file mode 100644
index af4efc4..0000000
--- a/proprietary/lib64/libmtk_vt_service.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libmtk_vt_wrapper.so b/proprietary/lib64/libmtk_vt_wrapper.so
deleted file mode 100644
index ab50442..0000000
--- a/proprietary/lib64/libmtk_vt_wrapper.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libmtkavenhancements.so b/proprietary/lib64/libmtkavenhancements.so
deleted file mode 100644
index 2c8ee34..0000000
--- a/proprietary/lib64/libmtkavenhancements.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libsignal.so b/proprietary/lib64/libsignal.so
deleted file mode 100644
index 041583c..0000000
--- a/proprietary/lib64/libsignal.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libsink.so b/proprietary/lib64/libsink.so
deleted file mode 100644
index df4b360..0000000
--- a/proprietary/lib64/libsink.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libsource.so b/proprietary/lib64/libsource.so
deleted file mode 100644
index 5166931..0000000
--- a/proprietary/lib64/libsource.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libvcodec_cap.so b/proprietary/lib64/libvcodec_cap.so
deleted file mode 100644
index 34da18c..0000000
--- a/proprietary/lib64/libvcodec_cap.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libvcodec_capenc.so b/proprietary/lib64/libvcodec_capenc.so
deleted file mode 100644
index 548dbd2..0000000
--- a/proprietary/lib64/libvcodec_capenc.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libvsim-adaptor-client.so b/proprietary/lib64/libvsim-adaptor-client.so
deleted file mode 100644
index 0192dbc..0000000
--- a/proprietary/lib64/libvsim-adaptor-client.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/lib64/libvt_avsync.so b/proprietary/lib64/libvt_avsync.so
deleted file mode 100644
index 5eadabc..0000000
--- a/proprietary/lib64/libvt_avsync.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/system_ext/bin/vtservice b/proprietary/system_ext/bin/vtservice
new file mode 100755
index 0000000..52ae28a
--- /dev/null
+++ b/proprietary/system_ext/bin/vtservice
Binary files 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/lib/vendor.mediatek.hardware.videotelephony@1.0.so b/proprietary/system_ext/lib/vendor.mediatek.hardware.videotelephony@1.0.so
deleted file mode 100644
index 3fe3419..0000000
--- a/proprietary/system_ext/lib/vendor.mediatek.hardware.videotelephony@1.0.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/system_ext/lib64/libcomutils.so b/proprietary/system_ext/lib64/libcomutils.so
new file mode 100644
index 0000000..2dab0d2
--- /dev/null
+++ b/proprietary/system_ext/lib64/libcomutils.so
Binary files differ
diff --git a/proprietary/system_ext/lib64/libimsma.so b/proprietary/system_ext/lib64/libimsma.so
new file mode 100644
index 0000000..e53bcfa
--- /dev/null
+++ b/proprietary/system_ext/lib64/libimsma.so
Binary files 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..6d30055
--- /dev/null
+++ b/proprietary/system_ext/lib64/libimsma_adapt.so
Binary files 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..d5c1343
--- /dev/null
+++ b/proprietary/system_ext/lib64/libimsma_rtp.so
Binary files 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..5a2079a
--- /dev/null
+++ b/proprietary/system_ext/lib64/libimsma_socketwrapper.so
Binary files 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..827ff55
--- /dev/null
+++ b/proprietary/system_ext/lib64/libmtk_vt_service.so
Binary files 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..54283f6
--- /dev/null
+++ b/proprietary/system_ext/lib64/libmtk_vt_wrapper.so
Binary files differ
diff --git a/proprietary/system_ext/lib64/libsignal.so b/proprietary/system_ext/lib64/libsignal.so
new file mode 100644
index 0000000..b2943a5
--- /dev/null
+++ b/proprietary/system_ext/lib64/libsignal.so
Binary files differ
diff --git a/proprietary/system_ext/lib64/libsink.so b/proprietary/system_ext/lib64/libsink.so
new file mode 100644
index 0000000..070c6b0
--- /dev/null
+++ b/proprietary/system_ext/lib64/libsink.so
Binary files differ
diff --git a/proprietary/system_ext/lib64/libsource.so b/proprietary/system_ext/lib64/libsource.so
new file mode 100644
index 0000000..1c4df90
--- /dev/null
+++ b/proprietary/system_ext/lib64/libsource.so
Binary files 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..4495712
--- /dev/null
+++ b/proprietary/system_ext/lib64/libvcodec_cap.so
Binary files 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..2df5e20
--- /dev/null
+++ b/proprietary/system_ext/lib64/libvcodec_capenc.so
Binary files differ
diff --git a/proprietary/system_ext/lib64/libvt_avsync.so b/proprietary/system_ext/lib64/libvt_avsync.so
new file mode 100644
index 0000000..f060770
--- /dev/null
+++ b/proprietary/system_ext/lib64/libvt_avsync.so
Binary files 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..ac26244
--- /dev/null
+++ b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony-V1-ndk.so
Binary files 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
index 8ca3fd5..15ca744 100644
--- a/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
+++ b/proprietary/system_ext/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
Binary files differ
diff --git a/proprietary/vendor/bin/hw/vtservice_hidl b/proprietary/vendor/bin/hw/vtservice_hidl
old mode 100644
new mode 100755
index 7dc95e0..5b6bf14
--- a/proprietary/vendor/bin/hw/vtservice_hidl
+++ b/proprietary/vendor/bin/hw/vtservice_hidl
Binary files differ
diff --git a/proprietary/vendor/bin/mnld b/proprietary/vendor/bin/mnld
index 758aedc..4b33960 100755
--- a/proprietary/vendor/bin/mnld
+++ b/proprietary/vendor/bin/mnld
Binary files differ
diff --git a/proprietary/vendor/lib/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so b/proprietary/vendor/lib/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so
deleted file mode 100644
index 2cd75d7..0000000
--- a/proprietary/vendor/lib/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/vendor/lib/vendor.mediatek.hardware.videotelephony@1.0.so b/proprietary/vendor/lib/vendor.mediatek.hardware.videotelephony@1.0.so
deleted file mode 100644
index 710712f..0000000
--- a/proprietary/vendor/lib/vendor.mediatek.hardware.videotelephony@1.0.so
+++ /dev/null
Binary files differ
diff --git a/proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so b/proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so
index 335836e..f24a4ec 100644
--- a/proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so
+++ b/proprietary/vendor/lib64/hw/vendor.mediatek.hardware.videotelephony@1.0-impl.so
Binary files differ
diff --git a/proprietary/vendor/lib64/libaalservice.so b/proprietary/vendor/lib64/libaalservice.so
index a04b0f7..e417182 100644
--- a/proprietary/vendor/lib64/libaalservice.so
+++ b/proprietary/vendor/lib64/libaalservice.so
Binary files differ
diff --git a/proprietary/vendor/lib64/libcam.utils.sensorprovider.so b/proprietary/vendor/lib64/libcam.utils.sensorprovider.so
index 8ab73c5..bdb2efb 100644
--- a/proprietary/vendor/lib64/libcam.utils.sensorprovider.so
+++ b/proprietary/vendor/lib64/libcam.utils.sensorprovider.so
Binary files differ
diff --git a/proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so b/proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
index 25b847c..baf8234 100644
--- a/proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
+++ b/proprietary/vendor/lib64/vendor.mediatek.hardware.videotelephony@1.0.so
Binary files differ