-
A brain (most important of all)
Warning
Do not run the same command twice unless specified.
DO NOT REBOOT YOUR PHONE! If you think you made a mistake, ask for help in the Telegram chat.
Do not run all commands at once, execute them in order!
YOU CAN BREAK YOUR DEVICE WITH THE COMMANDS BELOW IF YOU DO THEM WRONG!!!
Open a CMD window inside the platform-tools folder, then (while your phone is in fastboot mode) run
fastboot flash recovery path\to\twrp.img reboot recovery
Use TWRP now to back up your Modem and EFS partition (as well as anything else if you have important data). Move this backup to a safe place (e.g your PC) as the next steps will wipe your data.
Warning
All of your data will be erased. This is your last chance to back up.
IF YOU PROCEED WITHOUT BACKING UP MODEM AND EFS, YOU ARE ON YOUR OWN IF YOU MESS UP
Your Nothing Phone (2) may have different storage sizes. This guide uses the values of the 512GB model as an example. When relevant, the guide will mention if other values can or should be used.
- Go to "Mount" in TWRP and unmount data, if it is mounted
Download the parted file and move it in the platform-tools folder, then run
adb push parted /cache/ && adb shell "chmod 755 /cache/parted" && adb shell /cache/parted /dev/block/sda
Parted will print the list of partitions, userdata should be the last partition in the list.
print
Replace $ with the number of the userdata partition, which should be 13
rm $
Replace 7837MB with the former start value of userdata which we just deleted (it is probably 7837MB)
Replace 505GB with the end value you want userdata to have
mkpart userdata f2fs 7837MB 392GB
Replace 392GB with the end value of userdata
Replace 392GB with the value you used before, adding 1GB to it
mkpart esp fat32 392GB 393GB
Replace 393GB with the end value of esp
Replace 505GB with the end value of your disk, use
p free
to find it
mkpart win ntfs 32.3GB 505GB
Use
set $ esp on
quit
- Format all data in TWRP, or Android will not boot.
- ( Go to Wipe > Format data > type yes )
- Just restart the phone, and see if Android still works