sodcalculator

10 Tech How-To

Unroot Samsung Galaxy A5: All Variants Guide

Guide 10-51758 · Updated · Step by step

This guide walks you through unrooting any Samsung Galaxy A5 variant (SM-A500x, SM-A510x, SM-A520x, and similar models) to restore the device to a fully stock, unrooted state. This removes root access, reinstates the original Samsung firmware, and typically allows OTA updates and apps that block rooted devices (like banking apps) to work again. Before starting, back up all personal data, as the process will wipe the phone completely.

What You’ll Need

  • A Windows PC (Mac/Linux may work with additional setup, but Windows is recommended).
  • The original USB cable for your Galaxy A5.
  • Odin3 software (version 3.13 or newer is recommended for most A5 variants).
  • The official Samsung firmware package (stock ROM) for your exact A5 model number and region. Download from a trusted source like SamMobile or Frija.
  • Samsung USB drivers installed on your PC.
  • A fully charged phone (at least 70% battery).

Step-by-Step

  1. Identify your exact model: Go to Settings > About Phone and note the model number (e.g., SM-A500F, SM-A510FD, SM-A520F). You must download firmware that matches this exact model and your region (CSC code).
  2. Download and extract firmware: Download the correct stock firmware file. It will typically be a ZIP file. Extract it using WinRAR or 7-Zip. You should see a file ending in .tar.md5 or .tar.
  3. Install Samsung USB drivers: If you haven’t already, install the Samsung USB driver on your PC.
  4. Download and extract Odin: Download Odin3 and extract the ZIP. You should see Odin3.exe.
  5. Enable Developer Options and USB Debugging: On your phone, go to Settings > About Phone and tap on “Build Number” 7 times. Then go to Settings > Developer Options and enable “USB Debugging”.
  6. Backup your data: Since this process will wipe your phone, back up photos, contacts, messages, and any other important files to your PC or cloud storage.
  7. Boot your phone into Download Mode: Turn off the phone. Press and hold Volume Down + Home + Power buttons simultaneously. When the warning screen appears, press Volume Up to continue into Download Mode.
  8. Connect your phone to the PC: Connect the phone via USB cable. In Odin, you should see a blue or yellow box in the “ID:COM” section indicating the device is recognized. If not, reinstall drivers or try a different USB port.
  9. Load firmware into Odin: In Odin, click the “AP” button and select the firmware file you extracted (the .tar.md5 file). Do not touch the other buttons (BL, CP, CSC).
  10. Check Odin options: Ensure that only “Auto Reboot” and “F. Reset Time” are checked. Do NOT check “Re-Partition”.
  11. Start the flash: Click the “Start” button in Odin. The flashing process will begin. It may take 5-10 minutes. Do not unplug the phone during this time.
  12. Wait for completion: When the process finishes, Odin will show a green “PASS!” message, and the phone will reboot automatically. The first boot may take longer than usual.
  13. Verify unroot: Once the phone boots, go to Settings > About Phone and check that the model number matches the stock firmware. To confirm root is removed, install a root checker app from the Play Store or simply try a banking app that previously blocked rooted devices.

Common Mistakes

  • Using the wrong firmware: Flashing firmware for a different model (e.g., SM-A500F instead of SM-A500G) can hard-brick your device.
  • Incorrect Odin settings: Checking “Re-Partition” or loading files into the wrong slots (e.g., putting the AP file into BL) will cause a failed flash and potential brick.
  • Interrupting the flash: Unplugging the USB cable or turning off the PC during the process can leave the phone in a bricked state.
  • Not backing up data: Forgetting to back up will result in permanent data loss.
  • Using an unstable USB connection: A faulty cable or port can cause the flash to fail mid-way.

Tips

  • Always use the original Samsung USB cable if possible, as third-party cables may not support data transfer properly.
  • Close all other programs on your PC before starting Odin to avoid interruptions.
  • If your phone is carrier-locked, download firmware specific to your carrier to avoid network issues.
  • After flashing, do a factory reset from Settings > Backup & Reset to clear any leftover root data and ensure a clean system.
  • Keep the firmware file and Odin on your PC in case you need to reflash in the future.

Troubleshooting

  • Odin doesn’t recognize the phone: Reinstall Samsung USB drivers, try a different USB port (preferably USB 2.0), and ensure the phone is in Download Mode before connecting.
  • Flash fails with “FAIL!” or “ All threads completed. (succeed 0 / failed 1)”: This usually means the firmware file is corrupt or mismatched. Re-download the firmware and try again. Also, try a different Odin version.
  • Phone stuck on boot logo after flashing: This is often due to leftover data. Boot into Recovery Mode (Volume Up + Home + Power), then select “Wipe data/factory reset”. Reboot.
  • Phone is in a boot loop: If the phone keeps restarting, repeat the flash process, ensuring you use the exact correct firmware. If it persists, try flashing the firmware again after a factory reset from recovery.
  • Phone is completely unresponsive (hard brick): If the phone doesn’t respond to any button combinations, it may be a hard brick. In this case, you may need to use a JTAG or box service, which is best handled by a professional repair shop.

Frequently Asked Questions

Will unrooting void my warranty?

Yes, rooting typically voids the warranty. Unrooting restores the stock software, but many manufacturers can detect that the Knox counter was tripped. This may permanently void the warranty.

Will unrooting delete my data?

Yes, flashing stock firmware via Odin will wipe all data on the phone. Always back up before starting.

Do I need to unroot to receive OTA updates?

Yes, OTA updates usually fail on rooted devices. Unrooting restores the stock system, allowing updates to install normally.

Can I unroot without a PC?

If you have a custom recovery like TWRP, you may be able to flash a stock ROM from the SD card. However, this is riskier and not recommended for most users. The PC method with Odin is the safest and most reliable.

What if I don’t know my exact model number?

Check under the battery or in Settings > About Phone. The model number is essential for downloading the correct firmware. Flashing the wrong firmware can brick your device.

Is it safe to unroot my Galaxy A5?

Yes, if you follow the steps correctly and use the correct firmware. The main risks are data loss and the possibility of bricking if you use wrong files or interrupt the process.

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 →