Warning
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!!!
DO NOT REBOOT YOUR PHONE! If you think you made a mistake, ask for help in the Telegram chat.
If you don't have access to fastboot, use the instructions in the partitioning guide to flash the engineering ABL.
- With the device turned off, hold the volume down button, then plug the cable in.
Download platform-tools and extract the folder somewhere, then open CMD as an administrator.
It is recommended to keep this window open and use it throughout the entire guide.
Replace
path\to\platform-tools
with the actual path to the platform-tools folder, for example C:\platform-tools.
cd path\to\platform-tools
Replace
path\to\modded-twrp-g8s.img
with the actual path of the provided TWRP imageAfter booting into TWRP, leave the device on the main screen. You can press the power button to turn the display off, if you want
fastboot boot path\to\modded-twrp-g8s.img
Ignore any possible errors and continue
Replug the cable if it says "no devices/emulators found"
adb shell umount /dev/block/by-name/userdata
adb shell parted /dev/block/sda
Use
print all
to make sure that partition 32 is Windows
rm 32
Use
print all
to make sure that partition 31 is ESP
rm 31
Use
print all
to make sure that partition 30 is userdataThese are two different commands, run them seperately
resizepart 30
126GB
quit
- Go to the Wipe menu in your recovery and wipe all data. If this doesn't work, simply reboot your phone.
Once it is booted, it might tell you decryption was unsuccesful and it will ask you to erase all data.
- Press this button to erase all data.