help unlocking bootloader - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

hi guys
i got scammed when i bought my second handed k20 pro after i bought the phone and came home i discovered the seller bypassed and old miui account on this devices so can't now link any miui account which mean i can't unlock the bootloader.
Does anyone of u have any idea about unlocking the bootloader by the unofficial ways or at least installing magisk with locked bootloader
THANK YOU IN ADVANCE

Le Karim HI said:
hi guys
i got scammed when i bought my second handed k20 pro after i bought the phone and came home i discovered the seller bypassed and old miui account on this devices so can't now link any miui account which mean i can't unlock the bootloader.
Does anyone of u have any idea about unlocking the bootloader by the unofficial ways or at least installing magisk with locked bootloader
THANK YOU IN ADVANCE
Click to expand...
Click to collapse
You could install Magisk by two ways:
- By first flashing a custom recovery (TWRP) in Fastboot and then by installing the Magisk zip through TWRP
- Also by flashing in Fastboot the boot.img file patched by Magisk app (Magisk app can be installed as an app to the not rooted phone but IT IS NOT the Magisk irself, you do not get root just by installing Magisk app - Magisk app is only an UI manager for the Magisk)
In both cases you must start by executing the command:
fastboot flash ...
(to flash either recovery.img or patched-boot.img)
but Fastboot WILl NOT allow the flash command to execute when Bootloader is locked
You can read on the Magisk GitHub page how to install Magisk:
Installation
The Magic Mask for Android
topjohnwu.github.io
---
I don't know if you could bypass the Mi account associated to your phone by help from an authorized EDL support
IMO, Xiaomi keeps that info which phones are registered to whose accounts on their servers (not on the phones)
You should search for an ask about the on-line EDL support eg on Telegram. I never needed but I've seen a lot of posts about (for various Xiaomi phones) - users usually need their help when they hard-brick Xiaomi phones
However, it's a paid service, hence it cannot be 'advertised' on XDA (posts with URLs will be usually removed quickly)

zgfg said:
You could install Magisk by two ways:
- By first flashing a custom recovery (TWRP) in Fastboot and then by installing the Magisk zip through TWRP
- Also by flashing in Fastboot the boot.img file patched by Magisk app (Magisk app can be installed as an app to the not rooted phone but IT IS NOT the Magisk irself, you do not get root just by installing Magisk app - Magisk app is only an UI manager for the Magisk)
In both cases you must start by executing the command:
fastboot flash ...
(to flash either recovery.img or patched-boot.img)
but Fastboot WILl NOT allow the flash command to execute when Bootloader is locked
You can read on the Magisk GitHub page how to install Magisk:
Installation
The Magic Mask for Android
topjohnwu.github.io
---
I don't know if you could bypass the Mi account associated to your phone by help from an authorized EDL support
IMO, Xiaomi keeps that info which phones are registered to whose accounts on their servers (not on the phones)
You should search for an ask about the on-line EDL support eg on Telegram. I never needed but I've seen a lot of posts about (for various Xiaomi phones) - users usually need their help when they hard-brick Xiaomi phones
However, it's a paid service, hence it cannot be 'advertised' on XDA (posts with URLs will be usually removed quickly)
Click to expand...
Click to collapse
i already bypassed the mi account on the phone thtat's why I can't link a new one

Related

Question Root Mi 11 Ultra

