Samsung Galaxy Root Guide
Root Samsung Galaxy devices while navigating Knox security, Odin flashing, and One UI complexities. Complete guide for S, A, Z, and Note series.
Quick Navigation โ
Related Guides:
- Main Rooting Guide - Universal rooting concepts
- Bootloader Unlocking - Detailed unlock guide
- Magisk Guide - Complete Magisk documentation
Samsung Rooting Challenges โ
Critical Warnings โ
๐จ One UI 8 Bootloader Lock
One UI 8 (Android 16) eliminates bootloader unlocking support on Samsung Galaxy devices.
- OEM Unlocking toggle removed from Developer Options; unlock logic stripped from firmware (
androidboot.other.locked=1) - Affected globally: S25 series, Z Fold 7, Z Flip 7, and any device updated to One UI 8
- Blocks rooting, custom ROMs, and custom kernels entirely through official methods
- Applies to all regions: International and US devices (both previously unlockable and restricted models)
โ ๏ธ Do NOT update to One UI 8 if you plan to root or unlock your bootloader until verified unlock methods emerge.
โ ๏ธ Samsung-Specific Risks
- Knox permanently tripped (0x1) โ Cannot be reversed, affects Samsung Pay, Health, Secure Folder
- Warranty completely void โ Samsung will refuse all service once Knox is tripped
- Carrier restrictions โ US carrier models (Verizon, AT&T) often cannot unlock bootloader
- Banking & financial app detection โ Enhanced root detection via Play Integrity and SafetyNet
- OTA updates blocked โ Official updates will fail unless root is temporarily uninstalled
- Samsung Cloud & Find My Mobile โ May flag device as compromised
Supported Devices โ
Click to expand supported Samsung devices
Galaxy S Series (Flagship):
- Galaxy S25/S25+/S25 Ultra โ One UI 8 (Android 16) blocks bootloader unlock globally
- Galaxy S24/S24+/S24 Ultra โ Snapdragon only (Exynos not yet supported by Magisk)
- Galaxy S23/S23+/S23 Ultra โ Global, Canadian, and unlocked models supported
- Galaxy S22/S22+/S22 Ultra โ All regions except carrier-locked US models
- Galaxy S21/S21+/S21 Ultra โ Excellent support across all variants
- Older S series (S20 and prior) โ Full root and custom ROM support
Galaxy A Series (Mid-range):
- Galaxy A55/A54/A53 โ A55 has full Magisk support
- Galaxy A35/A34/A33 โ A35 supported; older models may require older Magisk
- Galaxy A25/A24/A23 โ A25 works; A23 has limited recovery support
- Older A series โ Check XDA forums for model-specific status
Galaxy Z Series (Fold/Flip):
- Z Fold 5/6, Z Flip 5/6 โ Supported with Magisk and TWRP alternatives
- Z Fold 4 and older โ Stable root via AP patching
Galaxy Note Series:
- Galaxy Note 20/Note 20 Ultra โ Final Note generation, still actively used
- Galaxy Note 10/10+ โ Legacy support, excellent TWRP availability
- Older Note devices โ Strong custom ROM community
Prerequisites โ
Critical Requirements โ
BEFORE YOU START
Knox Will Trip: Permanently and irreversibly. Think carefully.
Data Wipe: Unlocking erases everything. Backup first.
Warranty Void: Samsung will refuse all service.
Banking Apps: May not work even with root hiding.
US Carrier Models: Most cannot unlock bootloader at all.
Hardware Requirements โ
- Samsung Galaxy device (international or unlocked US)
- Windows computer (Odin requires Windows)
- Quality USB cable (Samsung original recommended)
- 50%+ battery charge
Software Requirements โ
On Computer:
Samsung USB Drivers
- Download: Samsung Developers
- Install before connecting device
Odin Flash Tool
- Download: Odin Download
- Latest version (Odin 3.14.4 or newer)
- Extract to easy location
Stock Firmware
On Device:
Magisk APK
- Download: Magisk GitHub
- Latest stable version
File Manager
- Samsung My Files (pre-installed)
- Or any from Play Store
Device Preparation โ
Step 1: Verify Model and Build
Settings > About phone:
- Model number (e.g., SM-G998B, SM-S918U)
- Android version
- Build number
- Baseband version (for CSC region)
Step 2: Enable Developer Options
- Settings > About phone
- Tap Software information
- Tap Build number 7 times
- Enter PIN/password
- Developer options now available
Step 3: Enable Required Settings
Settings > Developer options:
- OEM unlocking: Enable (critical)
- USB debugging: Enable
Step 4: Backup Everything
- Samsung Cloud backup
- Google Photos for images
- SMS backup
- Export contacts
- Save authenticator codes
- Note installed apps
Unlock Bootloader โ
Step 1: Verify OEM Unlock Available โ
Settings > Developer options > OEM unlocking
If greyed out:
- Carrier-locked device (cannot unlock)
- Wait 7 days after factory reset
- Remove all Google accounts
- Connect to internet
Step 2: Enter Download Mode โ
Method 1: ADB
adb reboot downloadMethod 2: Hardware Keys
- Power off device completely
- Hold Volume Up + Volume Down
- Connect USB cable while holding buttons
- Press Volume Up to continue
- Download mode screen appears
Step 3: Unlock Bootloader โ
On Device:
- Long press Volume Up
- Bootloader unlock warning appears
- Use Volume keys to select "Unlock bootloader"
- Press Power to confirm
- Device automatically factory resets
- Shows "Custom binary blocked by FRP lock" (normal)
Device restarts and wipes completely.
Root Installation โ
Method 1: AP File Patching (Primary Method) โ
Step 1: Download Firmware
- Determine exact model and CSC:
adb shell getprop ro.product.model
adb shell getprop ro.csc.countryiso_code- Download matching firmware from SamFrew
- Extract firmware ZIP
- Files inside:
- AP_[model]_[version].tar.md5 (system image)
- BL_[model]_[version].tar.md5 (bootloader)
- CP_[model]_[version].tar.md5 (modem)
- CSC_[model]_[version].tar.md5 (region data)
Step 2: Transfer and Patch AP File
# Transfer AP file to device
adb push AP_*.tar.md5 /sdcard/Download/
# Install Magisk APK
adb install Magisk-v27.0.apkOn Device:
- Open Magisk app
- Tap "Install" next to Magisk
- Select "Select and Patch a File"
- Navigate to Download folder
- Select AP file
- Tap "Let's Go"
- Wait for patching (2-5 minutes)
Output: magisk_patched_[random].tar in Download folder
Transfer patched file back:
adb pull /sdcard/Download/magisk_patched_*.tar ./Step 3: Flash with Odin
- Boot to Download Mode:
adb reboot downloadOpen Odin as Administrator
Device should show in Odin (blue box with COM port)
Load firmware files:
Click each button and select files:
- BL: Original BL file (unchanged)
- AP: Magisk-patched AP file (patched)
- CP: Original CP file (unchanged)
- CSC: Original CSC file (NOT HOME_CSC)
- Configure Odin Options:
Options tab:
- โ Auto Reboot
- โ F. Reset Time
- โ Re-Partition (uncheck!)
CRITICAL SETTING
Auto Reboot MUST be checked for newer Samsung devices. If unchecked, manual boot to recovery required.
- Click START
Odin flashes files:
- Shows progress bar
- Takes 3-5 minutes
- "PASS!" appears in green when complete
Step 4: Mandatory Factory Reset
CRITICAL STEP
For One UI 4.0+ (Android 12+), factory reset required to complete root properly.
Immediate after flash completes:
- Device reboots automatically
- When Samsung logo appears, immediately:
- Hold Volume Up + Power
- Enter Recovery Mode
In Recovery:
- Use Volume keys to navigate
- Select "Wipe data/factory reset"
- Select "Factory data reset"
- Confirm with "Yes"
- After wipe, select "Reboot system now"
Step 5: Complete Setup and Verify Root
- Complete Android setup again
- Reinstall Magisk APK
- Open Magisk app
- May show "Additional Setup Required"
- Tap "OK" and reboot
- After reboot, Magisk shows:
- Magisk: Installed (version)
- App: Latest (version)
Test root:
adb shell
su
id
# Should show: uid=0(root)SUCCESS!
If Magisk shows both installed and su works, you're rooted!
Step 6: Verify Knox Trip โ
After setup:
- Dial
*#0*#for service mode - Check Knox warranty status
- Should show "0x1" (tripped, permanent)
Method 2: TWRP Recovery (Legacy Devices) โ
For older Samsung devices with TWRP support:
- Download TWRP for your device from TWRP website
- Flash TWRP via Odin (AP slot)
- Boot to TWRP recovery
- Flash Magisk ZIP
- Reboot system
Note: Most modern Samsung devices lack TWRP support due to A/B partitions and encryption changes.
Verify Knox Trip โ
After setup:
- Dial
*#0*#for service mode - Check Knox warranty status
- Should show "0x1" (tripped, permanent)
Post-Root Setup โ
Configure Magisk โ
Step 1: Basic Settings
Magisk > Settings:
- Zygisk: Enable (required for hiding)
- Enforce DenyList: Enable
- Hide Magisk app: Rename to avoid detection
Step 2: Configure DenyList
Critical for Samsung due to Knox detection:
Add to DenyList:
- Google Play Services (all)
- Google Play Store (all)
- Samsung apps:
- Samsung Health
- Samsung Members
- Samsung Galaxy Store
- Samsung Pay (won't work anyway)
- Banking apps
- Payment apps
- Any Knox-dependent apps
Step 3: Install Essential Modules
Recommended for Samsung:
- Universal SafetyNet Fix - Better compatibility
- Shamiko - Enhanced root hiding
- Play Integrity Fix - For banking apps
- Systemless Hosts - Ad blocking
Samsung-Specific Root Hiding โ
Additional Steps:
Hide Magisk App:
- Magisk > Settings
- "Hide the Magisk app"
- Enter custom name (e.g., "Settings")
Clear App Data:
After DenyList configuration:
# Clear Google Play Services
pm clear com.google.android.gms
# Clear Play Store
pm clear com.android.vending
# Clear Samsung Health
pm clear com.sec.android.app.shealth- Reboot device
OTA Handling โ
Samsung OTA updates are blocked when rooted.
Unroot for OTA โ
Step 1: Uninstall Magisk
- Magisk > Uninstall
- Select "Restore Images"
- Reboot
- Root removed
Step 2: Install OTA
- Settings > Software update
- Download and install
- Device updates normally
Step 3: Re-Root
- Download new firmware AP file
- Patch with Magisk
- Flash with Odin
- Root restored
Alternative: Manual Firmware Flash โ
- Download latest firmware
- Patch AP file
- Flash complete firmware with Odin
- Factory reset
- Root restored and updated
Troubleshooting โ
Bootloader Issues โ
OEM Unlocking Greyed Out
Causes:
- Carrier-locked device
- FRP lock active
- Internet not connected
Solutions:
- Remove all accounts
- Factory reset
- Wait 7 days
- Connect to internet
- Check again
If still grey: Device is carrier-locked (cannot unlock)
Stuck in Download Mode
Solutions:
# Exit download mode
Hold Volume Down + Power for 10 seconds
# Force restart
Hold Power + Volume Down + Bixby for 10 secondsOdin Issues โ
Odin Doesn't Detect Device
Solutions:
- Reinstall Samsung USB drivers
- Try different USB port (USB 2.0)
- Run Odin as Administrator
- Disable antivirus temporarily
- Try different USB cable
- Reboot computer
FAIL! Error in Odin
Common causes:
- Wrong firmware for model
- Corrupted download
- Re-Partition checked (uncheck it)
- Low battery
- Cable disconnected
Solutions:
- Verify firmware matches model exactly
- Re-download firmware
- Uncheck Re-Partition
- Charge device
- Use better cable
Stuck at Samsung Logo
Solutions:
- Boot to recovery (Volume Up + Power)
- Factory reset again
- Wipe cache partition
- If persists, reflash stock firmware
Root Issues โ
Magisk Shows N/A
Causes:
- Patched wrong AP file
- Didn't factory reset
- Firmware mismatch
Solutions:
- Verify correct firmware version
- Perform factory reset again
- Re-patch and reflash AP
SafetyNet/Play Integrity Fails
Solutions:
- Enable Zygisk
- Configure DenyList properly
- Hide Magisk app
- Install Universal SafetyNet Fix
- Install Shamiko module
- Clear Google Play Services
- Reboot
Note: Due to Knox trip, some apps may always fail.
Samsung Apps Detect Root
Reality:
- Samsung Health: Limited functionality
- Samsung Pay: Will not work (Knox 0x1)
- Secure Folder: Disabled permanently
- Samsung Pass: Unusable
No workaround for Knox-dependent features.
Unroot and Restore โ
Remove Root Only โ
# Magisk > Uninstall > Restore Images
# Root removed, Knox still tripped (0x1)Flash Stock Firmware โ
Complete restoration:
- Download stock firmware
- Flash all files with Odin:
- BL, AP, CP, CSC (not patched)
- Perform factory reset
- Device stock but Knox still 0x1
Knox Status โ
KNOX CANNOT BE RESET
Once Knox trips to 0x1, it is permanent. Flashing stock firmware does NOT reset Knox counter. The efuse is physically blown.
Community Resources โ
Official Samsung Resources:
- Samsung Firmware - Stock firmware downloads
- Frija Tool - Firmware downloader
- Odin Download - Flash tool
- Samsung Developers - Drivers and tools
Community Forums:
- Samsung XDA Forums โ Device-specific development
- One UI Mods Community โ Samsung customization
- r/Samsung โ Latest device discussions
- Samsung Firmware Database โ Firmware downloads
Essential Samsung Resources:
- Samsung Smart Switch โ Backup tool
- SamFrew โ Firmware downloads
- ODIN Download โ Latest Odin (v3.14.4)
- Heimdall โ Open-source alternative
Custom ROM Resources:
- LineageOS - Official builds
- XDA ROM Development - Custom ROMs
Getting Help โ
When asking for help, provide:
- Exact model number (SM-XXXXX)
- Region/CSC code
- Current firmware version
- One UI version
- Exact error messages
- Odin log if applicable
- Steps already attempted
Next Steps โ
After Rooting Your Samsung:
Essential apps:
- Root Apps Collection - Curated list
Enhance experience:
- Ad Blocking Guide - System-wide blocking
- Debloating Guide - Remove Samsung bloat
- LSPosed Guide - App modifications
Consider alternatives:
- Custom ROM Guide - LineageOS, Evolution X
- Explore Samsung-specific ROMs
- Join development community