Android 10 is one of the most stable versions of the mobile OS from Google, but even it limits users in managing system files. Obtaining root access (or root access) opens up opportunities for deep customization: from removing built-in software to installing modified firmware. However, the process is fraught with risks - from loss of warranty to โbrickingโ the device.
In this guide we will examine Current ways to get root on Android 10 (including security patches 2026-2026), features for popular brands (Samsung, Xiaomi, Google Pixel, OnePlus), as well as legal alternatives if you donโt need root. Important: the procedure is different for devices with a locked and unlocked bootloader - we will consider both scenarios.
Before you start, check:
1) Android version (in Settings โ About phone).
2) Processor model (via application CPU-Z).
3) Bootloader status (command fastboot oem device-info in ADB).
Without this information, you risk choosing the wrong method and damaging the system.
1. Preparing the device: what needs to be done BEFORE getting root
An unprepared device is the main source of problems when getting root. On Android 10 it is critical to perform a backup via ADB (not only cloud services!), since after unlocking the bootloader the data will be erased. Here is a checklist of required actions:
Create a backup via adb backup (including applications and data)
Download the original firmware for your model
Install drivers ADB and Fastboot
Charge the phone to at least 70%. In some devices (for example
Disable OEM Lock in developer settings
Check your model's compatibility with Magisk on the forum XDA Developers-->
Pay special attention to the point about OEM Unlock. On some devices (for example, Samsung Galaxy S10 or Xiaomi Redmi Note 8 Pro) this option may disappear after a reboot. Solution: activate it, connect to the Internet, reboot the phone and immediately check the status using the command:
adb shell getprop ro.oem_unlock_supported
If the answer is 1 โthe bootloader can be unlocked. If 0 โyou will need a workaround (about it in the about Samsungsection. Also note that some operators (for example, Verizon in the USA) block unlocking at the firmware level.
โ ๏ธ Attention: On devices with Exynos (For example, Samsung Galaxy S20) after unlocking the bootloader, hardware protection Knoxis triggered, which makes it impossible to use Samsung Pay, Secure Folder this is irreversible!
2. Methods for obtaining root on Android 10: which one to choose?
The method of obtaining root depends on three factors: 1) Bootloader status (locked/unlocked). 2) Availability of custom recovery (TWRP). 3) Processor model (Qualcomm, Mediatek, Exynos).
Below is a comparison table of methods:
| Method | Requires bootloader unlocking | Requires TWRP | Supported devices | Risk "brika" |
|---|---|---|---|---|
| Magisk (patched boot.img) | Yes | No | Any (except Samsung s Knox) | Low |
| SuperSU (obsolete) | Yes | Yes | Only old devices (before 2019) | High |
| Exploit (for example, DirtyCow) | No | No | Devices with kernel vulnerabilities | Medium |
| OneClick tools (KingRoot) | No | No | Chinese smartphones on Mediatek | Very high |
For 90% of modern devices the method with Magisk via patch is optimal boot.img. It retains the possibility of OTA updates (if properly configured) and supports SafetyNet (important for banking applications). modern devices DirtyCow work only on firmware with vulnerabilities that have long been closed in security patches 2023+.
Magisk|SuperSU|Exploit (for example, DirtyCow)|OneClick tools (KingRoot, etc.)|Never tried-->
Why Magisk is the best choice for Android 10?
Magisk (developer topjohnwu) solves the key problems of the classic root:
- ๐น The system partition remains untouched โ changes are made only to
boot, which simplifies rollback. - ๐น SafetyNet support โ you can use Google Pay, Netflix banking applications (when hiding the root via MagiskHide).
- ๐น Modular system โ installation of modifications (for example, ViPER4Android or AdAway) without editing system files.
โ ๏ธ Attention: Starting from Magisk v26.0 (2023), the module MagiskHide was removed due to stricter checks Google. Instead, use the module Universal SafetyNet Fix + Shamiko to hide the root.
3. Step-by-step guide: root via Magisk on Android 10
This method is suitable for devices with unlocked bootloader. If your bootloader is locked, first complete section 4, then return here.
Step 1: Download the necessary files
You will need:
- ๐ฑ Original firmware for your model (download from the manufacturer's official website or XDA).
- ๐ฅ๏ธ Platform Tools (includes
adbandfastboot) โ official link. - ๐ ๏ธ Magisk Manager (latest version) - GitHub repository.
- ๐ง 7-Zip or WinRAR to extract
boot.imgfrom the firmware.
Step 2: Extract and patch boot.img
1. Unpack the downloaded firmware (usually this is a file .zip or .tar).
2. Find the file boot.img (may be called boot.img.lz4 โthen unpack it via LZ4 Tool).
3. Copy boot.img to your phone.
4. Open Magisk Manager, click Install โ Select and Patch a File and select boot.img.
5. After patching, the file will be saved as magisk_patched.img in the folder Download.
If there is no separate boot.imgin the firmware, but only payload.bin (typical for Google Pixel), use the tool Payload Dumper to extract the image.
Step 3: Flash patched boot.img
1 Connect the phone to the PC in fastboot (turn off the device, then press Power + Volume Down).
2. In the command line (in the folder with platform-tools) run:
fastboot flash boot magisk_patched.img
3. For devices with a partition boot_a/boot_b (for example, OnePlus 7T) use:
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
4. Reboot the phone:
fastboot reboot
Step 4: Check the root and configure Magisk
After downloading:
- ๐ Install Root Checker from Play Market and check the status of the root.
- ๐ก๏ธ In Magisk Manager activate the modules Universal SafetyNet Fix i Shamiko (to hide the root from banking applications).
- ๐ If the root does not work, repeat the firmware
boot.imgwith the option disabledAVB(add--disable-verity --disable-verificationto the commandfastboot).
Flash magisk_patched.img needed AFTER EVERY Android update! Otherwise, the root will disappear, and the system may get stuck on loading.
4. Unlocking the bootloader: instructions for different brands
The process of unlocking the bootloader varies depending on the manufacturer Below are the current methods for popular brands for 2026. year.
๐ฑ Samsung (Exynos/Mediatek)
On devices Samsung with processors Exynos (for example, Galaxy S21, Note 20) unlocking is possible, but with reservations:
- ๐ Turn on
OEM UnlockinSettings โ Phone information โ Software information โ Build number(tap 7 times to activate developer mode). - ๐ง Use the utility Odin (version 3.14.4+) for firmware
TWRPor patchedboot.img. - โ ๏ธ After unlocking it will work Knox (check the status via
*#06#- ifKnox: 0x1, the warranty has expired).
Bypassing Knox on Samsung
On Some models (for example Galaxy S10 Lite) you can use the "Combination Firmware" method to temporarily bypass Knox, but this requires deep knowledge and is risky. Find details in the topics XDA according to your device model.
๐ฑ Xiaomi (Mediatek/Qualcomm)
Xiaomi blocks bootloader unlocking via account linking Mi. Algorithm of actions:
- Link the device to your account Mi to
Settings โ Xiaomi Account. - Go to
Settings โ Advanced โ For developers โ Mi Unlock statusand link the device. - Download Mi Unlock Tool (latest version) and log in.
- Connect your phone in mode
fastbootand follow app instructions. Typically, a wait of 7โ14 days is required (on new devices).
โ ๏ธ Attention: On devices Xiaomi with a processor Mediatek (for example, Redmi 9A) after unlocking, you may need to update the firmwareVBmetawith disabled checkAVB:fastboot --disable-verity --disable-verification flash vbmeta vbmeta.imgWithout this, the phone will freeze on the logo.
๐ฑ Google Pixel
Google I have simplified the process as much as possible for my devices:
- Activate
OEM Unlockin the settings developer. - Connect your phone to the PC and do:
fastboot flashing unlockConfirm unlocking on the phone screen (volume buttons).
- Flash
magisk_patched.imgas described in section 3.
On Pixel 4a and newer, after unlocking, all data (including internal memory) is automatically reset.
๐ฑ OnePlus
On OnePlus 7/8/9 series, unlocking takes 5 minutes:
fastboot oem unlock
But please note:
- ๐ On OnePlus 9 Pro s OxygenOS 12+ you need to disable
Critical Unlockin the developer settings (otherwise it will be blocked Widevine L1and Netflix will show in low resolution). - ๐ After unlocking, flash
fastboot flash boot magisk_patched.imgimmediatelyfastboot flash dtbo dtbo.img(otherwise the camera will stop working).
5. Alternatives to root access: when they can be avoided
root access is not always necessary to solve problems. In many cases, alternative methods are sufficient:
| Task | Root required? | Alternative |
|---|---|---|
| Removing built-in applications | No | Disable via ADB:
|
| Backup applications with data | No | Swift Backup (works via ADB Backup) |
| Changing system fonts | No | Applications like iFont (requires Magisk only for system fonts) |
| Ad blocking | No | Blokada or DNS66 (without root, but with VPN) |
| CPU overclocking | Yes | No alternatives (requires a supported kernel CPU Tuning) |
If your goal is remove bloat or backup, try to do without root. For example, to disable unnecessary services Google use the command:
adb shell pm disable-user --user 0 com.google.android.apps.magazines
This safer than rooting and does not affect SafetyNet.
For devices with Android 10 and newer, use Shizuku + AppOps - this allows you to manage application permissions without root, including access to geolocation and microphone.
6. Risks and how to minimize them
Obtaining root access entails not only opportunities, but also threats. Here are the key risks and ways to avoid them:
- ๐ "Brick" devices - happens when the firmware is incorrect
boot.imgor the process is interrupted. Solution: always check the hash sum (MD5) of the downloaded files and. use Fastboot Enhance to control the process. - ๐ก๏ธ Loss of SafetyNet - without root, many banking applications and games (Pokรฉmon GO) refuse to work. Solution: modules Universal SafetyNet Fix + MagiskHide Props Config.
- ๐ Problems with OTA updates - after rooting, system updates can break the bootloader. Solution: Before updating, remove the root via Magisk (
Uninstall โ Complete Uninstall). - ๐ต๏ธ Data leak โroot applications can access passwords and tokens Solution: use AFWall+ to block network access. suspicious applications.
โ ๏ธ Attention: On devices with Dynamic Partition (entered in Android 10), incorrect resizing of partitions (for example, through TWRP) leads to data loss without the possibility of recovery. create a full backup in sections via:adb backup -apk -obb -shared -all -f backup.ab
If after rooting the phone stops booting:
- Try to boot into
fastbootand flash the originalboot.img. - If the screen is black - connect the phone to the PC and check the command output:
fastboot devicesIf the device is not detected, you will need EDL mode (for Qualcomm) or SP Flash Tool (for Mediatek).
7. Common errors and their solutions
Even if you follow the instructions, errors may occur. Here are the most common ones and how to correct them:
| Error | Cause | Solution |
|---|---|---|
fastboot: error: Cannot generate image for userdata |
There is not enough space in the partition userdata or it is encrypted |
Reset via fastboot -w or disable encryption in TWRP (Format Data โ Yes) |
Magisk is not installed after flashing |
Invalid boot.img or conflict with modules |
Flash the original boot.img, then repeat the patch from a clean one Magisk (without modules) |
| The phone is stuck on the logo after root | Not flashed dtbo or conflict with VBmeta |
Flash:
|
| Google Pay doesn't work | SafetyNet failed or root is not hidden | Install modules Universal SafetyNet Fix + Shamiko, then check the status via YASNAC |
If Magisk Manager does not see the root after successful firmware:
- ๐ Reinstall Magisk Manager (download the latest version from GitHub).
- ๐ฑ Check that in
Settings โ System โ About phonethe root status is displayed asMagisk. - ๐ง If there is a root, but applications do not see it, activate
MagiskHide(in Magisk v24+ this is calledEnforce DenyList).
What to do if the camera stops working after rooting?
On some devices (for example, OnePlus 8 Proafter flashing magisk_patched.img the camera breaks due to missing files persist.img. Solution:
- Download the full firmware for your model.
- Extract
persist.imgand flash it:fastboot flash persist persist.img - Restart the phone.
If the problem persists, check whether the module conflicts Magisk with the camera drivers (disable all modules and test one at a time).
8. FAQ: answers to frequently asked questions
โ Is it possible to get root on Android 10 without unlocking? bootloader?
Theoretically, yes, but only through exploits (for example, DirtyCow or CVE-2020-0041However:
- ๐ Most exploits are closed in security patches after 2020.
- โ ๏ธ The risk of "brick" is higher than with the standard method.
- ๐ฑ On Samsung i Google Pixel this is almost impossible.
If your device was released after 2021, the chances are close to zero. Itโs better to unlock the bootloader legally.
โ How to hide root from banking applications?
To bypass SafetyNet and detection systems:
- Install in Magisk modules:
- Universal SafetyNet Fix (required)
- Shamiko or MagiskHide Props Config
Enforce DenyList in settings Magisk and add banking applications to the list.ctsProfile, basicIntegrity) should be true.For Sberbank Online and Tinkoff you may additionally need to disable Magisk completely (there is an option to temporarily disable in the settings).
โ Is it possible to update Android after receiving the root?
Yes, but with reservations:
- ๐ OTA updates they break the root because they replace
boot.img. Before updating:- Remove root via Magisk (
Uninstall โ Complete Uninstall). - Accept the update.
- After the update, repeat the patch
boot.img(from the new firmware!) and flash it again.
- Remove root via Magisk (
- Downloading the full firmware for your model.
- Patching a new one
boot.imgthrough Magisk. - Firmware of all partitions (
boot,dtbo,vbmeta).
On Samsung after the update, you may need to re-unlock the bootloader (due to Knox).
โ How to return the warranty after rooting?
Formally, the warranty is lost after unlocking the bootloader, but there are ways to return the device to its "factory" state:
- Download full stock firmware for your model (for example, from XDA or the official website).
- Flash it via
fastbootor Odin (for Samsung):fastboot flash --slot=all system system.imgfastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification - Reset via
fastboot -wor in the recovery menu (Wipe Data/Factory Reset). - Close bootloader (if possible for your model):
fastboot flashing lock - Check the status Knox (for Samsung): if
0x0, the service center will not detect interference.
โ ๏ธ On Google Pixel and some Xiaomi the bootloader status (locked/unlocked) is retained even after repeated blocking. In this case, the warranty cannot be returned.