From 8165b69e2c8942ad2506f2bc718803a9d1d51137 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Wed, 13 Feb 2019 13:48:02 +0800 Subject: [PATCH 1/2] Sync some fixes for 8.1 tree --- rw-system.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index dc81005..9073133 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -53,9 +53,15 @@ changeKeylayout() { chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl fi - if getprop ro.vendor.build.fingerprint |grep -q Xiaomi/polaris;then + if getprop ro.vendor.build.fingerprint |grep -iq \ + -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \ + -e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \ + -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \ + -e xiaomi/nitrogen -e xiaomi/daisy;then cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl + cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl + chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl changed=true fi @@ -119,10 +125,20 @@ if grep -qF 'mkdir /data/.fps 0770 system fingerp' vendor/etc/init/hw/init.mmi.r chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt fi -if getprop ro.vendor.build.fingerprint |grep -q -e Xiaomi/clover/clover -e iaomi/wayne/wayne;then +if getprop ro.vendor.build.fingerprint |grep -q -i \ + -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \ + -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \ + -e xiaomi/ysl;then setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) 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 /vendor/lib/libmtk-ril.so /vendor/lib64/libmtk-ril.so;do [ ! -f $f ] && continue ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')" From 242ad2b8dda23587bc2a4e6c0a000e289688f3f6 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Wed, 13 Feb 2019 14:10:48 +0800 Subject: [PATCH 2/2] change "perseus" to "sakura" Perseus start on 9.0, seems no need this fix. And seems sakura need this fix too, because daisy applied. --- rw-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 9073133..393ddce 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -56,7 +56,7 @@ changeKeylayout() { if getprop ro.vendor.build.fingerprint |grep -iq \ -e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \ -e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \ - -e xiaomi/platina -e iaomi/perseus -e xiaomi/ysl \ + -e xiaomi/platina -e xiaomi/sakura -e xiaomi/ysl \ -e xiaomi/nitrogen -e xiaomi/daisy;then cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl