Working brains, common sense, lots of coffee
Latest platform-tools
Developer options enabled: Settings -> About phone -> Tap Build number at the bottom seven (7) times
ADB enabled: Settings -> System -> Developer options -> USB debugging
Required images: dtbo.img, vendor_boot.img, boot.img (put these in the same folder with platform-tools)
Get images from downloads page
ROM zip (put it in the same folder with platform-tools)
Unlocked bootloader
Reboot your phone to fastboot mode
Open cmd and go to the folder where platform tools are (DO NOT USE POWERSHELL!)
Enter following commands by copypasting one by one:
fastboot flash dtbo dtbo.img
fastboot flash vendor_boot vendor_boot.img
Temporarily flash recovery:
fastboot flash boot boot.img
Reboot your phone to recovery mode, click "Install update" -> "ADB Sideload"
In cmd enter command:
adb sideload Nameless-AOSP_xxx.zip
Wait until your device shows Step 2/2 and back arrow appears. Click back arrow, then click "Factory reset" -> "Format data/factory reset" -> "Format data"
Click back arrow in recovery, then click "Reboot to system"