sodcalculator

10 Tech How-To

How to Flash an Android Phone Using PC Software

Guide 10-37500 · Updated · Step by step

Flashing an Android phone replaces its operating system or firmware with a fresh copy, which can fix boot loops, remove stubborn malware, update to a newer Android version, or restore a bricked device. This guide walks you through the process using official PC software from your phone’s manufacturer, covering the essential preparation, the step-by-step flashing routine, and what to do when things go wrong.

What You’ll Need

  • Your Android phone – make sure it has at least a 50% charge, ideally more.
  • A Windows PC (most manufacturer flashing tools are Windows-only).
  • A USB cable – use the original cable or a high-quality one that supports data transfer, not just charging.
  • Official flashing software – download the correct tool for your phone brand (e.g., Samsung Odin, Xiaomi Mi Flash Tool, Google Flash Tool, OnePlus MSM Tool, Motorola RSD Lite or Rescue and Smart Assistant).
  • Firmware file – the official stock ROM for your exact phone model and region. Download from the manufacturer’s site or a trusted mirror.
  • USB drivers – the manufacturer’s USB driver installed on your PC so the phone is recognized.
  • Backup – flashing wipes all data, so back up photos, contacts, and files beforehand.

Step-by-Step

  1. Back up your data. Sync contacts, photos, and documents to Google Drive or your PC. Flashing will erase everything on the phone.
  2. Install the USB drivers. Download and install the official USB driver for your phone brand on your PC. Restart the PC if prompted.
  3. Download the firmware. Find the exact stock ROM for your model number (e.g., SM-G991B for a Galaxy S21). Check the build number and region. Save the firmware ZIP file to a folder on your PC, like C:\Firmware.
  4. Extract the firmware. Right-click the ZIP file and choose “Extract All.” You should see files with extensions like .tar, .md5, .img, or .xml, depending on the brand.
  5. Enable Developer Options on your phone. Go to Settings > About Phone and tap “Build Number” seven times. This unlocks Developer Options in the Settings menu.
  6. Enable USB Debugging and OEM Unlock. In Developer Options, turn on “USB Debugging” and “OEM Unlock” (if available). This allows the PC software to communicate with the phone.
  7. Power off the phone and boot into Download Mode. The method varies by brand:
    • Samsung: Power off, then press and hold Volume Down + Power. Follow the on-screen warning to continue.
    • Xiaomi: Power off, then press and hold Volume Down + Power to enter Fastboot mode.
    • Google Pixel: Power off, then press and hold Volume Down + Power to enter Fastboot.
    • OnePlus: Power off, then press and hold Volume Down + Power to enter Fastboot.
    • Motorola: Power off, then press and hold Volume Down + Power to enter Fastboot.
  8. Connect the phone to the PC. Plug in the USB cable. The PC should recognize the device in Download or Fastboot mode. If you see a driver error, reinstall the USB drivers.
  9. Open the flashing software. Run the manufacturer’s tool as administrator (right-click > Run as administrator). For Samsung Odin, you’ll see a single window. For Xiaomi Mi Flash Tool, you’ll see a list of devices.
  10. Load the firmware into the tool.
    • Odin (Samsung): Click “BL,” “AP,” “CP,” and “CSC” buttons and select the corresponding files from the extracted firmware. Do not touch the “USERDATA” slot unless you have a specific reason.
    • Mi Flash Tool (Xiaomi): Click “Select” and choose the extracted firmware folder. The tool will find the flash script automatically.
    • Google Flash Tool: Open the website, select your device, and drag the firmware ZIP into the browser. It handles the rest.
  11. Start the flash. In Odin, click “Start.” In Mi Flash Tool, click “Flash.” In Google Flash Tool, click “Install.” The process takes 5–15 minutes. Do not unplug the cable or touch the phone during this time.
  12. Wait for the phone to reboot. When the tool shows “PASS” (Odin), “Success” (Mi Flash), or “Done” (Google), the phone will restart automatically. The first boot can take several minutes, so be patient.
  13. Set up your phone. Once booted, go through the initial setup. Restore your backed-up data.

Common Mistakes

  • Using the wrong firmware. Flashing a firmware meant for a different model or region can brick the phone. Always verify the exact model number and build.
  • Not installing USB drivers. The PC may not recognize the phone, causing the flash to fail or hang.
  • Unplugging the cable mid-flash. This can corrupt the bootloader and make the phone unbootable.
  • Skipping the backup. Flashing wipes all data, and there is no undo.
  • Using a low-quality USB cable. A cable that only charges can cause connection drops.
  • Flashing with a low battery. If the phone dies during the process, it can be permanently damaged.

Tips

  • Use a dedicated USB port. Prefer a rear port on a desktop PC rather than a front hub or a USB hub.
  • Close all other programs. Antivirus or background apps can interfere with the flashing tool.
  • Check the firmware version. Make sure the firmware is newer than the one currently on the phone, or at least compatible. Downgrading may require a factory reset afterward.
  • Keep the phone connected until the tool says complete. Even if the screen goes black, wait for the reboot.
  • Take note of the exact error message. If something goes wrong, the error code helps in troubleshooting.

Troubleshooting

Phone not detected by the PC: Reinstall the USB drivers, try a different USB port, or use a different cable. On Windows, open Device Manager and look for any device with a yellow exclamation mark. Update the driver manually.

Flash fails with “SECURE CHECK FAIL” (Samsung): This usually means the firmware file is incorrect or the phone’s bootloader is locked. Double-check the model and region. If you have a carrier-locked phone, use the carrier-specific firmware.

Flash stuck at a certain percentage: Do not unplug. Wait at least 10 minutes. If it remains stuck, close the tool, unplug the phone, and restart the process from step 7.

Phone stuck in a boot loop after flashing: Boot into Recovery Mode (usually Volume Up + Power) and perform a factory reset. This clears any leftover cache that may be causing conflicts.

Phone is completely unresponsive (hard brick): Look for a “Download Mode” or “EDL Mode” (Qualcomm devices) that can still be entered. For Samsung, try Volume Down + Power while plugging in the USB. For Xiaomi, try holding Volume Down + Power while plugging in. If nothing works, the phone may need professional repair.

Frequently Asked Questions

Will flashing void my warranty?

Yes, flashing unofficial firmware or unlocking the bootloader typically voids the manufacturer’s warranty. Flashing official stock firmware through the manufacturer’s tool may restore warranty in some cases, but it’s not guaranteed.

Can I flash without a PC?

Some devices allow flashing via recovery mode (e.g., installing a ZIP from an SD card), but that’s typically for custom ROMs. For stock firmware, a PC is almost always required.

Do I need to unlock the bootloader first?

For most brands, yes. Samsung does not require unlocking for official Odin flashes, but Xiaomi, OnePlus, and Google Pixel do require an unlocked bootloader to flash. Unlocking wipes your data and can void warranty.

Will flashing remove the SIM lock?

No. Flashing stock firmware does not unlock a carrier SIM lock. You need to contact your carrier or use a paid unlocking service.

Can I flash a different region’s firmware?

Yes, but it may cause issues with carrier features, Wi-Fi calling, or 5G bands. It’s safer to use the firmware for your region.

What if the flashing tool says “FAIL” but the phone still boots?

Sometimes a partial flash succeeds. If the phone boots normally, you can try re-flashing to get a clean install. If it doesn’t boot, re-enter Download Mode and try again.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →