From ec9d31fc7a939106ba54ef2362e99234c66f6e21 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Wed, 26 Sep 2018 18:01:10 +0800 Subject: [PATCH] Fix camera flash on Mi 6X / A2 (#46) https://github.com/phhusson/treble_experimentations/issues/169 --- rw-system.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index e64bbee..1a66961 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -130,6 +130,13 @@ if getprop ro.vendor.build.fingerprint |grep -q -e Xiaomi/beryllium/beryllium -e mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx fi +if getprop ro.vendor.build.fingerprint |grep -q -i -e xiaomi/wayne -e xiaomi/jasmine;then + setprop persist.imx376_sunny.low.lux 310 + setprop persist.imx376_sunny.light.lux 280 + setprop persist.imx376_ofilm.low.lux 310 + setprop persist.imx376_ofilm.light.lux 280 +fi + for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so;do [ ! -f $f ] && continue ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')"