Getting root access on Android opens access to hidden system functions, allows you to remove built-in applications, optimize performance and install modified software. However, the process requires caution: incorrect actions can lead to "briku" the device (complete inoperability) or loss of warranty. In this article we will look at root installations via a computer, relevant for modern versions of Android, including three proven methods. data-i="40">The main advantage of using a PC is greater control over the process and the ability to recover in case of failures. Unlike mobile apps (like three proven methods root installations via a computer, relevant for modern versions of Android, including Android 14 And Android 15.
The main advantage of using a PC is greater control over the process and the ability to recover in case of failures. Unlike mobile applications (like KingRoot or Framaroot), desktop tools support more devices and provide advanced customization options. But before you begin, it is important to assess the risks: some banking applications (for example, SberBank Online or Tinkoff) may block work on rooted devices, and over-the-air (OTA) updates will become unavailable.
1. Preparing your device and computer
Before unlocking bootloader (bootloader) and installing root, you need to complete several critical steps. Skipping any of them can lead to errors like FAILED (remote: 'Device is locked. Cannot flash images') or loss of data.
First, create a backup copy all data. root access erase user files on some devices (especially on Xiaomi, Samsung s Knox, Google Pixel). Use Google Account to synchronize contacts Titanium Backup (if you already have root) or manually copy the files to your PC. Please note: backups via Samsung Smart Switch or Mi Cloud may not be restored on a rooted device.
- ๐ฑ Enable USB debugging: go to
Settings โ About phone โ Build number(press 7 times to activate developer mode), thenSettings โ System โ For developers โ Debugging USB. - ๐ Install drivers: for Windows download Google USB Driver (from Android SDK) or universal drivers ADB Driver Installer. On macOS/Linux drivers are not required, but you need access rights to
adb. - ๐ Unlock OEM Unlock: in the developer menu, activate the option
OEM Unlock. On some devices (for example Huawei or Honor), you will need to obtain an unlock code on the official website. - ๐ Charge the battery at least up to 70%. Interrupting the process due to discharge may render the device inoperable.
โ ๏ธ Attention: On devices with Samsung Knox (for example Galaxy S23, Note 20), unlocking the bootloader resets the counter. Knox on 0x1which voids the warranty and blocks the operation of Samsung Pay, Secure Folder and some banking applications.
2. Unlocking the bootloader
The bootloader is a app that launches Android when the device is turned on. By default, it is locked by the manufacturer to protect against unauthorized changes. Unlocking erases all data on the internal storage (including photos, messages and applications), so be sure to back up in the previous step.
The unlocking process differs depending on the manufacturer. Below are universal instructions for most devices (except Huawei, Xiaomi and Google Pixel, which require additional steps).
โ๏ธ Preparing to unlock the bootloader
Connect your phone to the PC via original USB cable (cheap cables may cause data transfer errors).
Open the command line (
cmdon Windows,Terminalon macOS/Linux) and enter:adb devicesIf the device is listed, proceed further. If not, check the drivers and cable.
Enter the command to enter the mode fastboot:
adb reboot bootloaderAfter the reboot, enter the unlock command:
fastboot flashing unlockA warning will appear on the phone screen. Confirm unlocking using the volume and power buttons.
Wait for the process to complete (may take up to 5 minutes) and reboot the device:
fastboot reboot
| Manufacturer | Unlocking features | Link to instructions |
|---|---|---|
| Xiaomi | Requires account linking Mi and waiting 72โ168 hours after the unlock request | Official website Mi Unlock |
| Google Pixel | Unlocking is possible immediately, but resets Widevine L1 on L3 (loss of HD support in Netflix) | Documentation Google |
| Samsung | Requires the use of Odin and special files BL (bootloader) |
Forums XDA Developers |
| OnePlus | Unlocking does not reset data, but disables OTA updates | Official instructions |
โ ๏ธ Attention: On some devices (for example, Sony Xperia or Motorola), unlocking the bootloader may lead to loss of support DRM-keys. This means that high-resolution videos (for example, in Netflix or Disney+) will only be played in 480p.
3. Installing custom recovery (TWRP)
TWRP (Team Win Recovery Project) is an alternative recovery menu that allows you to install modified firmware, create backups and, of course, obtain root access. Without custom recovery, most rooting methods are impossible.
Important: installing the wrong version of TWRP can lead to a โsoft brickโ (the device turns on, but does not boot beyond the logo). Always check the compatibility with your model on the official website TWRP.me.
- ๐ฅ Download the correct version of TWRP for your device. For example, for Samsung Galaxy S22 you will need a file marked
exynos(for chips Exynos) orsnapdragon(for Qualcomm). - ๐ฅ๏ธ Place the file (usually with the extension
.img) in the folder withadbifastboot. - ๐ Reboot the device into mode fastboot (as in the previous section) and enter the command:
fastboot flash recovery twrp-3.7.0_12-0-your_device_model.img
fastboot reboot recovery
If after reboot TWRP does not start and the device boots into standard recovery, it means that the manufacturer has blocked the replacement of the recovery partition. In this case, you will need patched boot image (more on this in the next section).
What to do if TWRP is not installed?
If after the command fastboot flash recovery you see an error FAILED (remote: 'Not allowed in Lock State'), it means that the bootloader is not completely unlocked. Try:
1. Repeat unlocking via fastboot flashing unlock_critical (for some) devices).
2. Use the utility OrangeFox Recovery instead of TWRP - it supports more models.
3. Install TWRP via Odin (for Samsung) or SP Flash Tool (for devices on Mediatek).
4. Obtaining root access using Magisk
Magisk is the most popular tool for obtaining root access in 2026. Unlike the outdated SuperSU, it supports hiding root from applications (for example, banking or games like Pokรฉmon GO), and also allows you to install modules for deep system customization.
The installation process depends on whether you managed to install TWRP at the previous stage. If yes, follow Method 1. If not, use Method 2 (boot image patch).
Method 1: Installation via TWRP
Download the latest version Magisk (file
.zip) from the official repository on GitHub.Move the file to the internal memory or SD card of the device.
Boot into TWRP (hold
Power + Volume Upwhen turned on).In the TWRP menu, select
Install, specify the path to the file Magisk and swipe to confirm.After installation, reboot the device. When you first start, install the application Magisk Manager to manage root access.
Method 2: Patch the boot image (without TWRP)
This method is suitable for devices where it is impossible to install custom recovery (for example, Google Pixel 7 or Samsung Galaxy S24).
Download Magisk Manager (APK) and install it on your device.
Extract boot image from the firmware of your device. To do this:
- Download. full firmware (
.zip) for your model from the manufacturer's website. - Extract the file
boot.imgfrom the archive (use 7-Zip or WinRAR).
- Download. full firmware (
B Magisk Manager select Install โ Select and Patch a File and specify the path to boot.img.
After patching, copy the resulting file magisk_patched.img to your PC.
Reboot the device into fastboot and flash the patched boot:
fastboot flash boot magisk_patched.img
fastboot reboot
If, after installing Magisk, the device gets stuck on the logo, try flashing the original boot image back, and then repeat the process with Magisk modules disabled (in the application settings).
5. Checking root access and eliminating errors
After rebooting the device, you need to make sure that root access is successfully installed. this:
Install the application Root Checker from Google Play and run the scan.
Open Magisk Manager and make sure that the status is displayed
Installed: โ.Try to launch the application, requiring root (for example Titanium Backup or AdAway).
- โ The device is not loading: the wrong boot image may be flashed. Try flashing the original one
boot.imgvia fastboot. - โ Magisk does not detect root: reinstall the application or flash the patched boot again.
- โ Applications detect root (for example, banking): activate
MagiskHidein the settings and add applications to the exclusion list. - โ Error
FAILED (remote: 'Not allowed in Lock State'): bootloader is not fully unlocked. Repeat the unlocking process.
If root does not work, check the following points:
โ ๏ธ Attention: On devices with Android 12+ and kernel Kernel 5.10+ (for example Google Pixel 6/7, Samsung Galaxy S22/S23) Magisk may not work due to changes in the mechanism init. In this case, you will need to use Magisk Delta or KernelSU forks of the original Magisk with support for new versions of Android.
6. Hiding root from applications (MagiskHide)
Many applications (banking, games, streaming services) block work on rooted devices. Magisk offers a built-in masking mechanism - MagiskHide, but it needs to be configured correctly.
Here's how to hide root from specific applications:
Open Magisk Manager and go to the section
Settings.Activate the option
MagiskHide(in new versions it is calledZygisk โ Enforce DenyList).Add applications to DenyList (exception list). To do this:
- Click on the icon
โ๏ธin the upper right corner. - Select
Configure DenyList. - Tick the boxes of applications that need to hide root (for example, SberBank, Tinkoff, Pokรฉmon GO).
- Click on the icon
Restart the device.
If the application still detects root, try:
- ๐ Reinstall the application after activation
MagiskHide. - ๐ฆ Delete application data in Android settings.
- ๐ Use modules Magisk like
Universal SafetyNet FixorPlay Integrity Fixto bypass checks Google SafetyNet.
Even with MagiskHide activated, some applications (for example, Google Pay or Netflix) In this case, the only way out is to temporarily disable root via Magisk (option Uninstall โ Complete Uninstall).
7. Alternative methods of obtaining root
If standard methods do not work, consider alternative options. They are suitable for specific devices or versions of Android.
| Method | Supported devices | Pros | Cons |
|---|---|---|---|
| KernelSU | Device with kernel 5.10+ (Android 12โ15) | Support for new versions of Android, integration with kernel | Complicated installation, limited compatibility |
| SuperSU (outdated) | Android 4.4โ7.1 | Ease of use | Not updated, incompatible with Magisk |
| OneClickRoot (PC apps) | Devices with unlocked bootloader | Automation of the process | Risk of installing malware, low success rate |
| Custom firmware (LineageOS, Pixel Experience) | Most devices with an unlocked bootloader | Clean Android, regular updates | Loss of some functions (for example, the camera on Samsung) |
For devices Samsung with processors Exynos (for example, Galaxy S21, Note 10) you can use the utility Odin for firmware patched APfile with root. Instructions and files are usually published on forums XDA Developers.
For Xiaomi (especially on processors Mediatek) the method via SP Flash Toolis suitable. It requires downloading the full firmware and replacing it. file boot.img to a patched one via Magisk.
8. Restoring a device after unsuccessful rooting
If something went wrong during the root installation process (the device does not turn on, freezes on the logo or displays errors), do not panic. In most cases, the device can be restored.
Here is the algorithm of actions:
"Soft brick" (the device turns on, but does not boot beyond the logo):
- Boot into TWRP (if installed) and restore the backup (
Restore). - If there is no TWRP, flash the original one. c
boot.imgvia fastboot:
fastboot flash boot stock_boot.imgfastboot reboot- Boot into TWRP (if installed) and restore the backup (
"Hard brick" (the device does not respond to buttons):
- Connect your device to your PC and check if it is detected in
fastboot(fastboot devices). - If yes, flash the full stock firmware via Odin (Samsung), Mi Flash (Xiaomi) or fastboot (Google Pixel, OnePlus).
- If not, try the mode
EDL(Emergency Download Mode) using Qualcomm HS-USB QDLoader 9008 (requires special cable).
- Connect your device to your PC and check if it is detected in
Loss of IMEI or network (after modem firmware):
- Restore
EFSpartition from backup (if any). - Use utilities like ChimeraTool or Z3X to restore IMEI (requires a box or paid access).
โ ๏ธ Attention: If you flashed incompatible firmware (for example, a version for a different region or model), the device may lose support for some functions (NFC, 5G, camera. In this case, you will need to flash exact match by model and region (for example, SM-G991B for Galaxy S21 international version).
If you are not sure of your actions, it is better to contact for help on thematic forums (for example, XDA Developers or 4PDAThe community often publishes ready-made solutions for specific models and errors.
FAQ: Frequently asked questions about root access on Android
Can I get root without unlocking? bootloader?
No, on modern devices (Android 8+) unlocking the bootloader is required. Previously, there were exploits (for example, DirtyCOW or Towelroot), but they have long been closed by manufacturers. The only exception is some devices running on Mediatek c. outdated versions of Android (4.4โ6.0), where you can use utilities like MTK Easy SU.
Will Google Pay work after getting root?
Most likely not. Google Pay uses SafetyNet i Play Integrity API to check the integrity of the system. Even with activated MagiskHide the chances of it working are minimal. Alternatives:
- Use other payment systems (Samsung Pay, Mir Pay).
- Install the module
Play Integrity Fixin Magisk (does not guarantee 100% results). - Temporarily disable root before using Google Pay.
How to update Android after getting root?
Over-the-air (OTA) updates on rooted devices do not workOptions:
- ๐ฅ Manual firmware: download full firmware from official sites and flash it. via Odin/fastboot, having previously removed Magisk (so as not to lose data).
- ๐ Custom firmware: go to LineageOS or Pixel Experience, where updates are installed via TWRP.
- ๐ ๏ธ Boot image patch: after updating, re-patch
boot.imgvia Magisk.
Important: firmware of an incompatible version of Android may lead to briku!
Is it possible to remove root and return the warranty?
Technically yes, but not always. stock
- Remove Magisk via
Uninstallin the application. - Sew stock
boot.img. - Return stock recovery (if you installed TWRP).
- Reset to factory settings.
However:
- On Samsung counter Knox (
0x1) cannot be reset - the warranty is canceled forever. - Some service centers check traces of rooting even after removing root.
What are the risks of obtaining root access?
Main risks:
- ๐ก๏ธ Security: root opens access to system files for all applications, which increases the risk of virus infection.
- ๐ Privacy: Some malware can steal data (passwords, photos) from rooted devices.
- ๐ต Instability: Incorrect changes to system files can lead to constant reboots or equipment failure (for example, camera).
- ๐ซ Locks: loss of support Netflix HD, Google Pay, Samsung Knox and other services.
Recommendation: use root only if you really need its functions are needed (for example, for backup or removal of the blaster). For normal use, developer mode is sufficient.