From c198bdb1b66b1c3505e11b41d0f46afe5aa64eb8 Mon Sep 17 00:00:00 2001 From: Myst33d Date: Thu, 20 Feb 2020 22:19:11 +0600 Subject: [PATCH 1/2] Fix camera for cactus and cereus --- rw-system.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rw-system.sh b/rw-system.sh index 18dfbf8..65d6b4e 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -278,6 +278,7 @@ for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril. done if getprop ro.vendor.build.fingerprint | grep -iq -e iaomi/cactus -e iaomi/cereus; then + mount -o bind /system/phh/empty /vendor/lib/libpdx_default_transport.so setprop debug.stagefright.omx_default_rank.sw-audio 1 setprop debug.stagefright.omx_default_rank 0 fi From caa9ad2e3bde211d2af370258b0404b004ef6fee Mon Sep 17 00:00:00 2001 From: Myst33d Date: Thu, 20 Feb 2020 22:28:35 +0600 Subject: [PATCH 2/2] Disable libpdx_default_transport uncoditionally --- rw-system.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 65d6b4e..0a3a28c 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -278,11 +278,13 @@ for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril. done if getprop ro.vendor.build.fingerprint | grep -iq -e iaomi/cactus -e iaomi/cereus; then - mount -o bind /system/phh/empty /vendor/lib/libpdx_default_transport.so setprop debug.stagefright.omx_default_rank.sw-audio 1 setprop debug.stagefright.omx_default_rank 0 fi +mount -o bind /system/phh/empty /vendor/lib/libpdx_default_transport.so +mount -o bind /system/phh/empty /vendor/lib64/libpdx_default_transport.so + mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkThemeOverlay.apk || true