- Download the rom package along with boot,dtbo and vendor_boot(links mentioned in post)
- Put downloaded files in a folder(your platform tools folder preferred)
- reboot to bootloader(hold power + volume down button)
- In your pc,open terminal where you copied the above files and run the following commands:
- Format data via recovery(optional if flashing on the same rom)
- select reboot to recovery(advanced -> reboot to recovery)
- select apply update in recovery
- In your pc terminal, run adb sideload rom.zip(replace rom.zip with the downloaded rom package name.zip)
- if you are flashing a vanilla build and want to flash gapps, select reboot to recovery(installation ends at 47% displayed on your pc terminal) and then sideload gapps by selecting apply update. Skip this step if you are already flashing a gapps build
- Reboot to system
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash vendor_boot vendor_boot.img
fastboot reboot recovery