Obtaining superuser rights (root access) on Android is like the key to all the doors in your smartphone. With them you can remove system applications, overclock the processor, install custom firmware and even restore deleted files. But along with freedom comes responsibility: one wrong step and the phone will turn into a โbrickโ and the warranty will be void.
In this article we will look at 5 working methods get root on modern devices (including Samsung, Xiaomi, Google Pixel and others), we will assess the risks and tell you how to avoid common mistakes. And if you are not ready for radical measures, we will offer legal alternatives with similar capabilities.
Spoiler: on new smartphones with Android 14/15 the process has become more complicated due to tightened security. But there are workarounds - read on.
What are root access and why you need them?
root access (superuser rights) give complete control over the operating system Android. Essentially, you become the administrator of your device, just like on Linuxsystems. This allows:
- ๐ง Remove built-in applications (bloatware) that cannot be uninstalled using standard methods (for example,
com.sec.android.app.launcheron Samsung). - โก Overclock the processor and video card to improve performance in games (but this reduces battery life!).
- ๐ฑ Install custom firmware (LineageOS, Pixel Experience) to update outdated devices.
- ๐ Recover deleted files, even if they are not in the recycle bin.
- ๐ก๏ธ Block advertising at the system level using AdAway or Blokada.
However, there is a downside:
- โ ๏ธ Loss of warranty - most manufacturers (including Samsung, Xiaomi, OnePlus) will void the warranty if root is detected.
- ๐ก๏ธ Vulnerability to viruses โmalware with root access can steal data or damage the system.
- ๐ Problems with OTA updates โmany devices stop receiving over-the-air updates.
- ๐ฅ Risk of โbrickingโ โwrong actions can make the phone inoperable.
โ ๏ธ Attention: On devices with Android 12+ chips Snapdragon 8 Gen 2/3 or Exynos 2200/2400 The process of getting root may differ due to hardware protection. Before you start, check the compatibility of your model on the forums XDA Developers or 4PDA.
Preparing the device: 7 mandatory steps before root
Before you start unlocking, follow these steps - they will save you hours on data recovery or repair:
- Create a backup all data (photos, contacts, messages). process due to discharge may lead to failure. Google Drive, Titanium Backup (requires root, but you can make a copy on PC) or
adb backup. - Charge the battery at least 70%. Interrupting the process due to discharge may result in failure.
- Find out the model and firmware version.. Go to
Settings โ About phone โ Android versioniBuild number. Write down this data. - Unlock the bootloader. Without this, root is not possible. On most devices, this is done through the command
fastboot oem unlock. - Install drivers for your device on a PC. For Samsung need Samsung USB Drivers, for Xiaomi โ Mi Unlock Tool.
- Download the necessary tools:
- ๐ฅ๏ธ Platform Tools (includes
adbandfastboot) from the site Google. - ๐ง Magisk (latest version) or SuperSU (for old devices).
- ๐ฑ TWRP Recovery (custom recovery) for your model.
- ๐ฅ๏ธ Platform Tools (includes
- Go to
Settings โ About phone โ Build numberand tap on it 7 times to activate developer mode. - Go back in
Settings โ System โ For developersand turn onOEM Unlocking.
Made a backup copy of the data|Charged the phone โฅ70%|Learned the model and firmware version|Unlocked Bootloader|Install drivers and Platform Tools|Downloaded Magisk and TWRP for my model|Enabled OEM Unlocking in developer settings-->
If you are using a device with Samsung Knox (for example, Galaxy S23 or Note 20), Please note: unlocking the bootloader forever flag will trigger, which will deprive you of the ability to use Knox 0x1, which will prevent you from using Samsung Pay, Secure Folder and some banking applications.
Method 1: Getting root via Magisk (recommended for most devices)
Magisk is the most popular tool for obtaining root access without changing the system partition (systemless rootIt works on most devices with Android 7.0+ and supports hiding root from applications (for example, banking).
Instructions:
- Download the latest version of Magisk from the official repository to GitHub (file
Magisk-vXX.X.zip). - Flash TWRP Recovery for your model:
fastboot flash recovery twrp-3.7.X-X-device_codename.imgfastboot reboot recoveryReplace
device_codenamewith the encoding of your device (for example,davincifor Redmi K20 Pro). - In TWRP, select
Installโ specify the path to the downloadedMagisk-vXX.X.zipโ swipe swipe to confirm. - Reboot the device. After downloading, install the application Magisk Manager from the same archive.
- ๐ฑ LineageOS โstable open source firmware, supports most devices.
- โก Pixel Experience โported firmware with Google Pixel, includes all the functions of stock Android.
- ๐ง Havoc-OS โfirmware with an abundance of settings for fine customization.
To check if it worked, open Magisk Manager and make sure that the green check mark is lit at the top of the screen Installed.
If, after flashing Magisk, the phone is stuck on the logo, try flashing the original boot image via TWRP or fastboot. To do this, download the stock firmware for your model from the manufacturer's website.
Method 2: Root via custom firmware (for experienced users)
If you want not only root, but and a clean system without unnecessary applications, you can install custom firmware with a pre-installed superuser. Popular options:
Action algorithm:
- Download the firmware for your model from the official website (for example, lineageos.org).
- Download GApps (Google services package) suitable size (
nano,picoorfull). - Flash the firmware and GApps via TWRP:
1. Boot into TWRP (holdPower + Volume Up).2. Select
Wipe โ Advanced Wipeand checkDalvik, Cache, System, Data.3. Return to the main menu, click
Installand flash the firmware first, then GApps.4. Reboot the device. - After the first boot (it may take 10-15 minutes), install Magisk managing root access.
โ ๏ธ Attention: On some devices (for example, Huawei or Honor with processors Kirin) installation of custom firmware is impossible due to a locked bootloader. First, check compatibility on XDA.
| Firmware | Root support | Requires GApps | Installation complexity |
|---|---|---|---|
| LineageOS | Yes (via Magisk) | Yes | Medium |
| Pixel Experience | Yes (built-in) | No | High |
| Havoc-OS | Yes (via Magisk) | Yes | High |
| MIUI (modified) | Yes | No | Low |
Method 3: Root without a computer (for devices with an unlocked bootloader)
If you do not have access to a PC, you can try to root directly from your phone. This method works on devices that are already unlocked bootloader and support TWRP.
Instructions:
- Download to your phone:
- ๐ฑ TWRP in format
.imgfor your model. - ๐ง Latest version Magisk (
.zip). - ๐ Application Flashify or Rashr for firmware without a PC.
- ๐ฑ TWRP in format
Recovery image and specify the path to the downloaded TWRP.img.Reboot to Recovery).Install โ select Magisk.zip โ swipe to confirm.On devices with Android 13+ and dynamic partitions (dynamic_partitions) this the method may not work. In this case, you will need to patch boot.img manually via a PC.
Via Magisk from a PC|Via custom firmware|Without a computer (phone only)|I havenโt decided yet|Iโm looking for an alternative without root-->
Method 4: Root for Samsung (with taking into account Knox and OEM)
Devices Samsung are one of the most difficult to get root due to protection KnoxHowever, there are workarounds, for example, through a patch boot.img using Magisk.
Step-by-step. instructions for Galaxy S22/S23, Note 20 and other modern models:
- Unlock OEM in the developer settings (see the "Preparation" section).
- Download the stock firmware for your model from the site SamMobile or Frija.
- Extract
boot.img.lz4from the firmware (use 7-Zip or WinRAR). - Unpack
boot.img.lz4toboot.imgusing LZ4 Tool. - Patch
boot.imgvia Magisk:- Copy
boot.imgto your phone. - Open Magisk Manager โ
InstallโSelect and Patch a File. - Select
boot.imgand wait for the file to be createdmagisk_patched.img.
- Copy
- Flash the patched
boot.imgviafastboot:fastboot flash boot magisk_patched.imgfastboot reboot - ๐ ๏ธ DirtyCOW - exploit for Android 6.0โ7.1 (outdated, but can work on older devices).
- ๐ KingRoot - automatic tool, but often installs malware.
- ๐ฑ TowelRoot โ worked on Android 4.4, is now irrelevant.
- ๐ง MTK-su โ for devices on processors MediaTek (requires unlocking via
SP Flash Tool). - Download KingRoot APK from the official website (not from third-party sources!).
- Enable installation from unknown sources in the security settings.
- Install and run the application, click
Try to Root. - Wait for the process to complete (it may take 5โ10 minutes).
- Reboot the device.
- Open Magisk Manager and go to section
Settings. - Enable the option
MagiskHide. - Return to the main screen and click on the icon
MagiskHide(shield). - Tick the boxes of applications that need to hide root (for example, SberBank, Google Pay).
- Reboot the device.
- ๐ Universal SafetyNet Fix โ module for Magisk, which bypasses the check SafetyNet.
- ๐ก๏ธ Shamiko - an alternative
MagiskHidefor new versions Magisk. - ๐ฑ Island (or Shelter) - creates an isolated profile without root for sensitive applications.
- Delete Magisk via Magisk Manager (option
Uninstall). - Flash stock firmware via
fastbootor Odin. - Restore stock
boot.img. - Reset the counter Knox (for Samsung) using Triangle Away (does not work on all models).
- Enable
MagiskHideand add Google Pay to the list of hidden applications. - Install the module Universal SafetyNet Fix.
- Use alternatives: Revolut, Curve or virtual cards.
- Download the full firmware for your model from the official website.
- Flash it via TWRP or
fastboot, but do not remove Magisk. - After updating, flash Magisk again (you may need a new version).
โ ๏ธ Attention: On devices Samsung s One UI 5.0+ after patched firmware boot.img may work Knox and block some functions (for example, Secure Folder or Samsung HealthThis is irreversible!
What to do if the phone does not turn on after flashing the firmware?
If the device is stuck on the logo or goes into bootloop, try:
1. data-i="248">(hold Recovery Mode (hold Power + Volume Up + Bixby for Samsung).
2. Do Wipe Cache Partition.
3. If it doesnโt help, flash the original boot.img via fastboot or use the app Odin for a complete flashing.
Method 5: Root through exploits (for devices without bootloader unlocking)
If the manufacturer has blocked bootloader unlocking (as on some Huawei, Xiaomi for the Chinese market or Motorola), you can try using exploits. It's risky, but sometimes it works.
Popular tools:
Example of use KingRoot:
โ ๏ธ Attention: Using exploits can lead to unstable system operation, random reboots, or data leaks. In addition, many banking applications (for example, SberBank Online or Tinkoff) block access when such methods are detected. root.
How to hide root from applications (MagiskHide and alternatives)
Many applications (banking, games with protection Netflix, Pokรฉmon GO) refuse to work on devices with root. Fortunately, Magisk is able to mask the presence of superuser rights.
Setup instructions MagiskHide:
If MagiskHide does not work (relevant for Android 11+), try:
Even with With MagiskHide enabled, some applications (for example, banking applications with a high level of security) can detect root. In this case, try using a virtual machine (UserLAnd) or a second user profile.
What to do if something goes wrong: error recovery
If after manipulating root the phone does not turn on, it is stuck in a loop. on the logo or displays errors, do not panic. In 90% of cases, the device can be restored.
Common problems and solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| Bootloop (cyclic reboot) | Incompatible Magisk module or firmware error | Boot into TWRP and remove the problematic module or flash the original one boot.img. |
| Phone does not turn on (black screen) | Damaged bootloader or firmware | Flash the stock firmware via fastboot or Odin (for Samsung). |
| Applications do not work (banks, games) | Root detected | Enable MagiskHide or use modules Universal SafetyNet Fix. |
| No network or IMEI reset | Partition damaged modem or EFS |
Restore the backup EFS or flash the stock one modem. |
If all else fails, try a full reset via fastboot:
fastboot erase userdatafastboot erase cache
fastboot flash system system.img
fastboot reboot
For devices Samsung use Odin with the option Re-Partition (if the firmware supports it).
FAQ: Answers to frequently asked questions about root access
Is it possible to get root on Android 14/15?
Yes, but the process has become more complicated. On new versions of Android you need to patch init_boot.img instead of boot.img (this is supported from version 26.0+) You may also need to disable Magisk this is supported from version 26.0+). You may also need to unplug AVB 2.0 (Android Verified Boot) command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img.
How to remove root and return the warranty?
To return the device to its original status:
Will does Google Pay work with root?
Officially - no, because Google Pay checks SafetyNet. However, you can bypass the limitation:
The Android 12+ may require additional configuration via Terminal:
suprops
Find the line with ro.boot.verifiedbootstate and change it to green
Is it possible to get root without unlocking bootloader?
Theoretically, yes, but only on older devices (up to Android 7.0) or through exploits, which are often unstable. On modern smartphones (Android 10+), unlocking the bootloader is mandatory. The exception is some devices on MediaTekwhere you can use MTK-su or SP Flash Tool for temporary root.
How to update Android from root?
Over the air (OTA) updates from root usually lead to loss of rights or bootloop. To update:
For Samsung use Odin with disabled Auto Reboot, then manually flash Magisk via TWRP.