In this article, we are going to root Xiaomi Mi 11X/POCO F3/Redmi K40 via Magisk but without using the TWRP (aka TeamWin Recovery Project). The steps are a bit tricky but that is for the first time, from next time, it will be a piece of cake.

What is Rooting?

Android rooting is the process of gaining access to system files and folders that are usually protected by the Android operating system. Rooting can be thought of as promoting oneself from a system user to an administrator; with the additional freedom and risks that come from more control over the deeper workings of your device. With great power comes great responsibility, so be sure to take all necessary precautions before rooting your Android device! ..

Android rooting is the process of gaining superuser privileges on an Android device, which is a Linux function that many users may be familiar with. In many ways, then, rooting Android restores a function that should have been there from the start! ..

Some people may still prefer to root their Android device in order to take advantage of the more interesting features that can be found on custom ROMs. However, rooting no longer always needs to be done in order to do this. ..

How Rooting Actually Works?

To root your Android phone, you first need to unlock the bootloader. Then, you need to flash a new recovery. Finally, you can use the new recovery to flash a ZIP file that will give you root access.

If you’re not sure if your device can be unlocked, it’s a good idea to check if it can be done via a quick Google search.

To unlock the bootloader, you will need to use a third-party recovery like TWRP. Once unlocked, you can then switch to custom recovery and flash a.ZIP that will give you root access.

Root Xiaomi M1 11X/POCO F3/Redmi K40

Step1: Setup Fastboot and ADB

What is ADB

To use ADB, you need to install it on your computer. Then, you can use the following command to start it: adb start

What is Fastboot

Fastboot is a powerful tool that can be used to flash the system partition on your Android device. It is a small but powerful tool that comes up with the Android SDK (Software Developer Kit) which is an alternative to all the recovery mode installations and updates. Fastboot requires a device with an unlocked bootloader.

  1. A command line tool used to flash Android firmware onto devices
  2. A feature in the Android OS that allows users to downgrade or uninstall apps
  3. A way for manufacturers to unlock devices

A protocol for communication between your phone hardware and a computer.Software that runs on the phone when in Fastboot/bootloader mode.The executable file on the computer you use to make them talk to each other.

Some independent Android developers and tech enthusiasts have made it possible for Android devices to fastboot mode by default. Some devices do not have this feature, so it is possible to enable it just after Nexus devices have enabled the fastboot mode. Some people believe that this feature is useful because it makes flashing custom ROMs and rooting devices easier.

If you want to set up fastboot and ADB on your device, we have a comprehensive guide for you. Make sure to follow the instructions carefully to avoid any problems. ..

To install Android Debug Bridge and Fastboot, follow these steps:

  1. Open a command prompt and type “adb” followed by the path to your Android SDK installation. For example, if you are using SDK 8.0.0, type “adb -s 8.0.0” .
  2. Type “fastboot” followed by the path to your Fastboot installation. For example, if you are using Fastboot 1.3, type “fastboot devices” .
  3. If you have not already installed ADB and Fastboot on your device, do so now by following these steps:
  4. Type “adb devices” to list all of your device’s ADB and Fastboot devices .
  5. Type “adb reboot” to reboot your device into ADB and Fastboot mode .

Step 2: Unlock Bootloader

The bootloader is the software that starts up your phone’s recovery and the main operating system. When you boot up your phone, this is the first piece of software that runs.

Unlocking the bootloader on a Android phone means opening up the only way to temper the core operating system, which can vary depending on how you root and replace the default Android OS.

If you own a Xiaomi Mi 11X, you may want to unlock the bootloader so that you can install custom ROMs and other modifications. This guide will show you how to do it. ..

To unlock the Mi 11X bootloader, you will need to first remove the battery and then flash a custom recovery image. Once you have flashed the recovery image, you will need to unlock the bootloader by using a special tool.

Step 3: Download Stock ROM and Extract Boot.img File

Xiaomi has not yet released the firmware for their devices, but thanks to a few developers, we have the download links of this firmware.

After downloading the ROM, extract it using any compressing tool.Now, open the extracted folder/directory.And finally, navigate through the files and search for boot.img file, and copy it to less cluttered place.

Step 4: Patch boot.img File via Magisk

We are going to patch the boot.img file via magisk so that it can be used to root the device.

Once the file has been patched, close the Magisk Manager and reopen it. You will now see a new Magisk section in the manager, called ‘Apps’. This is where you will find your newly patched app.

Once the Magisk Manager has completed its installation, it will automatically download and install the patch. Save the file in a safe place (the ADB directory on your PC will be a perfect place). ..

Step 5: Boot into Fastboot Mode

adb shell getprop com.android.providers.telephony.service.TelephonyService This will give you the following output: com.android.providers.telephony.service: TelephonyService is available, using port 5555

fastboot oem unlock

fastboot oem get_mode If the fastboot mode is enabled, the output will be “fastboot”. If the fastboot mode is not enabled, the output will be “not fastboot”. ..

If you get the same serial number followed by the fastboot keyword, then the connection is successful.

Step 6: Root Xiaomi Mi 11X/POCO F3/Redmi K40 by Flashing the Patched File

Now that we have copied the previously patched boot.img file (Step 5) in the ADB directory on our PC and the terminal (Step 6), we will continue using the terminal for rooting the device.

grep -v ‘^#’ /etc/passwd This will print the contents of the /etc/passwd file, including any passwords that have been set.

reboot system

Final Verdict

After much trial and error, we have finally learned how to root Xiaomi Mi 11X/POCO F3/Redmi K40. This process can be a bit tricky at first, but with practice it will become easier. ..

In case you didn’t understand any of the steps in this article, or you have any other questions about it, then feel free to comment down below and we will be more than happy to assist you.