Detect other oppo device, realme 1
This commit is contained in:
parent
6f3bf7ffd1
commit
2c385ffbe9
18
rw-system.sh
18
rw-system.sh
@ -129,7 +129,7 @@ changeKeylayout() {
|
|||||||
changed=true
|
changed=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if getprop ro.build.overlay.deviceid |grep -q RMX1931;then
|
if getprop ro.build.overlay.deviceid |grep -q -e RMX1931 -e CPH1859;then
|
||||||
cp /system/phh/oppo-touchpanel.kl /mnt/phh/keylayout/touchpanel.kl
|
cp /system/phh/oppo-touchpanel.kl /mnt/phh/keylayout/touchpanel.kl
|
||||||
chmod 0644 /mnt/phh/keylayout/touchpanel.kl
|
chmod 0644 /mnt/phh/keylayout/touchpanel.kl
|
||||||
changed=true
|
changed=true
|
||||||
@ -153,13 +153,15 @@ fi
|
|||||||
mount -o remount,ro /system || true
|
mount -o remount,ro /system || true
|
||||||
mount -o remount,ro / || true
|
mount -o remount,ro / || true
|
||||||
|
|
||||||
if [ -b /dev/block/bootdevice/by-name/oppodycnvbk ];then
|
for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do
|
||||||
for devname in RMX1931;do
|
if [ -b "$part" ];then
|
||||||
if grep -q $devname /dev/block/bootdevice/by-name/oppodycnvbk;then
|
for devname in RMX1931 CPH1859;do
|
||||||
setprop ro.build.overlay.deviceid $devname
|
if grep -q $devname $part;then
|
||||||
fi
|
setprop ro.build.overlay.deviceid $devname
|
||||||
done
|
fi
|
||||||
fi
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
mkdir -p /mnt/phh/
|
mkdir -p /mnt/phh/
|
||||||
|
Loading…
Reference in New Issue
Block a user