# How To Flash ## Preface Before you begin, make sure you have: * Backed up your data. * Have the latest [platform tools](https://developer.android.com/studio/releases/platform-tools) installed on your PC. * Updated/downgraded to the firmware version specified by the maintainer. ## Recovery OTA Package 1. Extract boot, dtbo, recovery, vendor_boot via [Fastboot Enhance](https://github.com/libxzr/FastbootEnhance). 2. Reboot to bootloader, enter the following commands: ```shell fastboot flash boot boot.img fastboot flash dtbo dtbo.img fastboot flash recovery recovery.img fastboot flash vendor_boot vendor_boot.img ``` 3. Reboot to recovery. 4. Wipe data (required only for the first installation and at the request of the maintainer). 5. Enter to sideload mode and execute the following command: ```shell adb sideload <downloaded OTA package> ``` 6. Reboot to system. ## Fastboot Update Package 1. Reboot to bootloader. 2. Execute the following command to wipe data (required only for the first installation and at the request of the maintainer): ```shell fastboot -w ``` 3. Execute the following command: ```shell fastboot update <downloaded update package> ``` 4. Wait for command execution to complete.