Want to confirm before proceeding, I find this instruction.
How to Root Xiaomi Mi 11 Ultra and Unlock Bootloader
Want to root Xiaomi Mi 11 Ultra with Magisk? Here's how to root Mi 11 Ultra along with a guide to unlock bootloader.
www.ytechb.com
I've already unlocked the bootloader, want to make sure it is safe to do so (won't brick etc)
bump, anybody successfully rooted the phone?
linnil said:
Want to confirm before proceeding, I find this instruction.
How to Root Xiaomi Mi 11 Ultra and Unlock Bootloader
Want to root Xiaomi Mi 11 Ultra with Magisk? Here's how to root Mi 11 Ultra along with a guide to unlock bootloader.
www.ytechb.com
I've already unlocked the bootloader, want to make sure it is safe to do so (won't brick etc)
Click to expand...
Click to collapse
You need to patch to boot image a and boot image b
As descriped here. This worked on my MI11
https://www.getdroidtips.com/root-xiaomi-mi-11/
linnil said:
bump, anybody successfully rooted the phone?
Click to expand...
Click to collapse
Yes. I patched my boot.img with magisk, then flashed it using "fastboot flash boot_ab magisk_patched(boot.img file name).omg"
Caveat: I bricked my device like many others after unlocking the bootloader and flashing xiaomi.eu ROM. I had to have a authorized EDL account holder flash a factory ROM (in my case I had a China variant flashed with the Global ROM), after which I flashed xiaomi.eu latest stable ROM and then rooted it.
does google pay still work after root?
xreactx said:
Caveat: I bricked my device like many others after unlocking the bootloader and flashing xiaomi.eu ROM. I had to have a authorized EDL account holder flash a factory ROM (in my case I had a China variant flashed with the Global ROM), after which I flashed xiaomi.eu latest stable ROM and then rooted it.
Click to expand...
Click to collapse
I still don't get, how you all bricked your phones? I was able to unlock (granted, after 7 days) successfully and update CN with EU-ROM... There's thread for it in this forum.
[ROM][MIUI][star/mars] Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra
How to install Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra We will release fastboot ROM versions until TWRP for star/mars is released TWRP RELEASED Steps to install xiaomi.eu ROM for first time from China ROM (All your data and files on...
forum.xda-developers.com
SanHelios said:
I still don't get, how you all bricked your phones? I was able to unlock (granted, after 7 days) successfully and update CN with EU-ROM...
Click to expand...
Click to collapse
Seems it was an issue with setting the active slot in the installation script. Solution is described here and since then it looks as if no more bricks occur
s3axel said:
Seems it was an issue with setting the active slot in the installation script. Solution is described here and since then it looks as if no more bricks occur
Click to expand...
Click to collapse
Oh thanks, mate. I missed that one..
Now back to issue, does it work, rooting the device the way it is descibred on that page?
SanHelios said:
Oh thanks, mate. I missed that one..
Now back to issue, does it work, rooting the device the way it is descibred on that page?
Click to expand...
Click to collapse
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
s3axel said:
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
Click to expand...
Click to collapse
well, i just rooted it according to the site's instructions.. it booted up, BUT the Safety-Net-Check was negative... Did i miss something?
you n
SanHelios said:
well, i just rooted it according to the site's instructions.. it booted up, BUT the Safety-Net-Check was negative... Did i miss something?
Click to expand...
Click to collapse
you need to hide Magisk Manager and also Magisk hide Google Play, Play services and Google Services Framework
s3axel said:
My pleasure
And yes, I rooted my device this way although I took the "fastboot flash boot_ab" approach instead of the separate flashing of a and b.
For updating the ROM I took the boot image before installing, patched it with Magisk, copied it back to the images installation folder and let the update script do its magic - thus I got instant-root for the update...
Click to expand...
Click to collapse
I flashed it separately on the second attempt for 12.5.3. The first time I tried flashing the patched boot.img I was greeted with an error.
Hi! I have the latest xiaomi eu weekly installed (21.6.23) as well as unofficial twrp.
I would like to root the phone with magisk, but I don't understand a few things.
Magisk manager require patching the boot.img file from the zip firmware.
I can not just simply install magisk zip file in twrp to root mi11 ultra?
If not, I understand that I have to patch the boot.img- but do I have to do it every time I want to install update of the latest xiaomi.eu firmware?
The second question is about data.
Am I loosing the data by rooting the device by this method?
EDIT:
Ok, I managed. So those are the steps that I did:
I unpacked the boot.img from the xiaomi.eu firmware in my phone. Then I patched the file, and copy this file to the adb installation folder of my pc.
Later it's easy- usb debugging needs to be active in developer options, then connect your phone by the cable to your pc, accept usb debugging in your phone, start CMD in the adb folder in your pc and write the command:
fastboot flash boot_ab nameofthefilewhatmagiskgenerated.img
then
fastboot reboot
And done, root works. Data are untouched.
I did it easier, boot into twrp and flash magisk.zip done
Also I'm on official EEA firmware, with original stock recovery, so doesn't matter what rom you use. On xiaomi EU you don't even need adb because you already have twrp injected
Is there anything to worry about when you update the phone while having root access?
Is the following order right?
1) update Rom over twrp and delete dalvik&cache
2)flash magisk.zip again
3)boot into system
Right ?
I have the latest EU Rom 12.5.7...
Just take this bat with decrypted Star twrp 3.5.1
unzip and klick Install-Star.bat
fastboot boot star.img are the commands in there
xNAPx said:
I did it easier, boot into twrp and flash magisk.zip done
Click to expand...
Click to collapse
how did you get twrp on your mi 11??? I cannot find a working method. I have Global ver
ottjoshua said:
how did you get twrp on your mi 11??? I cannot find a working method. I have Global ver
Click to expand...
Click to collapse

