From c9b139187f67383b98f979f21334e5a3c5029f16 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 15 Jun 2018 15:03:02 +0200 Subject: [PATCH] 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 --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 2010b35..5294408 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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 setprop persist.sys.qcom-brightness $(cat /sys/class/backlight/panel0-backlight/max_brightness) fi + +if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then + resize2fs /dev/block/platform/soc/1d84000.ufshc/by-name/userdata +fi