[All-In-One] Xiaomi Mi Mix 2 (chiron): Unlock Bootloader, Flash TWRP, Root, Flash ROM - Xiaomi Mi Mix 2 Guides, News, & Discussion

Dear Mi Mix 2 user,
I'm not responsible if anything happens to your device. If you execute this procedure properly then you shouldn't face any problems. I tried this procedure on several Mi Mix 2 and every time it worked flawlessly. I used a computer with Windows 10.
Before you proceed please back up all your important data and make sure that your phone battery is charged >80%!!!
A. Prerequisites:
1. Disable driver signature enforcement in Windows
How to do this pls read here: http://en.miui.com/thread-237673-1-1.html
2. Install ADB and Fastboot tools with drivers on Windows
How to do this pls read here: https://forum.xda-developers.com/showthread.php?t=2588979
3. Enable "OEM unlocking" and "USB debugging" in your device
a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version seven times
b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"
4. Check if your bootloader is unlocked
a. After successful installation of "ADB and Fastboot" enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable).
b. Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
c. Enter the terminal command in command line: >>fastboot devices<<
If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If this happens please reinstall your drivers from Point A. 2. or try these drivers here:
http://xiaomiadvices.com/download-xiaomi-usb-drivers/
d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<
If your bootloader is locked, you'll get the following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.063s
………………………………………………………………………
If your bootloader is unlocked, you'll get following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.053s]
finished. total time: 0.055s
………………………………………………………………………
5. Request Permission from Xiaomi to Unlock the Bootloader
a. Create a Mi Account: https://account.xiaomi.com/pass/register
b. Sign to Xiaomi and apply for unlocking http://en.miui.com/unlock
You have to give a reason for requesting to unlock the bootloader. I gave following reason on my request:
"I purchased my Mi Mix 2 from the vendor xxx and they have installed a fake (custom) rom. I want to install an original rom from Xiaomi. So please approve my request to unlock the bootloader."
c. Wait for permission. I have 5 different accounts approved by Xiaomi and the longest I had to wait was 1 day for the approval of each account. Most of the users are reporting the same, however very few users are reporting a waiting time of up to 10 days . If your request is approved then you should receive a message with following content:
"You've been granted the permission to unlock your device (Mi Account xxxx). Donload Mi Unlock Tool At http://en.miui.com/unlock"
6. Connect your Mi Account to your Device
Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device".
In case you cannot connect your Mi Account to your device pls try one of these solutions:
a. Install the App FlyVPN and connect it to one of the Chinese servers and then try to connect your Mi Account to your device.
If this doesn't work then
b. Download the firmware Developer Version for Xiaomi Mi Mix 2 here:
http://en.miui.com/download-334.html
+ Put the firmware into internal memory of the device
+ Go to: Settings/About phone/System update. On the upper right corner there are three points, click them, select "Choose update package", select "File Manager" and choose the Developer Version package you just downloaded on your internal memory and then press OK. After the firmware installation try to connect your Mi Account to your device.
B: Unlock the Bootloader
1. Download Mi Unlock Tool here: http://en.miui.com/unlock
2. Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
3. Start the Mi Unlock Tool
4. Enter your eMail and your password of your Mi Account
5 Connect you device to your computer and start the unlock procedure
6. Follow the unlock tool instructions until the unlock procedure is finished
7. Reboot your device
P.S.: In case you get the message, that the unlocking can be done after 72h then you have to wait for that time to pass.
C: Install the TWRP Recovery
1. Your bootloader must be unlocked
2. Enter fastboot mode by holding together "Volume Down + Power"
3. Download "twrp-3.2.1-0-chiron.img" from here: https://twrp.me/xiaomi/xiaomimimix2.html and put it into a dedicated folder in your computer.
4. Go to the folder where you have put the twrp-file. Now open a command window inside that folder. To do that hold together "Shift + Right click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
5. Enter the terminal command in command line: >>fastboot flash recovery twrp-3.2.1-0-chiron.img <<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery TWRP!
6. Boot your device into recovery (3 possible methods)
+ by entering terminal command in command line: >>fastboot boot twrp-3.2.1-0-chiron.img <<, or
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
If you only want to root your smartphone then please continue to point E.
If you want to install a custom firmware then please continue to point F.
E. Root Your Smartphone
1. Donwload latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
2. Put Magisk into internal memory of your smartphone or into on-the-go memory stick
3. Flash Magisk
4. Restart your smartphone
F. Install the Custom Firmware
1. Download the desired ROM
a. Lineage OS
https://download.lineageos.org/chiron
b. AICP
http://dwnld.aicp-rom.com/?device=chiron
c. OMNI
https://dl.omnirom.org/chiron/
2. (in case you want to have root on your device) Download "addonsu-15.1-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or for other ROMs the latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory
3. Download Google Apps 8.1, ARM64, Pico, Nano etc. at www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
4. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
6. Go back to main TWRP screen and install the firmware, install Google Apps, install " addonsu-15.1-arm64-signed.zip " (in case of Lineage) or the latest Magisk (in case of other firmware).
7. Reboot
That's it, you are done!
If my guide helped you please click "thanks" and enjoy your phone. :fingers-crossed:

This is very helpfull, thank you.
All in one palce.

In my case, I had to use a VPN service (Chinese server) to enable OEM unlocking!

I followed all those steps to unlock the phone, but when i open the unlock tool and put the phone on fast boot, the program dont recognise the fone and the unlock button remains grey..
Any idea how to fix this?

vvaz said:
I followed all those steps to unlock the phone, but when i open the unlock tool and put the phone on fast boot, the program dont recognise the fone and the unlock button remains grey..
Any idea how to fix this?
Click to expand...
Click to collapse
Try a different computer or running the phone through an external USB hub.
I've found that the app had issues detecting my phone in fastboot mode unless I ran it through an external hub.

MrColdbird said:
Try a different computer or running the phone through an external USB hub.
I've found that the app had issues detecting my phone in fastboot mode unless I ran it through an external hub.
Click to expand...
Click to collapse
I tried with an older version of the unlock tool, and now i got stuck at 50% could not verify...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

vvaz said:
I tried with an older version of the unlock tool, and now i got stuck at 50% could not verify...
Click to expand...
Click to collapse
If you have received a positive approval for your Mi account and your account has been connected to your smartphone for more than 72h and your computer recognises your smartphone then pls try this unlock tool (miflash_unlock-en-2.2.624.14).
https://drive.google.com/open?id=123TJ4SkBSA0JWNYjQEatd8NIaZAQYgar
With this tool I have unlocked at least 40 Xiaomi smartphones of various models (Redmi 4x, Redmi Note 4, Redmi 5, Redmi 5 Plus, Redmi Note 5, Mi6, Mi Mix2 etc.). The last Mi Mix 2 that I unlocked with this tool was 3 days ago.

senerex said:
If you have received a positive approval for your Mi account and your account has been connected to your smartphone for more than 72h and your computer recognises your smartphone then pls try this unlock tool (miflash_unlock-en-2.2.624.14).
https://drive.google.com/open?id=123TJ4SkBSA0JWNYjQEatd8NIaZAQYgar
With this tool I have unlocked at least 40 Xiaomi smartphones of various models (Redmi 4x, Redmi Note 4, Redmi 5, Redmi 5 Plus, Redmi Note 5, Mi6, Mi Mix2 etc.). The last Mi Mix 2 that I unlocked with this tool was 3 days ago.
Click to expand...
Click to collapse
With that version it wont recognize the phone.

