Pie changed product property. use vendor fingerprint
Change-Id: Iefc59a1174891eba14d680dcb56cb051e5bdc2dd
diff --git a/rw-system.sh b/rw-system.sh
index 56dab72..3565413 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -60,7 +60,7 @@
changed=true
fi
- if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then
+ if getprop ro.vendor.build.fingerprint |grep -qi oneplus/oneplus6/oneplus6;then
cp /system/phh/oneplus6-synaptics_s3320.kl /mnt/phh/keylayout/synaptics_s3320.kl
chmod 0644 /mnt/phh/keylayout/synaptics_s3320.kl
changed=true
@@ -106,7 +106,7 @@
setprop persist.sys.qcom-brightness $(cat /sys/class/backlight/panel0-backlight/max_brightness)
fi
-if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then
+if getprop ro.vendor.build.fingerprint |grep -qi oneplus/oneplus6/oneplus6;then
resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata
fi