-
Unlocked bootloader
Warning
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!!!
Important
OOS12 and ROMs that use OOS12 firmware have extremely experimental Windows support and may not work at all.
It is highly recommended to downgrade to OOS11 if you want to use Windows.
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
Note
If your device is not detected in fastboot or recovery mode, you'll have to install USB drivers using this guide
While your phone is in fastboot mode, replace
path\to\moddedtwrp.img
with the actual path of the image
fastboot boot path\to\moddedtwrp.img
This will back up fsc, fsg, modemst1 and modemst2 to the current path your CMD is opened in (for example C:\platform-tools). Confirm these files are actually there before proceeding.
Keep these backups in a safe place. If your device's software ever gets destroyed, you might need these backups or your phone could lose cellular capabilities.
If you've got anything else you want to back up, do this now. Your Android data will be erased in the next steps.
cmd /c "for %i in (fsg,fsc,modemst1,modemst2) do (adb shell dd if=/dev/block/by-name/%i of=/tmp/%i.bin & adb pull /tmp/%i.bin)"
This will back up your boot image in the current directory (which should be the platform-tools folder)
Replug the cable if it says "no devices/emulators found"
adb pull /dev/block/by-name/boot_a boot.img
If you do not do this, Windows may break your device
adb shell fixgpt
Ignore any possible errors and continue
adb shell umount /dev/block/by-name/userdata
adb shell 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 19 or 22
rm $
Replace 7971MB with the former start value of userdata which we just deleted
Replace 64GB with the end value you want userdata to have. In this example your available usable space in Android will be 64GB-7971MB = 56GB
mkpart userdata ext4 7971MB 64GB
Replace 64GB with the end value of userdata
Replace 64.3GB with the value you used before, adding 0.3GB to it
mkpart esp fat32 64GB 64.3GB
Replace 64.3GB with the end value of esp
mkpart win ntfs 64.3GB -0MB
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
- If it doesn't, boot into stock recovery and perform a factory reset there
- Select Wipe data and cache > Erase everything > yes
Reboot into the modded TWRP, then run the below two commands
adb shell mkfs.ntfs -f /dev/block/by-name/win -L WINONEPLUS
adb shell mkfs.fat -F32 -s1 /dev/block/by-name/esp -n ESPONEPLUS