vvaz said:
With that version it wont recognize the phone.
Click to expand...
Click to collapse
Have you checked point A.4.c.? Can you see your smartphone in your computer?

senerex said:
Have you checked point A.4.c.? Can you see your smartphone in your computer?
Click to expand...
Click to collapse
I see this:

vvaz said:
I see this:
Click to expand...
Click to collapse
Yes, you can see your device. If your smartphone has been connencted to your Mi Account for more than 72h then pls try some other (maybe chinese) unlock tool or other computer.

senerex said:
Yes, you can see your device. If your smartphone has been connencted to your Mi Account for more than 72h then pls try some other (maybe chinese) unlock tool or other computer.
Click to expand...
Click to collapse
Ok i had to format the PC and when i did it i tried again to unlock the phone and it worked fine with the unlock tool you linked. :good:

After 72 Hours still couldn't Verify
Hi Guys so I received my mi mix 2 72 hours ago, bound my account to the phone in dev options, logged in online to miui, cloud etc and on the phone , enabled usb debuging
Used MiFlash latest version 2.8.3 - Then i saw theres a new 3.3.4 Version - Signed in Clicked unlock went all the way to 100% then said wait 72 Hours...... Ok now ive waited
Been trying and 20 times im getting " Couldn't Verify Device' Unknown Error (-1) "
Im used to flashing and unlocked and this is first time a xiaomi device has done this, Ive checked and adb devices are working.... BUT when i boot to fastboot and fastboot devices its blank , ive installed the ADB drivers and the xiaomi usb drivers over and over again... Windows is in test mode, Windows 10 64bit test mode.
Fast boot devices is always blank...... Any Ideas.........Oh and i was on global stable, now ive updated to the latest global Dev 8.0 rom from miui website - Still no luck

Ok so ive narrowed it down to the USB-C cable, is not keeping fastboot active
Ive just tried it with a redmi 5 device with old micro usb and fastboot devces gets picked up every attempt....
My mi mix 2 detects fastboot for a few seconds then seems to go off..... Very strange and also annoying

zerodi said:
Fast boot devices is always blank...... Any Ideas.........Oh and i was on global stable, now ive updated to the latest global Dev 8.0 rom from miui website - Still no luck
Click to expand...
Click to collapse
Original cable (if it is not damaged) should actually keep fastboot active. Strange indeed. Pls try with a different USB-C cable.

senerex said:
Original cable (if it is not damaged) should actually keep fastboot active. Strange indeed. Pls try with a different USB-C cable.
Click to expand...
Click to collapse
I've tried with a USB c cable from my Lumia 950 and another pc but no luck
I've ordered a USB to micro USB adapter , maybe then u can try other cables
Thing is , when I first received the mi mix 2 I got to 100% on mi unlock then it said wait 72 hours , if it's under 72 hours will it give this error ??

Ok so I installed windows again fresh and I unlocked the device BUT when I check in unlock status is still says DEVICE IS LOCKED ! ? How can that be.... Ive tried 2x
nightmare... and now fast devices is f***king blank again !
I have tried several cables even just brought a micro usb - usb c adaptor
There is a problem when I start the software MiFlash Unlock - It Cuts my fastboot connection, I have no idea why.

zerodi said:
Ok so I installed windows again fresh and I unlocked the device BUT when I check in unlock status is still says DEVICE IS LOCKED ! ? How can that be.... Ive tried 2x
nightmare... and now fast devices is f***king blank again !
I have tried several cables even just brought a micro usb - usb c adaptor
There is a problem when I start the software MiFlash Unlock - It Cuts my fastboot connection, I have no idea why.
Click to expand...
Click to collapse
Are you running MIFlash Unlock in administrator mode?

jhs39 said:
Are you running MIFlash Unlock in administrator mode?
Click to expand...
Click to collapse
I've done both , with admin rights and without , no success ... Fastboot devices just stops working

zerodi said:
I've done both , with admin rights and without , no success ... Fastboot devices just stops working
Click to expand...
Click to collapse
I'm sorry to hear that you are still not succesfull in unlocking the bootloader. It seems to me that something is broken in your firmware. Then maybe the right solution would be to start from zero: flash the original Xiaomi firmware in fastboot mode (rom here: http://en.miui.com/a-234.html) via MIUI ROM Flashing Tool and then unlock bootloader. Before you do this pls save your data and charge your battery +80%.

Related

How to intall global rom with locked bootloader ?

