diff --git a/rw-system.sh b/rw-system.sh index f39a477..e68d8ec 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -129,7 +129,7 @@ changeKeylayout() { changed=true fi - if getprop ro.build.overlay.deviceid |grep -q -e RMX1931 -e CPH1859;then + if getprop ro.build.overlay.deviceid |grep -q -e RMX1931 -e CPH1859 -e CPH1861;then cp /system/phh/oppo-touchpanel.kl /mnt/phh/keylayout/touchpanel.kl chmod 0644 /mnt/phh/keylayout/touchpanel.kl changed=true @@ -161,7 +161,7 @@ mount -o remount,ro / || true for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do if [ -b "$part" ];then - for devname in RMX1931 CPH1859;do + for devname in RMX1931 CPH1859 CPH1861;do if grep -q $devname $part;then setprop ro.build.overlay.deviceid $devname fi @@ -241,6 +241,10 @@ if getprop ro.vendor.product.device |grep -iq -e RMX1801 -e RMX1803 -e RMX1807;t setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" fi +if getprop ro.build.overlay.deviceid |grep -q -e CPH1859 -e CPH1861;then + setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" +fi + if getprop ro.vendor.build.fingerprint | grep -iq \ -e Xiaomi/beryllium/beryllium -e Xiaomi/sirius/sirius \ -e Xiaomi/dipper/dipper -e Xiaomi/ursa/ursa -e Xiaomi/polaris/polaris \