sodcalculator

10 Tech How-To

How to Unroot Samsung Galaxy Mega 5.8 GT-I9152

Guide 10-34835 · Updated · Step by step

This guide walks you through removing root access from a Samsung Galaxy Mega 5.8 (model GT-I9152). Unrooting restores the phone to a stock, unmodified state, which is required for receiving official over-the-air updates, using banking or payment apps, and for warranty claims. The process involves flashing the original Samsung firmware using Odin on a Windows PC. Before starting, back up any data you want to keep, as the process will wipe the phone, and ensure the battery is charged above 70%.

What You’ll Need

  • A Windows PC (Windows 7, 8, 10, or 11)
  • A USB data cable that works with your phone
  • Odin3 software (version 3.09 or newer, commonly 3.13.1)
  • The official stock firmware file for the GT-I9152 (download from a reputable firmware site; the file will be a .tar.md5 archive)
  • Samsung USB drivers installed on your PC
  • Your phone’s data backed up (contacts, photos, etc.)

Step-by-Step

  1. Download and prepare the files. Download Odin3 and the correct stock firmware for your exact model (GT-I9152). The firmware file is usually named something like I9152XXUxxx_I9152OJVxxx_I9152XXUxxx_HOME.tar.md5. Extract the Odin zip file to a folder on your desktop. Do not extract the firmware .tar.md5 file.
  2. Install Samsung USB drivers. If you haven’t already, install the Samsung USB drivers on your PC. You can find them on Samsung’s official website or via a driver installer package. Restart your PC after installation.
  3. Enable USB Debugging and OEM Unlock (if applicable). On your phone, go to Settings > About Phone and tap Build Number seven times to enable Developer Options. Then go to Settings > Developer Options and enable USB Debugging. If you see an OEM Unlock toggle, enable it as well (this may not be present on all builds).
  4. Power off the phone and boot into Download Mode. Turn off the phone completely. Press and hold Volume Down + Home + Power buttons simultaneously. When the warning screen appears, press Volume Up to continue into Download Mode.
  5. Open Odin3 as Administrator. Right-click the Odin3 executable (e.g., Odin3 v3.13.1.exe) and select Run as administrator. The Odin window will open.
  6. Connect your phone to the PC. Plug the USB cable into your phone and then into your PC. In Odin, the Log box should show <ID:0/004> Added!! and the ID:COM box (top left) should turn blue or yellow, indicating the phone is detected. If it doesn’t, reinstall drivers or try a different USB port/cable.
  7. Load the firmware into Odin. Click the AP (or PDA in older versions) button in Odin. Browse to and select the firmware .tar.md5 file you downloaded. Wait for the file to be read; it may take a few minutes. Do not touch any other tabs (BL, CP, CSC) — leave them empty.
  8. Verify Odin settings. Ensure that only Auto Reboot and F. Reset Time are checked in the Options tab. Re-Partition must be unchecked. If Re-Partition is checked, uncheck it immediately.
  9. Start the flash. Click the Start button in Odin. The flashing process will begin. You’ll see a progress bar in Odin and a progress bar on the phone’s screen. This takes about 5–10 minutes. Do not unplug the cable or turn off the PC during this time.
  10. Wait for the phone to reboot. When the flash is complete, Odin will show a green PASS! message in the top-left box, and the phone will reboot automatically. The first boot after flashing can take up to 10 minutes, so be patient.
  11. Verify root is gone. Once the phone boots, go to Settings > About Phone and check Status. It should show Official rather than Custom. You can also install an app like Root Checker from the Play Store to confirm root access is no longer present.