Hi everyone,i have purchased xiaomi mi5 from AliExpress and i told the seller to not open the box,and thats what he did,he didnt open the box,so the phone came with stock Chinese stable miui 7.something,and when i updated,it updated directly to miui 8.1,no updated in between, straight to miui 8.1,but i want to install the global stable rom,the bootloader is locked,i have requested to unlock it but so far no news,i tried to boot in edl mode by holding the vol up,vol down and power and cable in at the same time and it boots in some mode but idk if its edl,as far as i know edl mode is with black screen with "Qualcomm HS-USB QDloader 9008" on the pc com ports,but in my case there is no such thing,and there is black and white phone with usb connect on the phone screen,but nothing on the pc,do i have problems with drivers or i dont enter edl at all ? and do any of you guys now any other method to install the global rom except the other one with the engineering cable ?, I really need your help guys please help me if you can,thank you in advance and have a great day
I've successfully updated my mi5 to global stable using the updater app even my bootloader is locked..however, when I got my mi5 2weeks it's on miui 8 global beta(dev rom) not chinese. Not sure if it will work on your device. Here's what I did:
1. Download global stable from xiaomi's official page
2. Reset the phone. (Settings > Additional settings > Back up & reset)
3. Transfer the zip file to phone (doesn't matter which directory)
4. Connect to a strong internet connection (this is important to verify the update package)
5. Open updater app, tap menu (upper right corner) then tap choose update package
6. Locate zip file and it will proceed with decryption process
Note: You need to be connected to a strong internet connection all through out the process or the verification and decryption will fail and get "can't verify update" error
Hope this helps. ?
Before and after, locked bootloader
viking_kong16 said:
Before and after, locked bootloader
Click to expand...
Click to collapse
I will try first what you tell me,if that doesn't work than i will try installing global beta if that works than global stable,thank you very much
No i didnt work with both beta and stable,now i will try to flash Chinese beta and after that i will try to install global beta or stable,i hope that works because i am out of ideas.
Screenshots:
Nope,nothing it didnt work unable to install global rom stable or beta,looks like i will wait for the bootloader unlock if any message comes at all i just hope they will let me unlock it,they definitely need to change the way bootloader is unlocked.
Coz you'r phone still has miui 7 (don't know in miui 8 coz never try it)..so i think you can try go into edl mode by adb command while in home screen.. "adb reboot edl" (don't forget to activate usb debugging in developer option first)
JJeamy said:
Coz you'r phone still has miui 7 (don't know in miui 8 coz never try it)..so i think you can try go into edl mode by adb command while in home screen.. "adb reboot edl" (don't forget to activate usb debugging in developer option first)
Click to expand...
Click to collapse
Thx but it didnt work,the phone just rebooted,but now i have another problem,i installed the chines beta rom and now i am unable to get back to chines stable, i have tried from mi pc suit,the updater app,restoring the phone and trying to change it,nothing work have no idea what to do now,its the latest chines beta rom on android 7.0,i have no idea why it dont want to go to stable,pls help anyone if you know how PLEASE.
vlatko98 said:
Thx but it didnt work,the phone just rebooted,but now i have another problem,i installed the chines beta rom and now i am unable to get back to chines stable, i have tried from mi pc suit,the updater app,restoring the phone and trying to change it,nothing work have no idea what to do now,its the latest chines beta rom on android 7.0,i have no idea why it dont want to go to stable,pls help anyone if you know how PLEASE.
Click to expand...
Click to collapse
Right now with my mi5 with xiaomi.eu 8.1.9.0 rom that's based 7.0..i've try it to go into edl mode through fastboot mode by command "fastboot oem edl", and it's work..you can try it..if your pc success detecting you mi5 as qualcom HS-USB then try flashing miui rom that you want with miflash tool.
Firstly "adb reboot bootloader" to go into fastboot mode..then type "fastboot oem edl"
Hope it's help.
JJeamy said:
Right now with my mi5 with xiaomi.eu 8.1.9.0 rom that's based 7.0..i've try it to go into edl mode through fastboot mode by command "fastboot oem edl", and it's work..you can try it..if your pc success detecting you mi5 as qualcom HS-USB then try flashing miui rom that you want with miflash tool.
Firstly "adb reboot bootloader" to go into fastboot mode..then type "fastboot oem edl"
Hope it's help.
Click to expand...
Click to collapse
thank you for trying to help me but that didnt work as well this is what it says:
"FAILED (remote: Need to unlock the device to use this command)
finished. total time: 0.014s"
is there any method like this one:https://youtu.be/hmdrj4uX7gY for usb type c cable,will this method work with usb type c,should i start cutting my cable ?
vlatko98 said:
is there any method like this one:https://youtu.be/hmdrj4uX7gY for usb type c cable,will this method work with usb type c,should i start cutting my cable ?
Click to expand...
Click to collapse
You don't need cutting you original cable..you can buy it like this one in aliexpress here , this already has converter too for usb type C
Sorry..i don't realize that fastboot oem edl just for unlocked bootloader..coz mine already unlocked, but i have some another way before you using deep flash cable to go into edl mode..but i can't testing it..coz mine already unlocked.
- I've read your first post about using hardware key to go into edl mode by pressing and hold vol up + vol down +(you said you're pressing power too, i think in this step you're wrong) then connect the usb cable..what i know..the right instruction is , pressing and hold vol up and down at the same time (without pressing power button)..then connect it via usb cable to your pc..then you can see in your device manager that success detecting as qualcom or not.
- In xiaomi redmi note 3 device you can go into edl mode through fastboot mode with command "fastboot reboot-edl", but this command only can apply with minimal adb that are already modified, you can download it from here
Are you sure @vlatko98 that your request to open bootloader is not granted? I made the request, waited for SMS for two weeks but nothing... So i navigated again to en.miui.com/unlock, logged in and I was able to download the mi unlock app. And the unlocking process was successfull.
If you havent, check if you can download unlock app and try to unlock your device with it.
How long ago have you made your request for unlock?
JJeamy said:
You don't need cutting you original cable..you can buy it like this one in aliexpress here , this already has converter too for usb type C
Sorry..i don't realize that fastboot oem edl just for unlocked bootloader..coz mine already unlocked, but i have some another way before you using deep flash cable to go into edl mode..but i can't testing it..coz mine already unlocked.
- I've read your first post about using hardware key to go into edl mode by pressing and hold vol up + vol down +(you said you're pressing power too, i think in this step you're wrong) then connect the usb cable..what i know..the right instruction is , pressing and hold vol up and down at the same time (without pressing power button)..then connect it via usb cable to your pc..then you can see in your device manager that success detecting as qualcom or not.
- In xiaomi redmi note 3 device you can go into edl mode through fastboot mode with command "fastboot reboot-edl", but this command only can apply with minimal adb that are already modified, you can download it from here
Click to expand...
Click to collapse
Sorry i didnt mention that i have tried with the vol buttons only as well,it didnt work,the phone boot up to recovery,same as holding the power button,soon i am trying with costume deep flash cable,there is no need to cut anything just to shourt ground and data from the usb connector that connects to the pc,i just dont understand why xiaomi if it plans to make global rom why not make it simple to change it,why users have to figure things out,we buy a phone to use it not to experiment with it,you hear me xiaomi ?
btw thx for helping me out.
Nbkdnssr said:
Are you sure @vlatko98 that your request to open bootloader is not granted? I made the request, waited for SMS for two weeks but nothing... So i navigated again to en.miui.com/unlock, logged in and I was able to download the mi unlock app. And the unlocking process was successfull.
If you havent, check if you can download unlock app and try to unlock your device with it.
How long ago have you made your request for unlock?
Click to expand...
Click to collapse
well thats where i am super unlucky,i recived an sms saying that my request to unlock is granted,and when i head over to unlock page there was nothing to download,just to apply for unlock again like the first time i applyed,but i downloaded mi unlock tool from other place,logged in and it says YOUR DEVICE IS NOT SUPPORT so i reapplyed at mi unlock last night, so i will see what will happen,yes i double check the sms it say approved,yes i login with the same account at mi unlock and account noomber from the sms matched with the account nomber from my account.
vlatko98 said:
well thats where i am super unlucky,i recived an sms saying that my request to unlock is granted,and when i head over to unlock page there was nothing to download,just to apply for unlock again like the first time i applyed,but i downloaded mi unlock tool from other place,logged in and it says YOUR DEVICE IS NOT SUPPORT so i reapplyed at mi unlock last night, so i will see what will happen,yes i double check the sms it say approved,yes i login with the same account at mi unlock and account noomber from the sms matched with the account nomber from my account.
Click to expand...
Click to collapse
If you already received sms that unlock already granted from xiaomi..there's another problem that sometimes your account not already correctly sync with xiaomi server..even already sync correctly still can't unlock flawlessly..
You can try following step and trying to unlock again and again..but just this time..just trying every day..if this day doesn't success too you can try it again tomorrow.
To make sure and minimize that everything is correctly:
- Make sure you're already at the latest china developer / beta rom..
- Enabling find device status at mi cloud in your phone..also just try login at i.mi.com (just this time try login with your acct number id) and activate find device too to make sure everything is sync correctly.
- Activate usb debugging and unlock in developer option in your phone..
- Trying unlock again with mi unlock..just this time try login with your acct number id too.
Hope it's help..and your phone can soon unlocked..
JJeamy said:
If you already received sms that unlock already granted from xiaomi..there's another problem that sometimes your account not already correctly sync with xiaomi server..even already sync correctly still can't unlock flawlessly..
You can try following step and trying to unlock again and again..but just this time..just trying every day..if this day doesn't success too you can try it again tomorrow.
To make sure and minimize that everything is correctly:
- Make sure you're already at the latest china developer / beta rom..
- Enabling find device status at mi cloud in your phone..also just try login at i.mi.com (just this time try login with your acct number id) and activate find device too to make sure everything is sync correctly.
- Activate usb debugging and unlock in developer option in your phone..
- Trying unlock again with mi unlock..just this time try login with your acct number id too.
Hope it's help..and your phone can soon unlocked..
Click to expand...
Click to collapse
i tried all you tell me,mi unlock still says “your device is not supported by mi unlock” but i dont understand why i was able to make another request at mi unlock website,like the first time i did that,i requested again 2 days ago,i will see what will happen now.
I received another SMS and unlocked the bootloader successfully and I installed global stable ROM, thanks for helping guys )))

