From 361aedfd203c5c0bc74ba956ee14f19bc677283f Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 2 Jul 2018 00:22:27 +0200 Subject: [PATCH] night mode is slow on mt6580 as well --- rw-system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index e644863..46220c0 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -71,10 +71,10 @@ if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata fi -if getprop ro.vendor.build.fingerprint |grep full_k50v1_64;then +if getprop ro.vendor.build.fingerprint |grep -q full_k50v1_64 || getprop ro.hardware |grep -q mt6580 ;then setprop persist.sys.overlay.nightmode false fi -if getprop ro.wlan.mtk.wifi.5g |grep -qF 1;then +if getprop ro.wlan.mtk.wifi.5g |grep -q 1;then setprop persist.sys.overlay.wifi5g true fi