How To Guide Unlock Bootloader/Root Guide Xiaomi 11T Pro - EEA (RKDEUXM)

Disclaimer:
UNLOCKING YOUR BOOTLOADER WILL ERASE EVERYTHING FROM THE PHONE, INCLUDING INTERNAL MEMORY
This guide will walk you through the process of Unlocking your bootloader & rooting your Xiaomi 11T Pro - EEA (RKDEUXM)
Prerequisites:
Backup all the files on phone as we will be resetting the phone to unlock the bootloader.
Install ADB and Fastboot Drivers from here (Select the latest)
Install drivers for Xiaomi 11T Pro
Download MiUnlock Tool
Download Xiaomi ADB/Fastboot Tools
Download patched boot.img for Xiaomi 11T Pro - Global (RKDEUXM)
- RKDEUXM - 12.5.16
- RKDEUXM - 12.5.13 / mirror
- RKDEUXM - 12.5.11
Unlocking the Bootloader:
Go to "About Phone" in Settings and keep tapping on MIUI Version until it shows "You are now a developer"
Navigate to "Additional Settings>Developer Options" and enable "OEM unlocking"
Make sure you have a Mi account and your sim is inserted. In Developer options, select "Add account". Now your Mi Account is linked with your Device.
On your PC, open MiUnlock Tool and login with the same Mi account you have used login to the tool.
Power off your phone and boot into fastboot mode by long pressing the power button + volume down button.
Connect your phone to your PC and click refresh in the MiUnlock Tool
After clicking unlock, it will give your a wait duration. (Generally 168 hours, there's no known way to bypass this wait time) You can continue to use your phone meanwhile, but remember to backup before clicking unlock after your wait time is complete.
After your wait is complete, click unlock and then click reboot. Your phone will now reset and boot up.
YOUR WARRANTY IS NOW VOID!!!
Flashing patched boot.img to root your phone:
Plug the phone to the computer via USB-cable
Turn phone off and go to fastboot
Now at ABD/Fastboot tools, change the tab to Fastboot.
Press Select image and find where you saved my pre-patched boot.img
Change partition to /boot
Press Boot to image and test that it boot correctly.
Turn off phone and go to fastboot mode again
Now press Flash image and you should have fully working magisk. You need to install Magisk Manager, you can do it straight from apps drawer, there should be icon for that.
HUGE THANKS TO:
gaspolo, Tumeez, nousernamesorry
Hello @dlazycoder
I have to fix one thing. My patched boot.img for Xiaomi 11T Pro is only for EEA (Europe & East Asia). It's not for Global ROM and I didn't tested does it even work with Global ROM, because version numbers are different!
EEA = V12.5.13.0.RKDEUXM
Global = V12.5.7.0.RKDMIXM
EDIT: The guide should also mention with big characters that UNLOCKING YOUR BOOTLOADER WILL ERASE EVERYTHING FROM THE PHONE, INCLUDING INTERNAL MEMORY
I hope that you could fix that part from your guide.
- T
Is GPay working fine for you after root (/magisk)?
RKDEUXM is not global, it's EEA, for global it's RKDMIXM. It's best to just download the rom and extract boot.img from it yourself then patch it with magisk APK.
sushuguru said:
RKDEUXM is not global, it's EEA, for global it's RKDMIXM. It's best to just download the rom and extract boot.img from it yourself then patch it with magisk APK.
Click to expand...
Click to collapse
True, thats easy, but then the entire extraction process is so annoyingly complex. Thats the reason I personally posted a flashable boot.img so that inexperienced users could just flash and be on the go.
@dlazycoder , Please change the "global" mentioned in your post to "europe/EEA" other than that, the guide is very clear and easy!
Great job, we need the community for this phone needs to expand. Phone enthusiasts like us won't buy this phone if they realize there isn't much root/custom rom support for this on XDA. Vicious cycle.
Tumeez said:
Hello @dlazycoder
I have to fix one thing. My patched boot.img for Xiaomi 11T Pro is only for EEA (Europe & East Asia). It's not for Global ROM and I didn't tested does it even work with Global ROM, because version numbers are different!
EEA = V12.5.13.0.RKDEUXM
Global = V12.5.7.0.RKDMIXM
EDIT: The guide should also mention with big characters that UNLOCKING YOUR BOOTLOADER WILL ERASE EVERYTHING FROM THE PHONE, INCLUDING INTERNAL MEMORY
I hope that you could fix that part from your guide.
- T
Click to expand...
Click to collapse
sushuguru said:
RKDEUXM is not global, it's EEA, for global it's RKDMIXM. It's best to just download the rom and extract boot.img from it yourself then patch it with magisk APK.
Click to expand...
Click to collapse
nousernamesorry said:
True, thats easy, but then the entire extraction process is so annoyingly complex. Thats the reason I personally posted a flashable boot.img so that inexperienced users could just flash and be on the go.
@dlazycoder , Please change the "global" mentioned in your post to "europe/EEA" other than that, the guide is very clear and easy!
Great job, we need the community for this phone needs to expand. Phone enthusiasts like us won't buy this phone if they realize there isn't much root/custom rom support for this on XDA. Vicious cycle.
Click to expand...
Click to collapse
Corrections have been applied. Thanks!
Pre-Patched boot.img to 12.5.16.0.RKDEUXM (EEA ONLY)
boot.img
SHA-256: A6479CAF5AC0C44035AE5E452491F628D54A72F27D06CB45F557EEBCCF1222FD
Pre-Patched boot.img to 12.5.20.0.RKDEUXM (EEA ONLY)
boot.img
SHA-256: 203C66BA41740EDA86DA5A588CBBEDDA6D58083CAED0B64A7A22584E1BAE55FD
Pre-patched boot.img of 12.5.19.0 of RKDEUXM (Europe)
SHA256: 25c0962cb8f65d0d8e9f23bb4ec4de8a555d54e119dbd1968c5bbf68adc817a5
My phone doesn't give me access to 12.5.20.0
dlazycoder said:
Disclaimer:
UNLOCKING YOUR BOOTLOADER WILL ERASE EVERYTHING FROM THE PHONE, INCLUDING INTERNAL MEMORY
This guide will walk you through the process of Unlocking your bootloader & rooting your Xiaomi 11T Pro - EEA (RKDEUXM)
Prerequisites:
Backup all the files on phone as we will be resetting the phone to unlock the bootloader.
Install ADB and Fastboot Drivers from here (Select the latest)
Install drivers for Xiaomi 11T Pro
Download MiUnlock Tool
Download Xiaomi ADB/Fastboot Tools
Download patched boot.img for Xiaomi 11T Pro - Global (RKDEUXM)
- RKDEUXM - 12.5.16
- RKDEUXM - 12.5.13 / mirror
- RKDEUXM - 12.5.11
Unlocking the Bootloader:
Go to "About Phone" in Settings and keep tapping on MIUI Version until it shows "You are now a developer"
Navigate to "Additional Settings>Developer Options" and enable "OEM unlocking"
Make sure you have a Mi account and your sim is inserted. In Developer options, select "Add account". Now your Mi Account is linked with your Device.
On your PC, open MiUnlock Tool and login with the same Mi account you have used login to the tool.
Power off your phone and boot into fastboot mode by long pressing the power button + volume down button.
Connect your phone to your PC and click refresh in the MiUnlock Tool
After clicking unlock, it will give your a wait duration. (Generally 168 hours, there's no known way to bypass this wait time) You can continue to use your phone meanwhile, but remember to backup before clicking unlock after your wait time is complete.
After your wait is complete, click unlock and then click reboot. Your phone will now reset and boot up.
YOUR WARRANTY IS NOW VOID!!!
Flashing patched boot.img to root your phone:
Plug the phone to the computer via USB-cable
Turn phone off and go to fastboot
Now at ABD/Fastboot tools, change the tab to Fastboot.
Press Select image and find where you saved my pre-patched boot.img
Change partition to /boot
Press Boot to image and test that it boot correctly.
Turn off phone and go to fastboot mode again
Now press Flash image and you should have fully working magisk. You need to install Magisk Manager, you can do it straight from apps drawer, there should be icon for that.
HUGE THANKS TO:
gaspolo, Tumeez, nousernamesorry
Click to expand...
Click to collapse
Help us to root xiaomi 11t (agate)
Hi
I have 12.5.19.0 of RKDEUXM (Europe). OEM unlocking is allow but I can't find "add account". Why ?
Thx
Edit :
I've found. In developer options, Mi Unlock status, follow the instructions and click on "add account and device".
Now I have to wait 168 hors
Is there a Mi Unlock tool for Linux?
lethallunatic said:
Is there a Mi Unlock tool for Linux?
Click to expand...
Click to collapse
Check this

Root Without Dataloss [Bootloader Unlocked][Recovery Not Flashed]

Hey folk, My redmi k20 pro running on MIUI 12.5.1. I have unlocked bootloader succesfully but at that time i have not flashed twrp recovery. Now, i have almost 80 GB full storage and i don't want to backup. Is there any ways that i can flash recevery without data lost and enable root access to my device.
Goal: Enable magisk to make device certified and install MIUI launcher instead of poco launcher.
A AJAY said:
Hey folk, My redmi k20 pro running on MIUI 12.5.1. I have unlocked bootloader succesfully but at that time i have not flashed twrp recovery. Now, i have almost 80 GB full storage and i don't want to backup. Is there any ways that i can flash recevery without data lost and enable root access to my device.
Goal: Enable magisk to make device certified and install MIUI launcher instead of poco launcher.
Click to expand...
Click to collapse
TWRP flashes to recovery partition, while your settings, apps, documents, photos are on Data and Internal memory - hence by properly installing TWRP you will not affect your data (sirorryy, I will not teach/guide/assist how to flash TWRP, guides are available everywhere, they are mostly common to the various Xiaomi phones - and I don't have your phone anymore)
Also, Magisk patches to boot partition, Magisk data etc reside on data partition - hence it is again independent of flashing TWRP to recovery
Btw, you actually don't need TWRP or custom recovery to install Magisk.
The recommended method is to patch your boot.img and to flash the patched boot img through Fastboot.
Again, guides are available on XDA and elsewhere, incl. the official Magisk documentation on Github.
Although, installing Magisk should still work through TWRP as long as there is a compatible TWRP/custom recovery for the given device (seek on TWRP.me)
Advice: Please go through the Guides section and Questions section and read/study about installing custom recovery (for your device), Magisk etc.
That is also a general rule on XDA - search, read, study before asking (users usually don't have time and energy to guide newbies through the procedures that are already documented - and questions like here do fall into that cathegory)

Question Has anyone tried to flash a gsi

Hi all,
Normally I'll just flash gsi on my new phone but this one doesn't have a restore tool. So did anyone flash one successfully?
That's exactly the reason I didn't try it. No MSM tool yet (only fastbootd enhance)
You should be able to flash one, recovery should be able to recover your device as you're only affecting system.
That being said. You'll probably encounter issues with a GSI anyway, probably best to wait for a custom ROM to appear
you can just try a treble gsi with DSU Sideloader first, no need to flash anything.
If it works fine then flash via fastboot or something.
Additionally, DSU Sideloader requires unlocked bootloader and root(or adb command from PC)
GitHub - VegaBobo/DSU-Sideloader: A simple app made to help users easily install GSIs via DSU's Android feature.
A simple app made to help users easily install GSIs via DSU's Android feature. - GitHub - VegaBobo/DSU-Sideloader: A simple app made to help users easily install GSIs via DSU's Android feat...
github.com

Question attempt to root on POCO M3 Pro 5G without TWRP

Hello to all,
I tried 1 year ago to root my POCO M3 Pro 5G but could not succeed to install TWRP unofficial for this model because of the problem of non-existent recovery partition (see https://forum.xda-developers.com/t/...oco-m3-pro-5g-redmi-note-10-5g.4474375/page-2) In short I bricked my device several times and then I had a boot with a weird screen that disappeared when I updated to MIUI 13.
Today I am on Android 12 MIUI global 13.0.3 and I would like to install magisk manager without the help of TWRP and I have the default recovery of MIUI with which I can not install anything.
I had also followed the procedure described https://forum.xda-developers.com/t/...urself-and-optionnal-debloat-privacy.4337693/ but without success impossible to flash on A or B : error messages : too many links, the partition does not exist (see screen shot in PJ), no emulator etc
The bootloader is still unlocked
I would like to root my phone and use Magisk manager modules such as Skvalex without damage or install root apk with spyware and trojan.
Do you have any solutions for me?
Thank you very much for your answers.
ROOT GAINED !!!!
THIS METHOD WORKS on both: POCO M3 Pro / Redmi Note 10 5G hey guys.. wonderful news.. been trying here and there and IT WORKS FINALLY i gained root of POCO m3 Pro 5G ! i'll write in steps how it works and post all files i've been using...
forum.xda-developers.com
Ok tx I'll try this method and let you know
install magisk via fastboot is the easiest way for rooting. and more safe than using custom recovery. follow the guides with more attention. bad twrp can damage bootloader. bad flash of stock can damege device
i think the twrp have broked your boot, and i suppose u have flashed a wrong stock rom.
before made other damage, if can enter into fastboot: be sure to download right firmware. and flash it without relock option. if u dont do this, the risk is a serious hard brick. for who is not able to do a simply procedure like rooting, an hard brick is impossible to repair . be carefull
I have rooted my phone with magisk without any recovery, you just have to modify boot.img and flash it using fastboot.
I followed this method- https://www.getdroidtips.com/root-poco-m3-pro-5g/
Good evening
Thanks for your 2 answers.
I finally succeeded in laboriously rooting and patching on A and B but the modops on https://www.getdroidtips.com/root-poco-m3-pro-5g/ are incomplete and/or inaccurate. For example it is necessary to specify that it is necessary to download not the recovery version of the ROM but the fastboot version which is not underlined in the text of the link and other details of this type which avoid wasting time other example to find in the repertory the file of the patch.img even not hidden difficult to find even with the way and invisible via the directory of windows.
I have the root and I have installed modules on Magisk manager finally after the first attempt 12 months ago.
Cheers

Categories

Resources