Android Flash Tool is a web-based tool that lets you flash a pre built Android build to your device for development and testing.
Android Flash Tool supports these devices:
- Pixel 2 and newer
- DragonBoard RB3 (also known as db845c)
- HiKey 960
- HiKey
Meet requirements
To run the Android Flash Tool, you must meet these requirements:
- Hardware requirements
- A browser supporting WebUSB, such as Chrome or Edge 79+
Enable your USB connection
Before running Android on a device, you must enable your USB connection:
Enable OEM unlocking and USB debugging in the developer options:
- In the Settings app, tap About phone.
- Tap Build number seven times.
- When you see the message You are now a developer!, tap <-.
- Tap System, then tap Developer options.
- Enable OEM unlocking and USB debugging. If OEM unlocking is unavailable, connect to the internet so the device can check in. If that still doesn't work, you can force a check in: In the Dialer app, enter *#*#CHECKIN#*#* (*#*#2432546#*#*) (no SIM required). After entering the number (no need to press call), the text disappears and a success notification appears.
If OEM unlocking remains unavailable, your device might be SIM locked by your carrier and the bootloader can't be unlocked.
Connect your device to a USB port on your workstation.
Flash your device
If you have Android Debug Bridge (adb) running on your machine, stop the adb service before proceeding so that it doesn't interfere with the flashing process. To stop adb, run:
adb kill-server
In a browser on your development workstation, open flash.android.com. The Welcome page appears.
Click Allow ADB access to allow the tool to communicate with your test device through adb.
Click Add new device.
Select your device from the list and click Connect. This list might not contain the full device name.
On your device's screen, select Always allow from this computer and click OK to accept the USB debugging connection.
Select the connected device in your browser.
Search for and select your build from the list. You can also select options, such as wiping the device or force flashing all partitions.
To start flashing, click Install. The device reboots and enters fastboot mode.
After Flash Complete appears, disconnect the device from the USB cable.
Flash devices unable to boot
If your device is unable to boot normally, you might not be able to flash your device using the previous instructions. Instead, you can try flashing with Fastboot.
To do this, you need to first boot your device into Fastboot mode by using a key combination:
- Determine the key combination for your device. For a table of Fastboot key combinations, see Fastboot key combinations.
- Turn the device off.
- Turn the device on and immediately hold down the key combination for your device (determined in step 1).
Once your device is in Fastboot mode, open flash.android.com and follow the earlier flashing instructions, ignoring the steps related to ADB.
Resolve USB transfer errors
Sometimes Android devices have trouble communicating through certain USB ports or hubs due to the high throughput of data. To resolve transfer errors:
- Don't use USB hubs. This includes connections through monitors.
- Don't use USB extension cables or adapters if possible.
- Try a different USB port. Rear ports are often more reliable than front ones.
- If you're using a USB C port, try a USB A port instead.
Return Pixel to public build
If you want to return your Pixel device to a public build, use the Android Flash Tool back-to-public option.