• Backup all your data
• Boot into TWRP (fastboot boot twrp.img)
• (If coming from stock) Flash "copy-partitions-payton.zip"
- Note: Only do this step if coming from stock, don't do it again when changing ROMs
• Wipe Data, Dalvik, System
• Flash the ROM file
• (Optional) Flash the TWRP installer
- You may need to do this because TWRP gets replaced when flashing a custom ROM
• Reboot to recovery
- If you chose not to flash TWRP, you will need to reboot to bootloader instead, then boot to TWRP once again (fastboot boot twrp.img)
• (Optional) Flash the desired Gapps package
- Note: Some ROMs (such as Pixel Experience) already have Google apps included, in that case there's no need to flash Gapps
• (Optional) Flash Magisk
• Reboot to system
• Done!
If it doesn't boot, try:
• Reboot into bootloader
• On CMD, run fastboot -w
- Note: You will lose everything on Internal Storage!