Resize userdata on OP6

We'll probably want to do that for other devices as well
But this requires /data to be available at that time.
That's probably true only for FBE devices, not FDE.
Also, we might not want to do that on all devices
So for the moment, do it only on OP6
This commit is contained in:
Pierre-Hugues Husson 2018-06-15 15:03:02 +02:00
parent f099635304
commit c9b139187f

View File

@ -66,3 +66,7 @@ if getprop ro.hardware |grep -qF qcom && [ -f /sys/class/backlight/panel0-backli
grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness;then grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness;then
setprop persist.sys.qcom-brightness $(cat /sys/class/backlight/panel0-backlight/max_brightness) setprop persist.sys.qcom-brightness $(cat /sys/class/backlight/panel0-backlight/max_brightness)
fi fi
if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then
resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata
fi