Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Android on Pixel/Nexus: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install the latest Android version on your Pixel or Nexus phone right now by flashing a factory image. This guide walks you through unlocking the bootloader, installing the Android SDK tools, and flashing the official firmware from Google. You will need a computer, a USB cable, and about 30 minutes. The process wipes your phone, so back up everything first.

What You'll Need

  • A Pixel or Nexus phone (e.g., Pixel 7, Pixel 6, Pixel 5, Nexus 5X, etc.) with at least 50% battery.
  • A computer (Windows, macOS, or Linux) with a USB port.
  • A USB cable that supports data transfer (not just charging).
  • The latest Android SDK Platform Tools (includes ADB and Fastboot). Download from the official Android developer site.
  • The official factory image for your exact device model from Google's developer site.
  • Backup of your phone data (photos, contacts, messages, etc.) – flashing wipes everything.

Step-by-Step

  1. Back up your phone. Use Google's built-in backup (Settings > System > Backup) or copy files to your computer. Flashing will erase all data.
  2. Enable Developer Options and USB debugging. On your phone, go to Settings > About phone and tap “Build number” seven times. Then go to Settings > System > Developer options and enable “USB debugging” and “OEM unlocking” (if available). Note: labels may differ slightly by Android version.
  3. Install the Android SDK Platform Tools. Download the zip from the official Android developer site, extract it to a folder on your computer (e.g., C:\platform-tools on Windows, ~/platform-tools on macOS/Linux).
  4. Connect your phone to the computer. Use the USB cable. On your phone, accept the “Allow USB debugging?” prompt. If it doesn't appear, check the notification bar and select “USB for file transfer.”
  5. Test the connection. Open a command prompt or terminal in the platform-tools folder and run adb devices. You should see your device listed as “device” (not “unauthorized”). If it says “unauthorized,” re-allow the prompt on your phone.
  6. Unlock the bootloader. Run adb reboot bootloader to enter fastboot mode. Then run fastboot flashing unlock (for newer Pixel devices) or fastboot oem unlock (for older Nexus/Pixel models). On the phone screen, use the volume keys to select “Unlock the bootloader” and press the power button. This wipes your phone and unlocks the bootloader. Wait for the reboot.
  7. Re-enable USB debugging after reboot. After the bootloader unlock, the phone reboots. Go through the setup wizard briefly (you can skip everything), then re-enable USB debugging in Developer options (it resets).
  8. Download the correct factory image. Go to Google's developer site, find your exact device model (e.g., “sailfish” for Pixel, “walleye” for Pixel 2, “blueline” for Pixel 3, etc.), and download the latest factory image. Do not download a different model's image.
  9. Extract the factory image. Unzip the downloaded file. Inside, there will be another zip file (e.g., image-sailfish-xxxxxxxx.zip). Extract that as well. You should see files like flash-all.bat (Windows) or flash-all.sh (macOS/Linux).
  10. Boot into bootloader again. Run adb reboot bootloader from the platform-tools folder.
  11. Run the flash-all script. On Windows, double-click flash-all.bat or run it from the command prompt. On macOS/Linux, open a terminal in the extracted folder and run ./flash-all.sh. This script flashes the bootloader, radio (if any), and the Android system. It takes a few minutes. Do not unplug the phone during this process.
  12. Wait for the phone to reboot. The script will automatically reboot the phone when done. The first boot may take several minutes. If it doesn't reboot automatically, run fastboot reboot.
  13. Set up your phone. Go through the Android setup wizard. You can restore from your backup if you want.

Common Mistakes

  • Using the wrong factory image for your device model – always double-check the exact model number.
  • Not unlocking the bootloader before flashing – the flash script will fail if the bootloader is locked.
  • USB debugging not enabled after bootloader unlock – you must re-enable it before flashing.
  • Using a USB cable that only charges – the flash script won't detect the device.
  • Interrupting the flash process (e.g., unplugging the USB) – this can brick the phone.

Tips

  • Keep the platform-tools folder and the factory image in a simple path (no spaces) to avoid command-line issues.
  • If you're on Windows, install the latest Google USB driver if the device isn't recognized.
  • Do not attempt to flash a factory image meant for a different carrier or region – use the one listed for your exact model.
  • After flashing, you can re-lock the bootloader for better security (run fastboot flashing lock), but this wipes the phone again.

Troubleshooting

If the flash fails or the phone won't boot, try these in order:

  1. Check the connection. Run fastboot devices in bootloader mode. If nothing appears, try a different USB port (preferably USB 2.0) and a different cable.
  2. Re-download the factory image. The download may be corrupted. Compare the SHA-256 checksum with the one listed on Google's site.
  3. Run the flash commands manually. Instead of the script, run each command manually: fastboot flash bootloader , then fastboot reboot-bootloader, then fastboot flash radio (if present), then fastboot reboot-bootloader, then fastboot flash -w update . The -w wipes data. This gives you more control over errors.
  4. If the phone is stuck in a boot loop, try booting into recovery (hold Volume Down + Power) and select “Factory reset” (this wipes data). If that doesn't work, re-run the flash-all script.
  5. If the phone is completely unresponsive (hard brick), you may need to use the “Flash” mode on Pixel devices (hold Volume Down + Power for 10 seconds) and try flashing again. If that fails, contact Google support or visit a repair center – do not attempt any unofficial fixes.

Frequently Asked Questions

Will this void my warranty?

Unlocking the bootloader and flashing a factory image typically voids the warranty. Google's official images are safe, but the bootloader unlock is irreversible without re-locking, which also wipes data.

Can I install Android on a non-Pixel/Nexus phone?

This guide is specific to Pixel and Nexus devices. For other phones, you'd need custom ROMs (like LineageOS) and a different process, which is beyond this guide's scope.

Do I need root access to flash a factory image?

No. Flashing a factory image via fastboot does not require root. It uses the bootloader, which is separate from the Android OS.

Will I lose my data?

Yes. Both unlocking the bootloader and flashing the factory image erase all data on your phone. Always back up before starting.

Can I go back to the previous Android version?

Yes, you can flash an older factory image for your device, as long as Google still hosts it. Downgrading may require wiping data again.

What if my phone is not detected by fastboot?

Install the correct USB driver (Windows) or check that you're using a data cable. On macOS/Linux, you may need to install the Android SDK's udev rules (Linux).