How To Root Xiamo Redmi 9 Prime Without TWRP
Tags: android
Published: 2023-01-27 03:02:19

---
title: How To Root Xiamo Redmi 9 Prime Without TWRP
published: true
date: 2022-09-28 00:44:45 UTC
tags: android
canonical_url: http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html
---

#### Introduction

Rooting<sup id="fnref:root"><a href="http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fn:root">1</a></sup> an android device voids warranty but gives a great control over the device. For most of the popular devices, TWRP<sup id="fnref:twrp"><a href="http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fn:twrp">2</a></sup> recovery is available. Once a device bootloader is unlocked, we can install TWRP recovery. After that we can flash Magisk to gain root access.

For some devices like Redmi 9 Prime(codename: lancelot), TWRP recovery is not available officially. There are couple of unofficial images but they are not working as expected and are causing bootloop.

In this article, lets see how to root lancelot device.

#### Rooting Lancelot

First ensure that the device bootloader is unlocked and your system has adb & fastboot installed. To root without TWRP, we need to obtain patched `boot.img` & `vbmeta.img` and flash them in fastboot mode.

First we need to download the stock ROM of the device to extract boot.img file. We can go to manufacturers site and download the same stock ROM<sup id="fnref:lancelot"><a href="http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fn:lancelot">3</a></sup> that is running on the device. Once the ROM is downloaded, we can unzip it. There we can find boot.img file.

![](http://avilpage.com/images/root-redmi-9-prime.png)

We need to patch this file. To patch this, download magisk app on the device. Click on install and select the boot.img file to patch. After a few minutes, it will generate a patched boot file.

![](http://avilpage.com/images/root-redmi-9-prime-2.jpeg)

We can download this file to system by running the following command.

```
$ adb pull -p /storage/emulated/0/Download/magisk_patched-25200_cU1ws.img .

```

Now we need to download patched vbmeta file. This is available in XDA<sup id="fnref:xda"><a href="http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fn:xda">4</a></sup> forum. Click [this link](https://forum.xda-developers.com/attachments/vbmeta_redmi9-img.5082027/) to download it.

Once we have both patched files, we can reboot the device in fastboot mode by using the following commands.

```
$ adb devices

$ adb reboot bootloader

```

When the device is in fastboot mode, run the following commands to root it.

```
$ fastboot --disable-verity --disable-verification flash vbmeta vbmeta_redmi9.img

$ fastboot flash boot magisk_patched-25200_cU1ws.img

$ fastboot reboot

```

Once the deivce is rebooted, we can install root checker app and verify that the device is rooted successfully.

#### Final Thoughts

When we buy a Mac or PC(Linux/Windows), it is rooted by default. For Linux/Mac, we can run programs as sudo. For windows, we can just run a program as an administrator. There are no extra steps to root/jailbreak these devices.

But most mobile phone companies make rooting hard and only tech savy users can root the device. It would be great if mobile phones are rooted by default.

* * *

1. [https://en.wikipedia.org/wiki/Rooting\_(Android)](https://en.wikipedia.org/wiki/Rooting_(Android)) [↩](http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fnref:root "Jump back to footnote 1 in the text")

2. [https://en.wikipedia.org/wiki/TWRP\_(software)](https://en.wikipedia.org/wiki/TWRP_(software)) [↩](http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fnref:twrp "Jump back to footnote 2 in the text")

3. [https://xiaomifirmwareupdater.com/miui/lancelot/](https://xiaomifirmwareupdater.com/miui/lancelot/) [↩](http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fnref:lancelot "Jump back to footnote 3 in the text")

4. [Guide @ XDA](https://forum.xda-developers.com/t/guide-magisk-root-access-for-redmi-9-mediatek-helio-g80-without-twrp.4149531/) [↩](http://avilpage.com/2022/09/how-to-root-redmi-9-prime-lancelot.html#fnref:xda "Jump back to footnote 4 in the text")