This tutorial will guide you to root Xiaomi 12 Pro without requiring you to flash TWRP Recovery. Rooting with Magisk is easy and doesn’t require technical skills. If you own a Xiaomi 12 Pro and want to perform numerous things that are usually not possible with the Stock Android ecosystem, then you must root your device. Though, to flash the rooting file, you must unlock your device’s bootloader.
For those who are unaware, installing Magisk and rooting your phone is definitely possible without flashing TWRP at all. Whether you’re an Android enthusiast and want to root your device, we’ll guide you through the procedure to root your Xiaomi 12 Pro using the Magisk method in due course of the article.
Table of Contents
A Brief Intro to Xiaomi 12 Pro
The Xiaomi 12 Pro features the specifications Chipset Qualcomm SM8450 Snapdragon 8 Gen 1 (4 nm) CPU/ Processor Octa-core (1×3.00 GHz Cortex-X2 & 3×2.50 GHz Cortex-A710 & 4×1.80 GHz Cortex-A510) GPU Adreno 730 OS Android 12, MIUI 13 Display 6.73 inches, 109.4 cm2 (~89.6% screen-to-body ratio)/ LTPO AMOLED, 1B colors, 120Hz, Dolby Vision, HDR10+, 1000 nits (HBM), 1500 nits (peak)/ 1440 x 3200 pixels, 20:9 ratio (~521 ppi density)/ Corning Gorilla Glass Victus Internal Storage/ RAM 128GB 8GB RAM, 256GB 8GB RAM, 256GB 12GB RAM
Main Camera 50 MP, f/1.9, 24mm (wide), 1/1.28″, 1.22µm, Dual Pixel PDAF, OIS/ 50 MP, f/1.9, 48mm (telephoto), PDAF, 2x optical zoom/ 50 MP, f/2.2, 115˚ (ultrawide)/ Dual-LED dual-tone flash, HDR, panorama/ 8K@24fps (HDR), 4K@30/60fps (HDR10+), 1080p@30/120/240/960fps, 720p@1920fps, gyro-EIS Selfie Camera 32 MP, f/2.5, 26mm (wide), 0.7µm/ HDR, panorama/ 1080p@30/60fps, 720p@120fps, HDR10+ Battery Li-Po 4600 mAh, non-removable/ Fast charging 120W, 100% in 18 min (advertised)/ Fast wireless charging 50W, 100% in 42 min (advertised)/ Reverse wireless charging 10W/ Power Delivery 3.0/ Quick Charge 4+ Model Number 2201122C, 2201122G
What is Root? Why Root?
‘Root’ refers to a storage unit, which acts as a topmost folder/ directory in the operating system, which holds data from various sections, i.e., apps, systems, and users. The primary job of this ‘root’ directory is to transfer data across every section of the phone’s operating system. If you want to unleash the full potential of the hardware of your Xiaomi 12 Pro, then rooting and flashing custom recovery like TWRP is the primary concern.
Advantages of rooting Xiaomi 12 Pro?
- When it comes to customization, the stock ROMs usually has unsupported and limited capabilities. You may install any custom ROMs, mods, kernels, Xposed Framework, and Xposed module support when your device is rooted and has the TWRP recovery installed. You can also install numerous apps that need root access to function properly.
- Get access to all the files in your phone’s ‘root directory.’
- Bloatware is commonly pre-installed by OEMs or manufacturers on new phones. The user of the Xiaomi 12 Pro can remove all bloatware after acquiring root access.
- Block advertisements in all installed applications, including Chrome, YouTube, and others.
- Overclocking the CPU will improve performance and extend battery life.
Disadvantages of rooting Xiaomi 12 Pro?
- The possibility of an Android smartphone “bricking” during the rooting process is one of the significant factors. An Android phone that has been “bricked” usually becomes unresponsive, won’t switch on, and no longer performs as intended.
- Rooting voids a permanent manufacturer’s warranty
- The issue of “overheating” can be caused by rooting or overclocking.
- The device would no longer get any OTA firmware updates that the manufacturer occasionally gave with bug fixes and security patches for the Android operating system.
Disclaimer: The AndroidWeblog.com covers although everything in a very neat and a processed manner so that our readers get exactly what they want, still there are meager chances of basic issues that may arise out of the listed steps here. Hence it is in sole interest of the user to follow the steps very cautiously so as to stay away from any mishappenings with your device.
Rooting and flashing the Custom ROM firmware certainly voids the warranty of your device, and AndroidWeblog.com will no longer be held responsible for warranty void or your bricked device.
Ensure to check your model number, which must be:
- Xiaomi 12 Pro
Before rooting your phone, ensure you have read the full disclaimer and that you accept to move on at your own risk.
- Phone Should be Charged
Your phone must be at least 70% charged to avoid possible issues while exploring. Why take a chance when you can charge it fully?
Making a backup of your phone is a wise practice if you plan to root your phone or install a custom ROM. Back up all the media on your phone, including the photos, movies, and contacts, to your PC and the cloud.
- Enable USB Debugging
(Applicable only for PC method, Skip if you will use APK method)
You must enable USB debugging option by going in to Settings, Applications and Developer options.
Downloads For Rooting Xiaomi 12 Pro
Download Universal ADB Drivers here (If your PC have already drivers installed then skip this)
Download platform-tools/ SDK Tools package from Android SDK on PC from here. (Android command line tools> SDK Tools package)
Download the latest Xiaomi 12 Pro Stock ROM Firmware flash file, and move it to the PC.
Download Magisk Manager from here.
Verify that you have downloaded all necessary files (link in the pre-requisite section of this article). Then carry on with the steps.
Procedure to Root Xiaomi 12 Pro (Without TWRP with Magisk)
Part 1: Preparing the boot image: Extract and Patch Boot.image using Magisk.
Step 1: To begin with, download the stock ROM in your PC and then extract the stock ROM in your PC.
Step 2: Now, connect your Xiaomi 12 Pro with your PC, and transfer boot.img from the extracted folder to your device’s internal storage.
Step 3: As previously advised in the prerequisite section, launch Magisk Manager. Simply choose Install>Install when a popup window prompting you to install Magisk appears.
Step 4: After that, you’ll have two choices: Download Zip only or Patch Boot Image File. Choose Patch Boot Image File and select the boot image file you previously saved to your device’s internal storage.
Step 5: After the boot image file has been selected, Magisk will immediately begin patching the boot.img file. Once the boot image file has been patched, you can simply copy the patched boot.img from your device’s internal storage and replace it in the extracted ROM folder on your PC.
Then, proceed to the second section to flash the modified boot.img file onto your Xiaomi 12 Pro tablet.
Part 2: Patching the boot image: How to Install the patched Boot.image on Xiaomi 12 Pro?
Step 1: Firstly, extract the ADB and Fastboot tool. Then, move the boot image file that has been patched to the same folder.
Step 2: Next, open CMD under the adb-fastboot-tool folder. To launch PowerShell, press and hold the Shift key while right-clicking the mouse. Otherwise, you can just run the following command, which will return the device id, to check whether the device is connected to the computer or not:
Afterward, start the Xiaomi 12 Pro in fastboot mode by executing the command:
adb reboot bootloader
Optional: To put the device into fastboot mode, either use the method described above using CMD, or;
- Press and hold the Power and Volume Down buttons together to turn the device off. The Xiaomi 12 Pro will enter the fastboot mode as a consequence.
Step 3: Then, enter the below command in order to flash the Magisk patched_boot.img to install Magisk and root Xiaomi 12 Pro:
fastboot flash boot patched_boot.img
Step 4: For devices with an A/B partition system, command is different. A/B system updates use two sets of partitions referred to as slots (generally slot A and slot B). For A/B partitions, you must use the following commands:
fastboot flash boot_a patched_boot.img fastboot flash boot_b patched_boot.img
Important: Make sure to replace [patched boot.img] with the name of the boot image file you downloaded. Use the new file name in commands if patched boot.img or boot.img have been renamed.
Step 5: After flashing the patched boot image file, wait for the procedure to complete flashing. After that, reboot your system or your device using power key or by using the command below:
Verify the Systemless Root
Your Xiaomi 12 Pro has been successfully rooted! Now that the Xposed Framework is installed, you can personalize your smartphone according to your preferences. You may check for rooting by launching the Magisk Manager app. If all went smoothly, all the ticks on the Magisk UI should be green, signifying that the Google SafetyNet protection has been bypassed, the most recent version of Magisk has been installed, and MagiskSU has been configured correctly on the device.