Common Mistakes

  • Using the wrong firmware. Flashing firmware for a different model (e.g., GT-I9150 or GT-I9152P) can brick your phone. Always verify the exact model number in Settings > About Phone before downloading.
  • Not enabling USB Debugging. Odin may not detect the phone properly if USB Debugging is off, leading to connection errors.
  • Leaving Re-Partition checked. This can cause a soft-brick because it attempts to repartition the storage with the wrong PIT file. Always ensure it is unchecked.
  • Unplugging during the flash. A loose cable or accidental unplug mid-flash can corrupt the system partition, leaving the phone stuck in a boot loop.
  • Using a USB hub. Connecting through a hub can cause intermittent connection drops. Plug directly into a rear USB port on your PC.
  • Forgetting to back up. Flashing stock firmware wipes all user data. Without a backup, you lose photos, messages, and app data permanently.

Tips

  • Use a USB port directly on your motherboard (rear of the PC) rather than a front panel or hub for a stable connection.
  • Close all other programs on your PC, especially those that might interfere with USB communication (like Samsung Smart Switch or Kies). Uninstall Smart Switch if you have it, as it can conflict with Odin.
  • If Odin fails to see your phone, try a different USB cable. Many cables are charge-only and lack data pins.
  • Write down your current Android version (e.g., 4.2.2, 4.4.2) and baseband version before flashing. This helps you select the correct firmware if you have multiple options.
  • After flashing, perform a factory reset from Settings > Backup & Reset if you experience any instability. This clears residual data from the root process.
  • Keep the firmware .tar.md5 file in a safe place in case you need to re-flash later.

Troubleshooting

Odin says “FAIL!” or “There is no PIT partition.” This usually means the firmware file is corrupt or the wrong one. Re-download the firmware from a different source and try again. Also, ensure Re-Partition is unchecked.

Phone is stuck in a boot loop after flashing. This often happens if the firmware version doesn’t match the phone’s bootloader. Try flashing a different (usually older) firmware version. If that fails, boot into Recovery Mode (Volume Up + Home + Power) and perform a Wipe data/factory reset and Wipe cache partition.

Odin doesn’t detect the phone at all. Reinstall the Samsung USB drivers, try a different USB port, and ensure you’re in Download Mode. Also, check that the phone screen shows the Download Mode warning (a yellow triangle with an Android icon), not a dead battery icon.

Phone boots but root is still present. This can happen if the firmware you flashed was pre-rooted. Download a completely stock, unmodified firmware. Check the file name — it should not contain words like “root” or “pre-rooted”.

Phone is completely unresponsive (hard brick). If the screen is black and no buttons work, the bootloader may be damaged. This is rare but serious. You may need to use a JTAG box or visit a service center. There is no software fix you can do at home.

Wi-Fi or IMEI issues after flashing. This indicates the EFS partition (which holds IMEI and network data) was corrupted. If you have a backup of your EFS folder (made before rooting), restore it. Otherwise, you may need professional repair.

Frequently Asked Questions

Will unrooting void my warranty? Unrooting restores the phone to stock, which typically makes it eligible for warranty service again. However, if the phone has physical damage or the flash counter is tripped (visible in Download Mode), Samsung may still refuse service. The flash counter can often be reset with a different tool, but this is not guaranteed.

Do I need to unroot before receiving OTA updates? Yes. Official over-the-air updates will fail or cause errors on a rooted device. Unrooting with this method ensures you receive future updates normally.

Will this method work on other Galaxy Mega variants? No. This guide is specific to the GT-I9152 (dual-SIM version). Other variants like GT-I9150 or GT-I9152P require their own firmware files and may have different Odin settings.

Can I unroot without a PC? If you only used a systemless root (like Magisk), you can often unroot directly from the Magisk app by selecting “Uninstall” and then “Restore Images”. However, if you have a custom recovery (TWRP) or modified system files, a PC and Odin are required for a clean restore.

What if I don’t know which Android version I had? You can usually find the original firmware by checking the baseband version in Settings > About Phone. Search online for that baseband string along with “GT-I9152 firmware” to find the matching stock ROM.

Is it safe to unroot? Can I brick my phone? Unrooting is generally safe if you follow the steps correctly. The main risk is using the wrong firmware or interrupting the flash. As long as you download the correct stock firmware for the GT-I9152 and keep the phone connected, the risk is very low.

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 →