[Xiaomi Redmi 6 Pro Guides, News, & Discussion] androiddev34346:
I followed this guide and it worked. The good thing about this guide is you can mess up and then get the mobile back to working state. I copied from a blog but can not post the link as i have fewer than 10 posts.

The contents of the blog in case if its deleted

1. unlock bootloader.

1.1 To unlock bootloader linking your mobile number to the device is mandatory to unlock bootloader. Read my rant[1] at the end of this post during the flashing as it takes some time. For now move to step 2 after unlocking the bootloader

2. check if the bootloader is unlocked by running the command "fastboot oem device-info"

3. flash the system image.

3.1 Download the image from the mi.com site sakura_india_global_images_V10.3.2.0.PDMMIXM_20190527.0000.00_9.0_global_0aaaa35167.tgz # md5sum 0aaaa35167e8edd299f0dd9418f04c62

3.2 untar

3.3 cd sakura_india_global_images_V10.3.2.0.PDMMIXM_20190527.0000.00_9.0_global/

# poweroff mobile, press volume down + poweron to go to fastboot mode

3.4 ./flash_all.sh

4 twrp flashing using boot and not flash because flashing to recovery parition is successfull but the recovery boot does not launch twrp so use the temporary method(flashboot boot)

4.1 fastboot boot twrp-3.2.3-0-sakura.img # md5sum 16759dcc425042d6a63b635f777a7690

4.2 twrp -> advanced settings ->sideload -> check both the cache to wipe -> swipe

4.3 adb sideload Magisk-v19.4.zip # md5sum 2a1def27607601ecaa780ee4b15210c2

4.4 flashing lazyflasher went in to loading forever, so skip that. it works without lazy flashing

5. reboot will boot to system and then download the MagiskManager apk from its website

5.1 enable the developer options for adb to transfer the MagiskManager apk to mobile

5.2 adb push MagiskManager-v7.3.4.apk /sdcard # md5sum 16e9ad8767665234dea7896a4137288e

5.3 on the mobile install the apk

6. to test it

6.1 adb shell

6.2 su

6.3 the above command should pop up requesting for permissions for root.

[1] Rant on Xiaomi's lies on embracing developer culture

TLDR: Xiaomi don't lie about embracing the hacker ethic. Accept you are evil with some lame excuse that is much more respectable.

It is very evil of Xiaomi to make the user provide their mobile number(thats right, you must provide your **working** sim card number) to unlock the bootloader. They will not unlock if your sim is not active, you must enable internet on your sim, link the sim number to mi account and only then they will unlock the bootloader. If you just use wifi it is not supported and yet they lie on their faq that the need sim for data usage.

Here is the faq they do not say about the sim card requirement . I have archived it in case after reading this Xiaomi might change this faq

The Following is the Q&A of faq

> Isn't locking bootloader against Mi's 'geek' spirit?

> Locking bootloader is aimed to provide a better user experience, which we've been trying to do the whole time. In the meantime, we've provided an unlocking tool for senior users who know their ways around flashing and tweaking their devices.

> The unlocking procedure will need Internet access to get the unlocking password. Also, the Mi Account logged in on the Mi phone and the unlocking tool needs to be the same. Otherwise, the unlocking request will be denied. This will ensure that ill-intentioned people will not get access to your personal data.

Atleast the moto company wanted just the device id to unlock bootloader.

I was rooting for Xiaomi a long back when i saw their faq where the question was "Can i root my mi mobile " and the answer was something along the lines of "Of coures you can, what do you think of us . we embrace hacker ethic. Now i can not find a link to this faq. Is someone find this please comment the link, i will add here.

Hope this guide helps some one.