From 8d9236805e0bcf64b46d1f5bf31903973eb1f258 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Thu, 29 Nov 2018 08:37:48 +0800 Subject: [PATCH 1/2] Update rw-system.sh for platina --- rw-system.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index ca3469f..1def54e 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -60,7 +60,7 @@ changeKeylayout() { chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl fi - 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;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;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 @@ -133,14 +133,15 @@ 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 -i -e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura -e xiaomi/nitrogen -e xiaomi/whyred;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;then setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) fi if getprop ro.vendor.build.fingerprint |grep -q \ -e Xiaomi/beryllium/beryllium -e Xiaomi/sirius/sirius \ -e Xiaomi/dipper/dipper -e Xiaomi/ursa/ursa -e Xiaomi/polaris/polaris \ - -e motorola/ali/ali -e iaomi/perseus/perseus ;then + -e motorola/ali/ali -e iaomi/perseus/perseus -e iaomi/platina/platina ;then mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx fi From 3badf7271b2ae76b465ade691cb31bec4394bcf2 Mon Sep 17 00:00:00 2001 From: suwakowww <495599914@qq.com> Date: Thu, 29 Nov 2018 16:04:09 +0800 Subject: [PATCH 2/2] revert to single line I don't know why it will cause boot failed. --- rw-system.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 1def54e..0d2e441 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -133,8 +133,7 @@ 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 -i -e xiaomi/clover -e xiaomi/wayne \ - -e xiaomi/sakura -e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina;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;then setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) fi