Obtaining root access to Android 10 is a task that requires not only technical skills, but also an understanding of the consequences. Unlike earlier versions, the tenth version of the operating system introduced additional protection mechanisms, such as Android Verified Boot and enhanced verification of the integrity of the system partition. This means that classic methods like flashing Google has introduced additional protection mechanisms, such as AVB 2.0 (Android Verified Boot) and enhanced verification of the integrity of the system partition. This means that classic methods like flashing SuperSU through TWRP often lead to looped loading (bootloop) or complete loss of data.
In this guide we will look at current methods of obtaining root access to Android 10, taking into account the characteristics of different manufacturers - from Google Pixel to Xiaomi i Samsung. You will learn how to correctly unlock the bootloader, bypass DM-Verity, install Magisk (the only reliable solution for modern devices) and avoid common mistakes. We will also analyze the risks: from loss of warranty to problems with Google Pay and banking applications.
Before you begin, answer yourself two key questions: Why do you need root (removing the blaster, custom firmware, backing up system data?) and Are you ready for possible consequences (factory reset, blocking OTA updates, security problems). If the answers are yes, let's get started.
1. Preparing the device: what needs to be done before unlocking
The first and most important stage is preparing the smartphone. Neglecting these steps may lead to data lossiring the device or the inability to restore functionality. Start by checking the following parameters:
- ๐ฑ Device model and Android version: Make sure that you have the same one Android 10 (API 29) and not a newer version. To check, go to
Settings โ About phone โ Android version. Some manufacturers (for example Samsung) modify the kernel, which requires a special approach. - ๐ Bootloader status: Most devices come with a locked bootloader. Unlocking erases all data, so make a backup copy in advance.
- ๐ Battery charge: The level must be at least 70%. The unlocking and flashing process can take up to 30 minutes, and interruption due to low battery is almost always fatal.
- ๐ป Having a PC: You will need a computer with Windows, macOS or Linux to work with
ADBiFastboot. Install the latest versions Platform Tools from Google.
Pay special attention data backup. Use Google Account to synchronize contacts and applications, and for media files and documents - an external drive or the cloud. When unlocking the bootloader on most devices, factory resetis performed, and some manufacturers (for example, Huawei) can block access to the internal memory after modifications.
If on your device Data encryption is enabled (by default on Android 10), unlocking the bootloader will lead to automatic formatting of the partition /data. To avoid losing files, temporarily disable encryption via ADB (command adb shell sm disable-blk-encryption), but remember that this will reduce security.
2. Unlocking the bootloader: official and unofficial methods
Unlocking the bootloader is a mandatory step before obtaining root access. The process differs depending on the manufacturer. Below are instructions for the most common brands:
| Manufacturer | Unlock method | Features |
|---|---|---|
| Google Pixel | Official team fastboot flashing unlock |
Requires inclusion OEM Unlock in developer settings. After unlocking, DRM keys are reset (problems with Widevine L1). |
| Xiaomi | After Mi Unlock Tool linked to your Mi account | You must wait 72-168 hours after linking the device to your account. Some models require unlocking Anti-Rollback. |
| Samsung | Through Odin with patched firmware BL (bootloader) |
On devices with Exynos unlocking is possible, on Snapdragon (for example, Galaxy S10 USA) - no. Trigger risk KNOX (0x1). |
| OnePlus | Official team fastboot oem unlock |
On new models (for example, OnePlus 8T), you may need to disable OEM Lock in the service menu (*#808#). |
For most devices, the unlocking algorithm looks like this:
- Enable
Developer mode 7 times: go toSettings โ About phoneand click onNumber assembly. - Activate
USB debuggingiOEM unlockingin the developer menu. - Connect the device to the PC and execute the command:
adb reboot bootloader - In mode
fastbootenter the unlock command (for example, for Pixel):fastboot flashing unlockA warning will appear on the device screen - confirm unlocking with the volume button.
Developer mode enabled|USB debugging activated|Unlocking enabled OEM|The device is connected to the PC in file transfer mode|A backup of all important data has been made-->
โ ๏ธ Attention: On some devices (for example, Huawei or Motorola), unlocking the bootloader can lead to loss of access to encrypted partitions. If after the procedure the smartphone does not boot or requires a password that is not suitable, a full reset will be required. via fastboot:
fastboot erase userdata
fastboot reboot
3. Installing custom recovery (TWRP) on Android 10
For firmware Magisk or SuperSU you will need custom recovery. TWRP (Team Win Recovery Project) is the most popular solution, but Android 10 its installation is complicated due to dynamic partitions (dynamic partitions) and A/B systems (dual-slot firmware).
Before installation TWRP check whether your device supports unofficial assemblies. The official list of compatible models is available on the website twrp.me. c A/B-sections (for example, Pixel 3, OnePlus 7) you will need a patched image TWRP, which is temporarily flashed in boot or recovery_ramdisk.
Instructions for installation TWRP:
- Download the current version TWRP for your model (for example,
twrp-3.7.0_9-0-pixel3.img). - Reboot the device in
fastboot:adb reboot bootloader - Temporary firmware (for A/B devices):
fastboot boot twrp-3.7.0_9-0-pixel3.imgOr permanent (for devices with one slot):
fastboot flash recovery twrp-3.7.0_9-0-pixel3.img - After loading into TWRP do not allow an automatic reboot - first flash
Magiskor disable forced encryption.
What to do if TWRP does not see the internal memory?
If after booting into TWRP the internal memory is displayed as 0 MB, this means that the recovery cannot decrypt the partition /data. Solution:
1. Go to Wipe โ Format Data (this will delete all data!).
2. Enter yes to confirm.
3. Reboot into TWRP and check memory availability.
If the problem persists, try using OrangeFox Recovery โit works better with encryption on Android 10.
โ ๏ธ Attention: On devices with SAR (System-as-Root), such as Pixel 3/4 or OnePlus 7/8, firmware TWRP to the partition recovery may lead to its replacement with the original one when the system is first booted. In this case, use the temporary download command (fastboot boot) or patched boot.img.
4. Installing Magisk: the only reliable way to get root on Android 10
Magisk from the developer topjohnwu is not just an alternative SuperSU, but a full-fledged system for modifying Android without violating the integrity of the system partition. On Android 10 this is the only solution that:
- ๐ Bypasses SafetyNet (allows you to use Google Pay and banking applications).
- ๐ก๏ธ Supports AVB 2.0 i DM-Verity.
- ๐ฆ Works with dynamic partitions (for example,
super.imgon Pixel 4). - ๐ง Allows you to install modules (for example
ViPER4AndroidorEdXposed).
The installation process Magisk depends on the type of device:
Method 1: Firmware via TWRP (for devices without A/B)
- Download last
Magisk.zips GitHub. - Reboot into TWRP.
- Click
Installโ selectMagisk.zipโ swipe to confirm. - Reboot device.
Method 2: Patching boot.img (for A/B devices)
- Extract
boot.imgfrom the firmware for your model (can be downloaded from the manufacturer's website or extracted viapayload-dumperfor.img-firmware). - Copy
boot.imgto the device. - Install Magisk Manager (APK) and select in it
Install โ Select and Patch a File. - After patching, copy received
magisk_patched.imgon the PC and flash it throughfastboot:fastboot flash boot magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot reboot
Otherwise, after updating the system, root will disappear.-->
โ ๏ธ Attention: If after installation Magisk the device boots into bootloop, most likely you used the wrong boot.img or did not disable forced encryption. Solution:
- Reboot into TWRP.
- Run
Wipe โ Format Data(this will delete all data!). - Repeat flash
Magiskor patchedboot.img.
5. Checking root functionality and bypassing SafetyNet
After successful installation Magisk you need to check:
- Availability of root access: Install the application Root Checker from Google Play and run the scan.
- SafetyNet Status: Open Magisk Manager โ click
Check SafetyNet. data-i="236">, banking applications andFAIL, banking applications and Google Pay will not work.
If SafetyNet does not work, follow these steps:
- ๐ง Install module
MagiskHide Props Configvia Magisk Manager (sectionModules). - ๐ฑ Enable
MagiskHidein settings Magisk Manager and add applications that check root to the hide list (for example, SberBank Online or Google Pay). - ๐ Restart the device and check again SafetyNet.
If the problem persists, try:
- Update
Magiskto the latest version. - Remove conflicting ones modules (for example
XposedorEdXposed). - Reset settings Magisk Manager (
Wipe Dalvik/Cachein TWRP).
If Google Pay refuses to work even after passing SafetyNet, try clearing application data Google Play Services and reboot the device. Also check if modules are installed that modify /system (for example, Systemless Hosts).
6. Typical errors and their solutions
Even if you follow the instructions exactly, failures are possible. Below are the most common problems and ways to fix them:
| Error | Cause | Solution |
|---|---|---|
Bootloop after firmware Magisk |
Incompatible boot.img or encryption not disabled |
Flash the original boot.img, format /data to TWRP, repeat patching |
fastboot: error: cannot load 'magisk_patched.img' |
Damaged file or incorrect path | Check the integrity of the file, use the full path (for example, fastboot flash boot C:\magisk_patched.img) |
| Magisk Manager does not see root | Wrongly flashed Magisk or module conflict |
Reflash Magisk.zip via TWRP, remove all modules |
| Does not work Google Pay after passing SafetyNet | Modules are modified /system or enabled MagiskHide not for all applications |
Disable all modules, add Google Play Services to MagiskHide |
| The device does not boot after unlocking the bootloader | DRM keys have been reset or damaged vendor |
Flash the full stock firmware via fastboot or Odin |
โ ๏ธ Attention: If after manipulating with Magisk the device stops booting and TWRP is unavailable, try booting into fastboot and flashing the original boot.img:
fastboot flash boot boot_original.img
fastboot reboot
If this does not help, you will need to completely flash the stock software using the manufacturer's official utilities.
7. Alternative ways to get root (if Magisk is not suitable)
In rare cases Magisk may do not work (for example, on some devices MediaTek or Huawei c Kirin). Consider the alternatives:
- ๐ง SuperSU: Outdated solution, but may work on some devices. data-i="304">and
dm-verityAndforceencryptmanually via editingfstab. - ๐ฆ KernelSU: A new project integrated into the kernel. Supports Android 10โ14, but requires a custom kernel.
- ๐ Temporary root via ADB: For some tasks (for example, removing a blower), a temporary root is sufficient. can be obtained via
adb shellwith rightssu.
Installation example SuperSU (only for experienced users!):
- Download
SuperSU.zipandno-verity-opt-encrypt.zip. - Flash both archives through TWRP (first
no-verity, thenSuperSU). - Edit
/vendor/etc/fstab, replacingforceencryptonencryptable.
Risks of using SuperSU on Android 10
SuperSU does not support systemless modetherefore:
- Will not work SafetyNet (banking applications will not work).
- Possible problems with OTA updates.
- High risk of bootloop due to conflict with DM-Verity.
Recommended to use only if Magisk impossible install.
8. Restoring the device after unsuccessful manipulations
If something goes wrong and the device does not boot or is unstable, use one of the recovery methods:
Method 1: Flashing stock software via fastboot
For most devices (except Samsung and LG):
- Download the official firmware from the manufacturer's website (for example, for Pixel or XDA Developers for other brands).
- Unpack the archive and go to the folder with the firmware.
- Run the command (for Pixel):
flash-all.shOr manually (for other devices):
fastboot flash boot boot.imgfastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
Method 2: Recovery via EFS/IMEI (for Samsung)
If after the firmware it disappeared IMEI or the mobile network:
- Download the original
EFSbackup for your model. - Flash it through Odin to the section
EFS. - Perform a reset via
*#2767*3855#(carefully - it will delete all data!).
โ ๏ธ Attention: On devices Samsung with a processor Exynos after flashing custom software, the flag may be triggered KNOX (0x1), which leads to loss of functions Samsung Pay, Secure Folder and warranty. Check the status KNOX via *#06# or application Phone INFO.
1. (must match the model and region).
2. Integrity of the bootloader (fastboot flash bootloader bootloader.img).
3. The presence of critical errors in fastboot (for example, FAILED (remote: 'Partition not found') indicates an incorrect partition).-->
FAQ: Frequently asked questions about root on Android 10
Is it possible to get root without unlocking the bootloader?
No. On Android 10 all methods of obtaining root require an unlocked bootloader. The exception is temporary root through vulnerabilities (for example, DirtyCow), but they are closed in current versions of the kernel. Unlocking the bootloader is a mandatory step, which also resets the device to factory settings.
Will Google Pay work after getting root?
Yes, if you configure it correctly MagiskHide and pass the verification SafetyNet. To do this:
- Enable
MagiskHidein the settings Magisk Manager. - Add Google Play Services and Google Pay to the list of hidden applications.
- Install module
MagiskHide Props Configand select the certificatePixel 3. - Reboot the device and check the status SafetyNet.
If SafetyNet does not work, remove all modules that modify system partitions.
How to update Android after receiving root?
Updating via OTA after getting root is impossible - the system will detect changes in the partitions and refuse to install the update. Options:
- ๐ Manual firmware: Download the full OTA image, extract
boot.img, patch it via Magisk Manager, then flash the update manually via TWRP orfastboot. - ๐ฑ Temporary removal of root: Flash the original
boot.img, install OTA, then re-patchboot.imgviaMagisk. - ๐ซ Refusal of updates: If root is critical, stay on the current version or use custom firmware (for example, LineageOS).
Is it possible to return the warranty after getting root?
Formally, no, since unlocking the bootloader and modifying system partitions will void the warranty. However, in practice:
- ๐ง Return the device to stock: flash the original firmware, lock the bootloader (
fastboot flashing lock), reset the counterKNOX(if possible). - ๐ฑ On some devices (for example Xiaomi) you can re-lock the bootloader, but this does not always reset modification flags.
- โ ๏ธ Manufacturers (for example, Samsung or Huawei) can track changes to hardware flags (for example,
KNOXoreFuse), which are reset impossible.
If the device is under warranty, but requires repair due to the fault of the manufacturer (for example, a faulty display), some service centers may turn a blind eye to root if you return the stock firmware. However, this is not guaranteed.
How to remove root and return everything as it was?
To completely remove root and return the device to its original state. status:
- Download the stock firmware for your model.
- Flash it through
fastbootor the official utility (for example, Odin for Samsung). - For devices with
Magiskenough to flash the originalboot.img:fastboot flash boot boot_original.img - Lock the bootloader (if required):
fastboot flashing lockโ ๏ธ This will delete all data!
- Reset via
Settings โ System โ Reset settings.