Added CPH1859 and CPH1861 for DT2W and Brightness fixes
This commit is contained in:
parent
3cf77c937c
commit
dda3824e84
@ -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
|
||||
@ -237,7 +237,7 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \
|
||||
setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)"
|
||||
fi
|
||||
|
||||
if getprop ro.vendor.product.device |grep -iq -e RMX1801 -e RMX1803 -e RMX1807;then
|
||||
if getprop ro.vendor.product.device |grep -iq -e RMX1801 -e RMX1803 -e RMX1807 -e CPH1859 -e CPH1861;then
|
||||
setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user