Skip to content
FLASH GUIDE

ROM Installation

Two methods to flash a custom ROM. Clean flash wipes all data. Dirty flash keeps your data intact.

Always back up your data before flashing. Clean flash will erase everything on the device.

Clean Flash

1
Reboot to bootloader (fastboot)
adb reboot bootloader
2
Connect your phone to PC, then verify it's detected
fastboot devices
3
Flash boot partition
fastboot flash boot boot.img
4
Flash vendor boot partition
fastboot flash vendor_boot vendor_boot.img
5
Flash DTBO partition
fastboot flash dtbo dtbo.img
6
Reboot into recovery
fastboot reboot recovery
7
In recovery, select Wipe data / factory reset and confirm.
8
Go back and select Apply update from ADB.
9
Sideload the ROM zip
adb sideload Rom*.zip
Or drag and drop the ROM zip file onto the terminal window.
10
After installation completes, reboot the system.
adb reboot

Dirty Flash

1
Reboot into recovery by holding Power + Volume Up simultaneously.
2
In the recovery menu, select Apply update through ADB.
3
Sideload the ROM zip
adb sideload Rom*.zip
Or drag and drop the ROM zip file onto the terminal window.
4
After installation completes, reboot the system.
adb reboot

Fastboot & ADB Commands

Common commands for logs and rebooting.

Logs

adb shell su -c dmesg > dmesg.txt
adb shell su -c logcat > logcat.txt

Reboot

adb reboot bootloader
fastboot reboot recovery

Viper Platform Documentation