Skip to content

Commit

Permalink
Resize userdata on OP6
Browse files Browse the repository at this point in the history
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
  • Loading branch information
phhusson committed Jun 15, 2018
1 parent f099635 commit c9b1391
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rw-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c9b1391

Please sign in to comment.