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: boot.img, vbmeta.img, vbmeta_system.img and recovery.img (put these in the same folder with platform-tools)
Get images from sourceforge
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 boot boot.img
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
fastboot flash --disable-verity --disable-verification vbmeta_system vbmeta_system.img
fastboot flash recovery recovery.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"