Flash Official ROM A2

Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Joaosacramento said:
Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Click to expand...
Click to collapse
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
daitalos said:
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
Click to expand...
Click to collapse
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Joaosacramento said:
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Click to expand...
Click to collapse
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Just unlock bootloader(critical too) and use miflash
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
You need to do an unlock of critical partitions - "fastboot flashing unlock_critical"
daitalos said:
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Click to expand...
Click to collapse
Hey! It worked, thank you very much!
Face_11 said:
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
daitalos said:
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
Click to expand...
Click to collapse
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
yes it's difficult .... I understand
edl maybe work, but I'm not sure...maybe if you go to a repair shop is a better solution
(see & here : https://forum.xda-developers.com/mi-a2/help/edl-deep-flash-cable-t3828732 )
https://youtu.be/n_7RVmW2Rvs
https://forum.xda-developers.com/showpost.php?p=77327325&postcount=2
Gl
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
I would try a wipe from the recovery but if that doesnt work then just test point the phone. It isnt that hard, I had to do it myself today because of a soft brick. You just need a T3 screwdriver really. Take out the 2 bottom screws. Take a razor and slide it under the corner of the display and lift it enough the get a credit card in there. Then just work around and you should be able to get the screen off. Take the small metal plate off just above the battery and disconnect the battery and the connector on the right. There will be the test points, short them out, connect the phone to the pc(you can stop shorting out the points when it gets detected) and you have like 10-15secs to start flashing the phone in miflash(obviously you need to have the drivers already set up).
I have same problem with xiaomi mi a2 which had bootloop. Was not able to start device at all so no oem unloco no developer options and no usb debug. It was possible only adb sideload and fastboot. Adb sideload did nothing. I was trying to flash with adb sideload but it stops at 47% with message 1.00 x. Did try several roms with same results. Then i tried fastboot options. Falied to unlock not allowed. Itsl was impossible to get even into phone to activate developer options so i can activate oem unlock and the rest. I tried edl mode which did flash but then i got error message in bootloader it failed to mount system etc. Then i tried mi x6 rom to convert phone to another which doesnt have usual recovery mode but a stripped oem recovery mode. Now when u go back to mi a2 rom its bricked so there is no option of adb at all now. I tried to use mi x6 mi assistant option but app wont recognize usb connection it shows try normal mode then switch. When activating mi assistant on phone it does recognize rom version from recovefy flash in mi assistant app but when it downloads update rom version it cant continue. With pixel you can do anything with adb and it is so easy but xiaomi sucks big time. You cant do anything. Fastboot flashing unlock critical and fastboot oem unlock gets error failed. Flashing not allowed. U tried diferent cables but no luck. So now what? Thats why i hate adb. On samsung odin you can do impossible possible. Even with sp tools on mtk. Even boxes works flawlessly but xiaomi system is just thr worse. It doesnt matter if you get soemthing lost there is always a solution to other phones.
After having device sit as a paper weight for a few months, i broke down and ordered a phone repair kit. Opened device up and flashed via test point method. Worked Flawless. Time to enable OEM unlock so i don't have to open it up again. Thanks to community for all the help.
Use cmd
- go to fastboot then "fastboot oem unlock"
- go to fastboot again "fastboot flashing unlock_critical"
Flash with mi flash
Done
Just stumbled upon this and while may be 18 months too late, here's the step by step process to flash ROM on MI A2 that's giving error "Flash is not allowed in Lock State":
1) switch off device
2) enter fastbood mode (press hold power+vol down few seconds)
3) connect device with laptop
4) install and open adb folder on laptop (https://forum.xda-developers.com/showthread.php?t=2588979)
5) within adb folder -- shift + right click = open powershell here
6) fastboot flashing unlock_critical
7) step #6 may be pointless if phone is bricked but do it anyway
8) fastboot oem edl
9) find and download latest stock rom for your device (FASTBOOT version). It'll be .tgz file
10) extract the image folder from within (would be the same name as .tgz file)
11) open miflash (coudln't find link but look it up, it's easy)
12 select the image folder you extracted in step #10
13) click refresh. device name appear means it's recognized
14) from bottom of mi flash tool select whatever you want. I do "clean all"
15) flash (top right mi flash tool)
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
Flashing is not allowed in lock state
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
IamUmesh said:
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
Click to expand...
Click to collapse
you need to open phone with screwdriver & do the test point ..search for video on YouTube...then EDL deepflash state you can use miflash to put back OFFICIAL only rom to device.

[All-in-One] Redmi Note 7 (lavender): Unlock Bootloader, Flash TWRP, Root, Flash ROM

