Stop whitelisting all oppo devices in the world, and regexp it
This commit is contained in:
parent
552f710be1
commit
04583fa95a
@ -161,11 +161,10 @@ mount -o remount,ro / || true
|
|||||||
|
|
||||||
for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do
|
for part in /dev/block/bootdevice/by-name/oppodycnvbk /dev/block/platform/bootdevice/by-name/nvdata;do
|
||||||
if [ -b "$part" ];then
|
if [ -b "$part" ];then
|
||||||
for devname in RMX1931 CPH1859 CPH1861;do
|
oppoName="$(grep -aohE '(RMX|CPH)[0-9]{4}' "$part")"
|
||||||
if grep -q $devname $part;then
|
if [ -n "$oppoName" ];then
|
||||||
setprop ro.build.overlay.deviceid $devname
|
setprop ro.build.overlay.deviceid "$oppoName"
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user