Rooting (getting root access) on Android allows access to the hidden capabilities of the system, but requires caution. With its help, you can remove built-in applications, overclock the processor, install custom firmware, and even restore deleted files. However, incorrect actions can turn a smartphone into a โbrickโ or void the warranty.
In this article you will find current rooting methods for modern devices (including models with Android 13/14), you will understand the differences between Magisk and SuperSU, and also learn how to get around common mistakes. We will not convince you that you need to root - instead, we will honestly tell you the pros and cons so that you can make an informed decision.
We warn you right away: the procedure is different for each manufacturer (Samsung, Xiaomi, Google Pixel etc.), so it is important to follow the instructions adapted to your model. If you are a beginner, start with the โPreparationโ section - there are critical conditions without which rooting will result in problems.
What are root access and why you need them
root access (from English root โ โrootโ) give the user full control over the Android operating system, similar to rights administrator on Windows. With their help you can:
- ๐ฑ Remove system applications (for example, unnecessary services Google or bloatware from the manufacturer).
- โก Overclock processor/GPU to improve performance in games (through kernels like
FrancoKernel). - ๐ง Install modified firmware (for example, LineageOS or Pixel Experience).
- ๐๏ธ Recover deleted files using tools like
DiskDigger. - ๐ Block advertising at the system level (via
AdAwayorBlokada).
However, with opportunities come also risks:
- โ ๏ธ Loss of warranty - most manufacturers will void the warranty if detected root.
- ๐ก๏ธ Security vulnerabilities โmalware with root access can cause more harm.
- ๐ฅ "Brick" devices โwrong actions can make the smartphone inoperable.
- ๐ซ Problems with banking applications โmany apps (for example, SberBank Online or Google Pay) refuse to work on rooted devices.
โ ๏ธ Attention: On some devices (for example, Samsung c Knox), rooting activates a flag KNOX 0x1that cannot be reset. This permanently makes it impossible to use Samsung Pay, Secure Folder and other functions tied to Knox.
Preparing the device for rooting
Before starting the procedure, you must complete several critical steps. Skipping any of them can lead to data loss or inoperability of the smartphone.
โ๏ธ Checklist before rooting
1. Backup
Rooting can erase all data on the device. Use:
- ๐ฒ Local copy - through
adb backupor applications like Swift Backup (requires root, but you can make a copy before rooting on another device). - โ๏ธ Cloud storage โsync contacts, photos and documents with Google Drive or Dropbox.
- ๐พ Copy of the EFS partition (for Samsung) - contains IMEI and serial numbers. Use
EFS ProfessionalorQPST.
2. Unlocking the bootloader (Bootloader)
On most devices, the bootloader is locked by default. To unlock it:
- Activate
Developer mode: go toSettings โ About phone โ Build numberand tap on it 7 times. - Enable
USB debuggingiOEM unlockingin the developer menu. - Connect the device to the PC and run the command:
fastboot flashing unlockOn some devices (Xiaomi, Huawei) you need to get an unlock code on the manufacturer's website.
โ ๏ธ Attention: Unlocking the bootloader on Samsung c One UI 5.0+ can lead to data reset even without rooting. Make sure that a backup is created before this step.
3. Installing the necessary tools
You will need:
- ๐ฅ๏ธ PC with Windows/Linux (for
ADB/Fastboot). - ๐ USB cable (preferably original).
- ๐ฆ Android SDK platform package (or Minimal ADB and Fastboot).
- ๐ฑ Firmware file for your model (for example, factory image for Google Pixel or ODIN-firmware for Samsung).
- ๐ง Magisk (latest version with GitHub).
If you are using MacOSinstall homebrew and run the command brew install android-platform-tools to install ADB/Fastboot.
Rooting methods: which one to choose
The method of obtaining root depends on the device model, Android version and bootloader type. Below are the current methods for 2026.
| Method | Suitable devices | Complexity | Pros | Cons |
|---|---|---|---|---|
| Magisk (patch boot.img) | Most devices (except Samsung Exynos and some MediaTek) | Average | Hide root from applications, supports modules | Requires an unlocked bootloader |
| OneClick tools (KingRoot, iRoot) | Old devices (Android 5-8) | Low | No PC required, simple process | High risk of malware, unstable operation |
| Custom recovery (TWRP) | Supported devices TWRP | High | Full control over the firmware, backups | Difficult to install on new models |
| Exploit methods (DirtyCOW, CVE-2023-XXXX) | Devices with kernel vulnerabilities | Very high | Works without unlocking the bootloader | Unstable, can break the system |
The recommended method for most users is MagiskIt supports hiding root from applications. (via MagiskHide) and allows you to install modules to expand functionality. Below we will discuss this method in detail.
โ ๏ธ Attention: On devices with Android 12+ i Dynamic Partition (for example Google Pixel 6/7) an additional step is required - extractionboot.imgfrom the full firmware usingpayload-dumper-go.
Step-by-step guide: rooting via Magisk
This method is suitable for most modern devices. The example was performed on Google Pixel 7 c Android 14, but the steps are similar for other models (adjusted for firmware).
Step 1: Download the firmware and extract boot.img
- Download full firmware for your model from the manufacturer's official website (for example, Google Factory Images for Pixel or SamFW for Samsung).
- Unpack the archive. If the firmware is in format
.zipcpayload.bin, extractboot.imgusing:python3 payload-dumper-go payload.bin - Copy
boot.imgto a smartphone (for example, to a folderDownload).
Step 2: Patching boot.img via Magisk
- Install Magisk APK on a smartphone (do not run!).
- Rename
Magisk-vXX.X.apktoMagisk-vXX.X.zipand copy to the device. - To Magisk click
Install โ Select and Patch a File, selectboot.img. - After patching, the file
magisk_patched.imgwill appear in the folderDownload.
Step 3: Firmware patched boot.img
- Connect the smartphone to the PC in mode
Fastboot(turn off the device, then holdPower + Volume Down). - Run the command:
fastboot flash boot magisk_patched.img - Reboot the device:
fastboot reboot
Step 4: Check root access
After reboot:
- Open Magisk โif the installation was successful, you will see the status
Installed. - Install Root Checker from Google Play and run the test.
- If root is not detected, repeat steps 2-3 or check firmware compatibility.
What to do if Magisk is not installed?
If after flashing magisk_patched.img the device boots into bootloop (cyclic reboot), try:
1. Flash the original boot.img back.
2. Use an alternative method (for example, fastboot boot magisk_patched.img instead of flash).
3. Check the compatibility of the Magisk version with your kernel.
Solving common problems
Even if you follow the instructions exactly, errors occur. Here are the most common ones and how to fix them.
1. The device is not detected in Fastboot/ADB
- ๐ Check the cable โuse the original USB cable (cheap cables may not transmit data).
- ๐ฅ๏ธ Update the drivers โdownload the latest ones version Google USB Driver or drivers for your model (for example, Samsung USB Driver).
- ๐ Try a different USB port โports on the front panel of the PC are sometimes unstable.
- ๐ง For Linux โadd a rule udev:
sudo nano /etc/udev/rules.d/51-android.rulesAdd the line:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"(replace
18d1with your manufacturer ID).
2. Error "Invalid sparse file format at header". magick"
This error occurs when you try to flash an incompatible one boot.img. Solutions:
- ๐ฅ Download the correct firmware โ make sure that the firmware version matches your model and region.
- ๐ง Use another tool โ for Samsung try Odin instead
fastboot. - ๐ Convert the format - if the firmware is in
.lz4, unpack it using:lz4 -d boot.img.lz4 boot.img
3. Detect root applications (banking, games)
Many applications (for example, Pokรฉmon GO or SberBank) block work on rooted devices. To get around this:
- ๐ Activate MagiskHide:
- Open Magisk โ
Settingsโ enableMagiskHide. - Add the problematic application to the list hiding.
- Reboot the device.
- Open Magisk โ
- Install the module
Universal SafetyNet Fixto pass SafetyNet. - For Netflix and other streaming try
MagiskHide Props Config. - ๐ฑ Try alternative builds of Magisk services - for example, Magisk Delta (with support for new versions of Android).
- Open Magisk โ
UninstallโComplete Uninstall. - Reboot the device.
- If you need to lock the bootloader, do:
Attention: on some devices (Xiaomi, OnePlus), locking the bootloader erases all data, including internal memory!fastboot flashing lock - Download full stock firmware for your model.
- For Google Pixel:
(from the archive with the firmware).flash-all.bat - For Samsung:
- Open Odin.
- Add firmware files to the appropriate fields (
BL,AP,CP,CSC). - Click
Start.
- For Xiaomi use Mi Flash Tool in mode
clean all. - Boot into TWRP (usually
Power + Volume Up). - Select
Wipe โ Format Data(erases all data!). - Flash the stock firmware via
Install. - ๐ต Disable system applications:
adb shell pm disable-user --user 0 com.android.bloatware - ๐ก Change network settings:
adb shell settings put global captive_portal_detection_enabled 0 - ๐ Limit background activity:
adb shell cmd appops set com.package.name RUN_ANY_IN_BACKGROUND ignore - Some devices on MediaTek (for example, Redmi Note 8 Pro) can be rooted via
MTK-su. - Devices with vulnerabilities in the kernel (but this is unstable and dangerous).
- Install the module
Universal SafetyNet Fixin Magisk. - Activate
MagiskHideand add Google Pay to the hide list. - Use alternative payment systems (for example, Samsung Pay works on some devices even with root).
- ๐ฅ Manual firmware: Download the full update image and flash it via
fastbootor TWRP, then reinstall Magisk. - ๐ Temporary root removal:
- B Magisk select
Uninstall โ Restore Images. - Install the update.
- Reflash
magisk_patched.img.
- B Magisk select
- ๐ซ Refusing updates: If you are happy with the current version of Android, you can disable checking for updates via
ADB:adb shell pm disable-user --user 0 com.google.android.gsf.update - ๐ง Use Odin instead of
fastboot. - ๐ฆ The firmware must be in the format
.tar.md5. - ๐จ On devices with Knox rooting works trigger
KNOX 0x1, which makes it impossible to use Samsung Pay i Secure Folder. - ๐ For Android 12+ on Exynos you need to patch
init_boot.imginsteadboot.img. - Availability of bootloader unlocking: If there is no option in the developer menu
OEM Unlock, rooting is not possible without exploits. - Support TWRP: Check if there is a custom recovery for your model at TWRP official website.
- Magisk compatibility: Make sure your version of Android is supported (for example, Magisk 26.0+ works with Android 14).
- XDA Forum: Search for a topic based on your model (for example,
root [model]). If there is no theme or it has not been updated for more than a year, the chances of successful rooting are low.
โ ๏ธ Attention: Starting with Android 13, Google tightened the check SafetyNet. Even with MagiskHide some applications can detect root. In this case, only rolling back to the stock firmware will help.
How to remove root and return the device to its original state
If you need to return the warranty, sell smartphone or fix errors after rooting, you should completely remove root and restore the stock firmware.
Method 1: Through Magisk (if the system boots)
Method 2: Flashing stock firmware
If Magisk is not installed or the system is not loading:
Method 3: Through custom recovery (TWRP)
If you have installed TWRP:
After removing root, be sure to check the status SafetyNet in the application Magisk or via command adb shell su --check. If the test fails, some functions (for example, Google Pay) may not work.
Alternatives to root: what you can do without rooting
If you are worried about the risks of rooting, consider alternative ways to achieve similar goals. without loss of warranty.
| Purpose | Solution without root | Limitations |
|---|---|---|
| Removing built-in applications | Disable via Settings โ Applications or ADB:
|
Applications remain in the system, taking up space |
| Ad blocking | Applications like Blokada (without root) or DNS66 | Does not block ads in some games |
| Backup | Swift Backup (with Shizuku) or Titanium Backup (via ADB) | Not all data is saved (for example, SMS) |
| Changing system fonts/icons | Themes in Substratum or Lawnchair Launcher | Limited selection of modifications |
ADB commands for advanced users
With ADB you can perform many actions that usually require root:
To work with ADB you do not need root, but you need activated USB debugging.
FAQ: Frequently asked questions about rooting Android
Is it possible to get root without unlocking the bootloader?
On most modern devices (Android 10+) there were exploits before (for example, DirtyCOW), but they are closed in new versions. Exceptions:
For other models, unlocking the bootloader is required.
Will Google Pay work after rooting?
Officially - no, since Google Pay checks the integrity of the system through SafetyNet. However, there are workarounds:
If nothing else helps, you will have to choose: either root or Google Pay.
How to update Android after rooting?
OTA updates (over the air) on rooted devices usually do not work. Options:
Is it possible to root a smartphone with an Exynos processor (Samsung)?
Yes, but the process is more complicated than on devices with Snapdragon. Features:
We recommend following the instructions on the forums XDA Developers for your model.
How to check if my device supports rooting?
Check the following parameters:
For a quick check, you can use the application Root Checker (it will show whether there is already root and provide information about the bootloader).