Dear Redmi Note 7 user,
I'm not responsible if anything happens to your device. If you execute these AiO procedures properly then you shouldn't face any problems.
Before you proceed please back up all your important data and make sure that your phone battery is charged >80%!
A. Prerequisites:
1. Disable driver signature enforcement in Windows
If your computer doesn’t recognize Xiaomi drivers then please disable driver signature enforcement. How to do this please read here: http://en.miui.com/thread-237673-1-1.html
2. Install ADB and Fastboot tools with drivers on Windows
How to do this please read here: https://forum.xda-developers.com/showthread.php?t=2588979
Restart your computer.
3. Enable "OEM unlocking" and "USB debugging" in your device
a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version seven times
b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"
4. Check if your bootloader is locked
a. After successful installation of "ADB and Fastboot" enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable).
b. Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
c. Enter the terminal command in command line: >>fastboot devices<<
If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If this happens please reinstall your drivers from Point A. 2. or try these drivers here:
http://xiaomiadvices.com/download-xiaomi-usb-drivers/
d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<
If your bootloader is locked, you'll get the following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.063s
………………………………………………………………………
If your bootloader is unlocked, you'll get following status (or something similar):
…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.053s]
finished. total time: 0.055s
………………………………………………………………………
5. Request Permission from Xiaomi to Unlock the Bootloader
a. Create a Mi Account: https://global.account.xiaomi.com/pass/register
b. Sign to Xiaomi and apply for unlocking https://en.miui.com/unlock/
6. Connect your Mi Account to your Device
Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device"
B: Unlock the Bootloader
Unlocking the bootloader will erase all your data! So please back up your data before you unlock the bootloader!
1. You must enable "OEM unlocking" and "USB debugging" as per point A. 3.
2. You must connect your Mi Account with your device as per point A. 6.
3. Download Mi Unlock Tool here: https://en.miui.com/unlock/
4. Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
5. Start the Mi Unlock Tool
6. Enter your eMail and your password of your Mi Account
7. Connect you device to your computer and start the unlock procedure
8. Follow the unlock tool instructions until the unlock procedure is finished
9. Reboot your device
If you get the message, that the unlocking can be done after 72h or 360h or 720h etc., then you have to wait for that time to pass.
C: Install the TWRP Recovery
a. Your bootloader must be unlocked
b. The official twrp can be downloaded here: https://twrp.me/xiaomi/xiaomiredminote7.html. However the official twrp for Redmi Note 7 is not yet available. For the time being please download the latest unofficial "twrp-x.x.x.img" from here https://forum.xda-developers.com/re...overy-unofficial-twrp-touch-recovery-t3921637 and put it into a dedicated folder in your computer and rename it to "twrp".
c. Go to the folder where you have put the twrp-file. Now open a command window inside that folder. To do that hold together "Shift + Right click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here"
d. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
e. Enter the terminal command in command line: >>fastboot flash recovery twrp.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery twrp!
f. Boot your device into recovery (3 possible methods)
+ by entering terminal command in command line: >>fastboot boot twrp.img<<, or
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
If you only want to root your smartphone, then please continue to point D
If you want to install a custom rom, then please continue to point E
D. Root Your Smartphone
a. Download latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and put it into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
b. In the main twrp screen please click "Install", search for the Magisk-*zip*-file and flash it
c. Restart your smartphone
E. Install A Custom Rom
1. Download the desired rom and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick:
a. Lineage
The official Lineage for Redmi Note 7 is not yet available, but when it becomes available you can download it from here:
https://download.lineageos.org/lavender
Lineage roms don't have Google Apps integrated in them.
b. Resurrection Remix
Please download the official Resurrection Remix for Redmi Note 7 (lavender) from here:
https://get.resurrectionremix.com/?dir=lavender
Resurrection Remix roms don't have Google Apps integrated in them.
c. ATOM
Please download the official ATOM for Redmi Note 7 (lavender) from here:
https://sourceforge.net/projects/atom-os-project/files/Ten/lavender/
ATOM roms usually don't have Google Apps integrated in them but the developer of AOSP Extended for lavender is offering both versions, with and without Google Apps.
d. Xiaomi.EU
Download the latest rom (weekly or stable) from here: https://xiaomi.eu/community/
Global Xiaomi.EU roms already have Google Apps integrated in them.
2. (in case you want to have root on your device) Download "addonsu-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or (for other Roms) the latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick.
3. If the rom doesn’t contain Google Apps then download Google Apps ARM64, Mini, Pico, Nano etc. from here www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
4. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
6. Go back to main twrp screen and install the Rom, install Google Apps (if the Rom doesn’t contain them), install "addonsu-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other Roms).
7. Reboot. That's it, you are done.
F. Returning To The Original Xiaomi Rom, MIUI
for those users who would like to return to original Xiaomi rom MIUI, below the flashing instructions and download links for the Fastboot and Recovery roms:
1. Fastboot:
a. Download latest fastboot rom (*.tgz*-file) from here: https://c.mi.com/oc/miuidownload/detail?guide=2
b. Flash the rom as per instructions explained in the a.m. link.
2. Recovery:
a. Download latest recovery rom (*.zip*-file) from here: http://c.mi.com/oc/miuidownload/detail?device=1700360 and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick
b. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
c. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
d. Go back to main twrp screen and install the rom
e. Reboot. That's it, you are done.
If my guide helped you please click "thanks" and enjoy your phone.
Frequently Asked Questions (FAQ):
Question:
My computer doesn't recognize my device. What can be the problem?
Answer:
1. Check your cable if it is the original one, and if not then use the original one.
2. Check you drivers if they are installed properly and if not, then re-install them.
3. If the problem is not with point 1 and 2 then please try another computer.
Question:
Can I bypass the waiting time to unlock the bootloader?
Answer:
No you can't. You have to wait for that time to pass.
You know you can probably root without recovery using Magisk Manager and fastboot. You'll just need the original boot image which you should be able to extract from Xiaomi's firmware downloads.
any confirmation how many hours to unlock this device (after 72h or 360h or 720h) ?
Cryslin111 said:
any confirmation how many hours to unlock this device (after 72h or 360h or 720h) ?
Click to expand...
Click to collapse
Unfortunatelly the waiting time varies from person to person and also which smarphone model we are talking about. Until now the longest time I waited to unlock a bootloader was 72h. In Xiaomi forums people are reporting that they are waiting btw. 72h - 720h, sometimes even more than 1000h.
TWRP for Redmi note 7 from LR.TEAM 21/1/2019
https://drive.google.com/file/d/1nYu4gbLnGcoWnfXTOONwJk4ifc82l-Sc/view
senerex said:
Unfortunatelly the waiting time varies from person to person and also which smarphone model we are talking about. Until now the longest time I waited to unlock a bootloader was 72h. In Xiaomi forums people are reporting that they are waiting btw. 72h - 720h, sometimes even more than 1000h.
Click to expand...
Click to collapse
I register my mi account by a google voice number,would it make the unlock process faster?OR perhaps I even could unlock my redmi note 7?
wangweitung said:
I register my mi account by a google voice number,would it make the unlock process faster?OR perhaps I even could unlock my redmi note 7?
Click to expand...
Click to collapse
No, I don't think so. No.
senerex said:
No, No.
Click to expand...
Click to collapse
I will soon check how long I will wait to unlock bootloader.
---------- Post added at 11:32 AM ---------- Previous post was at 11:12 AM ----------
senerex said:
No, I don't think so. No.
Click to expand...
Click to collapse
It's sad to see that I have to wait 360 hours before I can unlock.
wangweitung said:
It's sad to see that I have to wait 360 hours before I can unlock.
Click to expand...
Click to collapse
same here
Enddo said:
same here
Click to expand...
Click to collapse
Sam here (actuall 359h)
I've heard that Xiaomi's phone bought from mainland China can't unlock bootloader and flash global rom. Really?
ColtonDRG said:
You know you can probably root without recovery using Magisk Manager and fastboot. You'll just need the original boot image which you should be able to extract from Xiaomi's firmware downloads.
Click to expand...
Click to collapse
How would you flash the patched boot.img with a locked bootloader?
It shows this and blocks you from proceeding:
vEEGAZ said:
How would you flash the patched boot.img with a locked bootloader?
It shows this and blocks you from proceeding:
Click to expand...
Click to collapse
unlock bootloader first!
lehungit8 said:
I've heard that Xiaomi's phone bought from mainland China can't unlock bootloader and flash global rom. Really?
Click to expand...
Click to collapse
That's completely untrue. I do tutorials for these devices on my website Android Explained and have bought the latest ones from the Mi Global seller account on AliExpress.
All have been completely sealed devices, shipped a day or two after their Chinese launch, and once you can unlock the bootloader (you do have to wait a certain period of time), then you can flash the global fastboot ROM with either Mi Flash, or just using the flash_all.bat file
---------- Post added at 12:12 PM ---------- Previous post was at 12:10 PM ----------
vEEGAZ said:
How would you flash the patched boot.img with a locked bootloader?
It shows this and blocks you from proceeding:
Click to expand...
Click to collapse
the person you quoted said 'without recovery'. . .not 'with a locked bootloader'
You'll still need to unlock the bootloader, but once you do then you can patch the boot.img file for the device with Magisk and then load it onto the phone (instead of installing TWRP and then flashing Magisk) to gain root access
vEEGAZ said:
How would you flash the patched boot.img with a locked bootloader?
It shows this and blocks you from proceeding:
Click to expand...
Click to collapse
Yep, as the person above said, I said you could do it without recovery, not without unlocking the bootloader.
ColtonDRG said:
Yep, as the person above said, I said you could do it without recovery, not without unlocking the bootloader.
Click to expand...
Click to collapse
Alright, I misunderstood you.
Still more 14 days to go until I can unlock the bootloader
That's completely untrue. I do tutorials for these devices on my website Android Explained and have bought the latest ones from the Mi Global seller account on AliExpress.
All have been completely sealed devices, shipped a day or two after their Chinese launch, and once you can unlock the bootloader (you do have to wait a certain period of time), then you can flash the global fastboot ROM with either Mi Flash, or just using the flash_all.bat file
That sounds interesting - so - please state if I'm correct:
Once Redmi Note 7 Global version is out, I could install the official Global ROM and this one would work and have OTA upgrades in future on my Chinese Redmi Note 7?
Thank you in advance.
tomsag said:
Once Redmi Note 7 Global version is out, I could install the official Global ROM and this one would work and have OTA upgrades in future on my Chinese Redmi Note 7?
Click to expand...
Click to collapse
Global rom for Redmi Note 7 is not available yet, and thus I can't test it myself yet, but judging by all other Xiaomi Smartphones I had until now (Mi 5, Mi 6, Mix 2s, Redmi Note 4, Redmi Note 5 etc.) I was always able to flash the global rom on my Chinese version of these smartphones. Of course the bootloader will have to be unlocked. I'm quite sure that flashing the global rom on Chinese version of Redmi Note 7 will be possible too!
EDIT 1:
Thanhbat said:
Does OTA work on that ROM? And How about Android development on Chinese versions compare to Global versions? Can you flash global's ROM on Chinese version?
Thanks
Click to expand...
Click to collapse
Yes, OTA will work! Android development on Chinese versions compared to Global version is a prerogative of developers. They decide which version of MIUI (Chinese or Global) they take as basis for their further development.
senerex said:
Global rom for Redmi Note 7 is not available yet, and thus I can't test it myself yet, but judging by all other Xiaomi Smartphones I had until now (Mi 5, Mi 6, Mix 2s, Redmi Note 4, Redmi Note 5 etc.) I was always able to flash the global rom on my Chinese version of these smartphones. Of course the bootloader will have to be unlocked.
I'm quite sure that flashing the global rom on Chinese version of Redmi Note 7 will be possible! Pozdrav...
Click to expand...
Click to collapse
Does OTA work on that ROM?
And How about Android development on Chinese versions compare to Global versions? Can you flash global's ROM on Chinese version?
Thanks

