Warning: your data will be removed so backup it to other storage, for example your computer Warning: read the whole instruction before doing anything, especially if you do this for the first time
I have unlocked my bootloader a lot of time ago, so I am not really able to write guide for it right now :) Google it
- Reboot to bootloader:
Use any of these methods:
- Use this command on your computer:
adb reboot bootloader
- Press Power+Volume Down (can be different for different devices)
- Use this command on your computer:
- Download recovery to your computer. It is recommended to use TWRP
- Flash recovery while you are in bootloader by using this command on your computer:
fastboot flash recovery twrp.img
(use actual file name instead of twrp.img) - Congratulations! You are ready to use your custom recovery!
- Reboot to recovery:
- Reboot and when your device starts to load press and hold Power+Volume Down
- Use this command on your computer
fastboot reboot recovery
- I think there are also other ways to reboot to recovery,
- Wipe Dalvik, Cache, System, Vendor (it may depend in specific ROM which partitions you should wipe. Check your ROM's flash instructions). On TWRP you can do that this way: Wipe -> Advanced Wipe -> Check the partitions you need to wipe -> Swipe to Wipe
- Flash ROM
- Flash google apps (gapps) (this step can be optional if your ROM already has google apps. Check your ROM's flash instructions, there you can also possibly find recommendations which google apps to use)
- Flash Magisk (this step is absolutely optional depending whether you need Magisk (Root permissions) or not. I added this point to remember at which step you should flash it)
- Format data. On TWRP you can do that this way: Wipe -> Format Data -> type
yes
to the input and press mark button on the keyboard - Reboot to system
- Congratulations, you are ready to use your ROM!
You can flash by using any of these methods:
- You can send ROM file from your computer to your phone and flash it in twrp but I do not remember how to do that because I just use ADB Sideload method
- Enable
ADB Sideload
. On TWRP you can do that this way: Advanced -> ADB Sideload -> Swipe to Start Sideload
TODO: Updating to a newer build: Use the built in updater, or:
- Wipe Dalvik, Cache
- Flash ROM zip
- Reboot