Root Samsung Galaxy S7 or S7 Edge: Step-by-Step
In this article
Rooting your Samsung Galaxy S7 or S7 Edge gives you full administrative control over the Android operating system, allowing you to remove bloatware, install custom kernels, use root-only apps, and flash custom ROMs. The process involves unlocking the bootloader, flashing a custom recovery (like TWRP), and then installing a root manager (like Magisk). Before you begin, be aware that rooting voids your warranty, can trigger Knox security flags permanently, and carries a small risk of bricking your device if done incorrectly. This guide is for the international Snapdragon and Exynos variants (G930F, G935F, G930U, G935U, etc.) — carrier-specific models (e.g., Verizon, AT&T) have locked bootloaders and cannot be rooted this way. Also, note that menu names and file versions may differ slightly by model and Android version.
What You'll Need
- A Windows PC (or a Mac with Odin alternatives, but this guide uses Windows).
- The original USB cable that came with your phone.
- Your phone's battery charged to at least 70%.
- Backup of all personal data — rooting will wipe your phone.
- USB drivers for Samsung (install Samsung Smart Switch or Samsung USB Driver from the official Samsung website).
- Odin3 — the official Samsung flashing tool (download from a trusted source like XDA Developers).
- TWRP recovery image for your exact model (download from the official TWRP website).
- Magisk ZIP (the latest stable version) — download from the official Magisk GitHub repository.
- Optionally, a microSD card to store the Magisk ZIP if your internal storage is encrypted.
Step-by-Step
- Enable Developer Options and OEM Unlock: Go to Settings > About Phone and tap “Build Number” seven times. Then go back to Settings > Developer Options and enable “OEM Unlocking” (this may be called “OEM Unlock” on some versions). If this toggle is missing or greyed out, your device's bootloader is locked and cannot be unlocked.
- Back up everything: Copy photos, contacts, and files to your PC or cloud. Use Samsung Smart Switch to back up app data if desired. Remember, rooting will erase the phone.
- Turn off the phone completely.
- Boot into Download Mode: Press and hold Volume Down + Home + Power buttons simultaneously. When the warning screen appears, press Volume Up to continue to Download Mode.
- Open Odin3 on your PC: Right-click and select “Run as Administrator”. You should see an “Added!” message in the log box when your phone is connected.
- Connect your phone to the PC via USB cable. Wait for Odin to recognize it (the ID:COM box will turn blue).
- Flash TWRP recovery: In Odin, click the “AP” button and select the TWRP .tar file you downloaded (do not unzip it). Make sure only “Auto Reboot” and “F. Reset Time” are checked — uncheck “Re-Partition”. Click “Start”. The phone will reboot automatically after a few minutes.
- Boot into TWRP immediately: As soon as the phone reboots, hold Volume Up + Home + Power to enter recovery mode. If you miss it, the phone will boot normally and overwrite TWRP — if that happens, repeat steps 3-7.
- Allow system modifications: In TWRP, you may see a prompt to “Keep System Read Only” — swipe to allow modifications.
- Wipe data (factory reset): In TWRP, tap “Wipe”, then “Format Data”, and type “yes” to confirm. This removes encryption and prepares the phone for rooting. (This step is essential for the root to work properly.)
- Transfer the Magisk ZIP: If you have the ZIP on a microSD card, insert it into the phone. If not, use TWRP's “Mount” > “USB Storage” and copy the ZIP from your PC to the phone's internal storage via USB cable.
- Install Magisk: In TWRP, tap “Install”, navigate to the Magisk ZIP, select it, and swipe to confirm the flash. Wait for it to finish.
- Reboot: Tap “Reboot System”. The phone will boot into Android — the first boot may take longer than usual (up to 10 minutes).
- Verify root: Once booted, install the Magisk Manager app (if not already installed) from the Play Store. Open it — it should show “Magisk is installed” and a “Superuser” section. You can also use a root checker app from the Play Store.
Common Mistakes
- Using the wrong TWRP file: Flashing a TWRP built for a different model (e.g., using the S7 Edge version on the S7) will cause a bootloop or brick. Always verify the exact model number.
- Skipping the OEM Unlock step: If you don't enable OEM Unlocking first, Odin will fail or the phone will refuse to boot after flashing TWRP.
- Not unchecking “Re-Partition” in Odin: Leaving it checked can corrupt the partition table and brick the phone.
- Letting the phone boot normally before entering TWRP: The stock system will overwrite TWRP on the first boot, so you must boot straight into recovery.
- Not formatting data: If you skip the format data step, Magisk may not install correctly, and you'll get a bootloop.
- Using an outdated Odin version: Old Odin versions may not recognize your phone or may fail to flash properly.
Tips
- Download all files from official sources (TWRP official site, Magisk GitHub, Samsung's driver page) to avoid malware.
- Keep the phone plugged into a reliable USB port (preferably directly on the motherboard, not a hub).
- If you have a microSD card, use it to store the Magisk ZIP — it simplifies the transfer process.
- After rooting, avoid using apps that trigger SafetyNet (like banking apps) unless you install Magisk's “MagiskHide” module (note: MagiskHide is deprecated in newer Magisk versions; use the “DenyList” feature instead).
- Make a Nandroid backup in TWRP right after rooting, before installing anything else — this gives you a restore point.
- Note that rooting permanently trips Knox, which voids your warranty and disables Samsung Pay and Secure Folder permanently.
Troubleshooting
- Odin fails with “FAIL!” or “Invalid PIT”: This usually means the TWRP file is wrong or the USB connection is unstable. Re-download the correct TWRP for your exact model, try a different USB cable, and reinstall Samsung USB drivers.
- Phone boots into a bootloop (stuck at Samsung logo): This often happens if you didn't format data. Boot back into TWRP (Volume Up + Home + Power), then go to Wipe > Format Data, type “yes”, and reboot. If that doesn't work, reflash TWRP and then reflash Magisk.
- TWRP is not sticking (phone boots to stock recovery): This means you didn't boot into TWRP before the first normal boot. Repeat the Odin flash, and immediately after it reboots, hold Volume Up + Home + Power to enter TWRP.
- Magisk Manager says “Magisk is not installed”: Reboot back into TWRP and flash the Magisk ZIP again. Make sure you're flashing the correct ZIP (not the APK).
- Phone won't boot at all (black screen): Try a forced restart by holding Power + Volume Down for 10 seconds. If that fails, boot into Download Mode (Volume Down + Home + Power) and reflash the stock firmware using Odin (download the correct stock firmware from a site like SamMobile). This will unroot and restore your phone.
- Wi-Fi or Bluetooth not working after rooting: This is rare but can happen if you flashed a TWRP for the wrong variant. Reflash the correct TWRP and then reflash Magisk. If it persists, restore stock firmware.
Frequently Asked Questions
Does rooting void my warranty?
Yes. Rooting trips Knox, which permanently voids your Samsung warranty and disables Samsung Pay, Secure Folder, and some other Knox-based features.
Will rooting erase my data?
Yes, the process requires a factory reset and format data step, which wipes everything on your phone. Always back up first.
Can I unroot later?
Yes, you can unroot by flashing the stock firmware using Odin (which also re-locks the bootloader if you re-lock it in Download Mode). However, Knox remains tripped, so the warranty stays void.
Is it safe to root my Galaxy S7?
Rooting carries a small risk of bricking your device if you make a mistake. Following the steps exactly and using the correct files minimizes that risk, but it's never 100% safe.
Will I still get OTA updates after rooting?
No. Once rooted, you will not receive official over-the-air updates. You'll need to manually flash new firmware or use custom ROMs.
Can I use banking apps after rooting?
Many banking apps detect root and refuse to run. You can try using Magisk's DenyList feature to hide root from specific apps, but it's not guaranteed to work on all apps or all Android versions.