Bought a used Mi A2, how do I proceed?

Just bought a used Mi A2 from a guy. He dosent know what Android version it is and its probably locked. Ive been out of the Android game for many years now, but managed to install ADB and Fastboot on my Mac.
The problem is that the device is boot looping on the Android One logo. Managed to get into Fastboot, and the device shows up in ./fastboot devices. Tried to run this quickie, but only get a "Device is already locked!" message.
So please, point me in the right direction as both the Internet and forums here are loaded with information.
In the end I would like to have a custom ROM, LinageOS or something maybe.
Thanks in advance.
joachimvadseth said:
Just bought a used Mi A2 from a guy. He dosent know what Android version it is and its probably locked. Ive been out of the Android game for many years now, but managed to install ADB and Fastboot on my Mac.
The problem is that the device is boot looping on the Android One logo. Managed to get into Fastboot, and the device shows up in ./fastboot devices. Tried to run this quickie, but only get a "Device is already locked!" message.
So please, point me in the right direction as both the Internet and forums here are loaded with information.
In the end I would like to have a custom ROM, LinageOS or something maybe.
Thanks in advance.
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
1st try to reboot numerously with external power On (if there is a valid Android One ROM in one of two slots, sooner or later bootloader is to boot into this valid ROM).
In case phone does not have a valid Android One ROM, then next step would be MiFlash'ing via EDL (search for TestPoint Guide in "Guides, ....")
Aerobatic said:
1st try to reboot numerously with external power On (if there is a valid Android One ROM in one of two slots, sooner or later bootloader is to boot into this valid ROM).
In case phone does not have a valid Android One ROM, then next step would be MiFlash'ing via EDL (search for TestPoint Guide in "Guides, ....")
Click to expand...
Click to collapse
Like just boot loop it or hold the power to reboot?
I think the EDL pinout opiton is the way to go after some searching, but Im in a desperate need of a torx driver..
joachimvadseth said:
Like just boot loop it or hold the power to reboot?
Click to expand...
Click to collapse
Some people reported that phone rebooted just itself while bootlooping with external power, others recommended to enter fastboot mode and reboot, others recommended to enter stock recovery mode (note that there is a gotcha of "no command" -> press "Power" and then "Vol-") and then "try again: ....
Aerobatic said:
Some people reported that phone rebooted just itself while bootlooping with external power, others recommended to enter fastboot mode and reboot, others recommended to enter stock recovery mode (note that there is a gotcha of "no command" -> press "Power" and then "Vol-") and then "try again: ....
Click to expand...
Click to collapse
In Fastboot the device only displays "fastboot", no options what so ever. Tried powering on the device without power cable 20 times and no go, boot looped on external power for about 10 minutes, no go.
joachimvadseth said:
In Fastboot the device only displays "fastboot", no options what so ever. Tried powering on the device without power cable 20 times and no go, boot looped on external power for about 10 minutes, no go.
Click to expand...
Click to collapse
Sure there is no options in fastboot mode, "enter fastboot mode and reboot" means just that -> enter fastboot mode and then reboot (either long-pressing power on phone or with "fastboot reboot" command from PC.
I gave you clues, please don't tease me to dictate step-by-step, I do not own your phone.
Aerobatic said:
Sure there is no options in fastboot mode, "enter fastboot mode and reboot" means just that -> enter fastboot mode and then reboot (either long-pressing power on phone or with "fastboot reboot" command from PC.
I gave you clues, please don't tease me to dictate step-by-step, I do not own your phone.
Click to expand...
Click to collapse
Ye sure, thats fine mate
did 'fastboot reboot' about 10 times now and still no go.
Found a Xiaomitool for macOS that has an option for "unbrick my device", but need the previous owners Mi account probably, so Ive asked if he did have a Mi account.
joachimvadseth said:
Found a Xiaomitool for macOS that has an option for "unbrick my device", but need the previous owners Mi account probably, so Ive asked if he did have a Mi account.
Click to expand...
Click to collapse
Most probably that's a false path, as MiFlash, Mi Account, Mi Unlock and other such stuff are for owners of "native" Xiaomi MIUI phones, while Mi A2 boarding Android One is regarded as stepchild. Better search for Android One solutions (in these forums of in developer.android.com)
Aerobatic said:
Most probably that's a false path, as MiFlash, Mi Account, Mi Unlock and other such stuff are for owners of "native" Xiaomi MIUI phones, while Mi A2 boarding Android One is regarded as stepchild. Better search for Android One solutions (in these forums of in developer.android.com)
Click to expand...
Click to collapse
Maybe. I think the phone is stock, just bricked after some update.
Just need to get the bloody torx driver!
EDIT: when I do manage to find a tiny tiny torx driver and open up the phone, disconnect the battery a bit, connect it back up, and its time to connect the two EDL pins, how long do I hold? USB cable plugged in?
Yes I have same issue, I dont understand, why Xiaomi dont do anything with this ridiculous problem, I dont login with mi account because no paid attention to that, and when I install this update the phone get in bootloop
joachimvadseth said:
..., and its time to connect the two EDL pins, how long do I hold? USB cable plugged in?
Click to expand...
Click to collapse
Disclamer: Have not done it myself, but according to numerous sources the needed Steps (here with Windows PC) are:
1. Open (partially disassemble) Phone to reach 2 contact Test Point spots
2. Connect stock USB cable to USB2.x port on MB of PC, but not to phone, start Device Manager (to see that no USB-phone-related devices are connected and later to see that phone will be connected in EDL)
3. Download desired stock fastboot ROM https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849 and MiFlash, start MiFlash selecting ROM
4. Span the two contacts with something metal and in this state connect USB cable to phone; Device Manager must show newly connected device detected, then contacts may be open
5. Press "Refresh" in MiFlash, same new device must be displayed
6. MiFlash -> clean all, MiFlash -> flash
7. Assemble phone back and reboot
MHO Notes:
a. when EDL/TestPoint method was forced due to soft-bricking, after unbricking it is better to: (1) fully unlock phone and (2) clean-reflash stock ROM via fasboot
(Reason: this particular specimen is subject to OTA soft -bricking)
b. if EDL/TestPoint method fails with Pie (10.0.17.0 or 10.0.2.0), retry using Oreo 9.6.17.0 or 9.6.9.0.
---------- Post added at 01:01 PM ---------- Previous post was at 12:52 PM ----------
Onilink90 said:
..., and when I install this update the phone get in bootloop
Click to expand...
Click to collapse
Xiaomi is just repacking Google's Android One updates, and, obviously, does not spend much money for testing OTAs (as AndroidOne phones are not their main market items). From the other hand, Google's Android One A/B Slots feature was developed for so called friction-less ( muhaha ) reverting to previously working ROM when updated ROM fails to boot. So, an Android One phone bootlooping after OTA MUST reboot to previous version of ROM sooner or later (supposed to be 7 retries), sure if phone is not compromised / tampered by previous user actions.
Aerobatic said:
Disclamer: Have not done it myself, but according to numerous sources the needed Steps (here with Windows PC) are:
1. Open (partially disassemble) Phone to reach 2 contact Test Point spots
2. Connect stock USB cable to USB2.x port on MB of PC, but not to phone, start Device Manager (to see that no USB-phone-related devices are connected and later to see that phone will be connected in EDL)
3. Download desired stock fastboot ROM https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849 and MiFlash, start MiFlash selecting ROM
4. Span the two contacts with something metal and in this state connect USB cable to phone; Device Manager must show newly connected device detected, then contacts may be open
5. Press "Refresh" in MiFlash, same new device must be displayed
6. MiFlash -> clean all, MiFlash -> flash
7. Assemble phone back and reboot
MHO Notes:
a. when EDL/TestPoint method was forced due to soft-bricking, after unbricking it is better to: (1) fully unlock phone and (2) clean-reflash stock ROM via fasboot
(Reason: this particular specimen is subject to OTA soft -bricking)
b. if EDL/TestPoint method fails with Pie (10.0.17.0 or 10.0.2.0), retry using Oreo 9.6.17.0 or 9.6.9.0.
---------- Post added at 01:01 PM ---------- Previous post was at 12:52 PM ----------
Xiaomi is just repacking Google's Android One updates, and, obviously, does not spend much money for testing OTAs (as AndroidOne phones are not their main market items). From the other hand, Google's Android One A/B Slots feature was developed for so called friction-less ( muhaha ) reverting to previously working ROM when updated ROM fails to boot. So, an Android One phone bootlooping after OTA MUST reboot to previous version of ROM sooner or later (supposed to be 7 retries), sure if phone is not compromised / tampered by previous user actions.
Click to expand...
Click to collapse
Managed to get hold of a torx set - phone is now open, battery disconncted. USB-C cable ready (dont have USB-A-C, only USB-C-C). Installed MiFlashTool on my PC and tried to get hold of the drivers. MIFlash is giving me a hard time whineing about drivers. Giving me a erorr message, something about JIT-debugging. Only got it in norwegian.
Edit: managed to flash the stock ROM I think. Fuzzed around a bit with the qualcom driver. Now I have a white screen with a rainbow passing over it..
Edit 2: and we're there! MIUI is in - now time to get rid of it!
Edit 3: think I managed to flash TWRP now - do I need root? Can I just flash a Pixelexperience ROM now or do I need to do something else? Used the Android 9 fastboot image earlier, if that has anyting to do with anything.

Latest MI Unlock can't detect device

Hello,
I was trying to unlock bootloader and root my device (Redmi Note 9; Mediatek processor). But even after ensuring everything required to unlock, the latest mi unlock tool (miflash unlock tool; Ver: 4.5.707.49 and even miflash unlock tool; Ver 4.5.514.47) can't detect my device while it is in fastboot mode. What is interesting is I tried with older version (miflash unlock tool; Ver: 3.3.525.23) and it detects my device while it is in fastboot mode. But after approaching to unlocking, at the end of the process (99%) it says, can't unlock device, please go to https://en.miui.com/unlock/ and try with the latest version (where it should grant me few hours to wait until I become eligible to unlock it. I've ensured the followings:
I've installed all the required drivers (xiaomi, usb, ADB, fastboot, qualcom)
Enabled OEM unlocking and USB debugging on the device in developer option
I've bind the phone (in developer option>> mi unlock status) with the same mi account the phone is bind with
I've logged in the mi unlock tool with the same mi account
I've tried with the latest mi unlock tool and even with the older versions
my PC is a 64 bit windows 10 installed intel PC (I've heared ADM pcs' causes problem sometimes)
Disabled signature driver enforcement
Restarting the device and computer multiple times
Re installing drivers over and over again
What's going wrong or what wrong am I doing? Can anyone please help?
Try selecting the driver manually by yourself.
Go to device manager, and try to update it.
After it, select anything like "android bootloader" in list.
Good luck
Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-10x-4g-redmi-note-9.4225177/
shaan3010 said:
Hello,
I was trying to unlock bootloader and root my device (Redmi Note 9; Mediatek processor). But even after ensuring everything required to unlock, the latest mi unlock tool (miflash unlock tool; Ver: 4.5.707.49 and even miflash unlock tool; Ver 4.5.514.47) can't detect my device while it is in fastboot mode. What is interesting is I tried with older version (miflash unlock tool; Ver: 3.3.525.23) and it detects my device while it is in fastboot mode. But after approaching to unlocking, at the end of the process (99%) it says, can't unlock device, please go to https://en.miui.com/unlock/ and try with the latest version (where it should grant me few hours to wait until I become eligible to unlock it. I've ensured the followings:
I've installed all the required drivers (xiaomi, usb, ADB, fastboot, qualcom)
Enabled OEM unlocking and USB debugging on the device in developer option
I've bind the phone (in developer option>> mi unlock status) with the same mi account the phone is bind with
I've logged in the mi unlock tool with the same mi account
I've tried with the latest mi unlock tool and even with the older versions
my PC is a 64 bit windows 10 installed intel PC (I've heared ADM pcs' causes problem sometimes)
Disabled signature driver enforcement
Restarting the device and computer multiple times
Re installing drivers over and over again
What's going wrong or what wrong am I doing? Can anyone please help?
Click to expand...
Click to collapse
You can check in device manager. Your phone should be on the top. If it is in portable devices then you can select it and then click on update driver manually.
After doing it go to platform tools folder(if you have them), type adb devices
If you device serial number is shown then its good to go.
If it is showing unauthorised then type the command
"adb reboot bootloader"
Now it will be authorised
shaan3010 said:
Hello,
I was trying to unlock bootloader and root my device (Redmi Note 9; Mediatek processor). But even after ensuring everything required to unlock, the latest mi unlock tool (miflash unlock tool; Ver: 4.5.707.49 and even miflash unlock tool; Ver 4.5.514.47) can't detect my device while it is in fastboot mode. What is interesting is I tried with older version (miflash unlock tool; Ver: 3.3.525.23) and it detects my device while it is in fastboot mode. But after approaching to unlocking, at the end of the process (99%) it says, can't unlock device, please go to https://en.miui.com/unlock/ and try with the latest version (where it should grant me few hours to wait until I become eligible to unlock it. I've ensured the followings:
I've installed all the required drivers (xiaomi, usb, ADB, fastboot, qualcom)
Enabled OEM unlocking and USB debugging on the device in developer option
I've bind the phone (in developer option>> mi unlock status) with the same mi account the phone is bind with
I've logged in the mi unlock tool with the same mi account
I've tried with the latest mi unlock tool and even with the older versions
my PC is a 64 bit windows 10 installed intel PC (I've heared ADM pcs' causes problem sometimes)
Disabled signature driver enforcement
Restarting the device and computer multiple times
Re installing drivers over and over again
What's going wrong or what wrong am I doing? Can anyone please help?
Click to expand...
Click to collapse
will this work
Manjotbenipal said:
You can check in device manager. Your phone should be on the top. If it is in portable devices then you can select it and then click on update driver manually.
After doing it go to platform tools folder(if you have them), type adb devices
If you device serial number is shown then its good to go.
If it is showing unauthorised then type the command
"adb reboot bootloader"
Now it will be authorised
Click to expand...
Click to collapse
Hi Manjotbenipal,
My device shows the 'serial number unauthorised', but when I tried the 'adb reboot bootloader' & 'adb devices' nothing is listed.
Thanks
troybarbas said:
Hi Manjotbenipal,
My device shows the 'serial number unauthorised', but when I tried the 'adb reboot bootloader' & 'adb devices' nothing is listed.
Thanks
Click to expand...
Click to collapse
All good now 'serial number device' is now shown after the phone restarted.
But still the Mi Unlock ver 6.5.406.31 software does not enable the unlock when in fastboot mode.
'adb device' show no devices...
troybarbas said:
All good now 'serial number device' is now shown after the phone restarted.
But still the Mi Unlock ver 6.5.406.31 software does not enable the unlock when in fastboot mode.
'adb device' show no devices..
Click to expand...
Click to collapse
When in fastboot mode
Type 'fastboot devices' in cmd and then you'll be able to see if you have proper drivers installed
Note : adb and fastboot are not same
'adb devices' command will never work in fastboot mode and same is for 'fastboot devices' when device is booted
shaan3010 said:
Hello,
I was trying to unlock bootloader and root my device (Redmi Note 9; Mediatek processor). But even after ensuring everything required to unlock, the latest mi unlock tool (miflash unlock tool; Ver: 4.5.707.49 and even miflash unlock tool; Ver 4.5.514.47) can't detect my device while it is in fastboot mode. What is interesting is I tried with older version (miflash unlock tool; Ver: 3.3.525.23) and it detects my device while it is in fastboot mode. But after approaching to unlocking, at the end of the process (99%) it says, can't unlock device, please go to https://en.miui.com/unlock/ and try with the latest version (where it should grant me few hours to wait until I become eligible to unlock it. I've ensured the followings:
I've installed all the required drivers (xiaomi, usb, ADB, fastboot, qualcom)
Enabled OEM unlocking and USB debugging on the device in developer option
I've bind the phone (in developer option>> mi unlock status) with the same mi account the phone is bind with
I've logged in the mi unlock tool with the same mi account
I've tried with the latest mi unlock tool and even with the older versions
my PC is a 64 bit windows 10 installed intel PC (I've heared ADM pcs' causes problem sometimes)
Disabled signature driver enforcement
Restarting the device and computer multiple times
Re installing drivers over and over again
What's going wrong or what wrong am I doing? Can anyone please help?
Click to expand...
Click to collapse
https://github.com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/releases/latest/download/Latest-ADB-Installer.bat
Download this. Connect your device with usb debuging on and permitted debug.
Run the bat file with an internet connection. Wait and walah. Device will reboot to fastboot and reboot again.
Manjotbenipal said:
When in fastboot mode
Type 'fastboot devices' in cmd and then you'll be able to see if you have proper drivers installed
Note : adb and fastboot are not same
'adb devices' command will never work in fastboot mode and same is for 'fastboot devices' when device is booted
Click to expand...
Click to collapse
understood..
I followed this guide https://new.c.mi.com/global/post/101245
"You have already done that on the phone, so you should get Phone connected message on Mi Unlock. If you get Not connected to the phone message, reinstall Mi USB driver and try again."
Currently device is using winusb.sys driver, ran (Mi Unlock ver 6.5.406.31) MiUsbDriver & xiaomiwinusba64.cat, but still Windows 11 keeps using winusb.sys driver...for some reason.
troybarbas said:
understood..
I followed this guide https://new.c.mi.com/global/post/101245
"You have already done that on the phone, so you should get Phone connected message on Mi Unlock. If you get Not connected to the phone message, reinstall Mi USB driver and try again."
Currently device is using winusb.sys driver, ran (Mi Unlock ver 6.5.406.31) MiUsbDriver & xiaomiwinusba64.cat, but still Windows 11 keeps using winusb.sys driver...for some reason.
Click to expand...
Click to collapse
What is winusb.sys and How to Remove this file (Solved)
in just easy steps learn how to remove winusb.sys file, get full information and solutions for winusb.sys errors
www.exedb.com
I am not responsible if this breaks more stuff
LR7875 said:
What is winusb.sys and How to Remove this file (Solved)
in just easy steps learn how to remove winusb.sys file, get full information and solutions for winusb.sys errors
www.exedb.com
I am not responsible if this breaks more stuff
Click to expand...
Click to collapse
so too is regedit in removing winusb.

Categories

Resources