Sign Up

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Captcha Click on image to update the captcha.

Forgot Password?

Need An Account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the question so it can be answered easily.

Please choose the appropriate section so the question can be searched easily.

Please choose suitable Keywords Ex: question, poll.

Browse
Type the description thoroughly and in details.

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

Don't have account, Sign Up Here

You must login to add post.

Captcha Click on image to update the captcha.

Forgot Password?

Don't have account, Sign Up Here
Please subscribe to paid membership

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Support Xiaomi | Community Xiaomi Logo Support Xiaomi | Community Xiaomi Logo Support Xiaomi | Community Xiaomi Logo Support Xiaomi | Community Xiaomi Logo
Sign InSign Up

Support Xiaomi | Community Xiaomi

Support Xiaomi | Community Xiaomi Navigation

  • Home
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Help
Home/ Questions/Q 1109
Next
In Process

Support Xiaomi | Community Xiaomi Latest Questions

Support Xiaomi
  • 0
  • 0
Support XiaomiEnlightened
Asked: Tháng 4 29, 20202020-04-29T22:18:52+00:00 2020-04-29T22:18:52+00:00In: Tips, Tricks & Customization

Bricked Xiaomi Mi9 S – How to fix on Linux

  • 0
  • 0

Hello Guys.

At the beginning of 2020 I acquired a Xiaomi Mi9 SE through AliExpress. The device came in perfect state and it kept like that until I found out that the ROM of the device was not an official one (something I was suspecting because the device had its bootloader unlocked). Knowing this I decided to flash an official ROM downloaded directly from Xiaomi’s web site. First I tried doing it in recovery mode through the update menu on MIUI 11 settings, but the device (I am guessing the custom ROM) did not allow me to do it due to some carrier related error. After this I tried using a VPN which, of course, did not fix the issue.

I did a bit more research and decided to flash the ROM through fastboot mode. I downloaded the needed ROM and Xiaomi’s Mi Flash Tool to a Xiaomi Mi 13 laptop (with Windows 10) and made all the needed steps. All went with no issues and the device rebooted, but when that happened my phone was stuck in, what I have identified as a, soft brick. So now I have the device in a bootloop on recovery mode and can only access to fastboot mode. The device has had its bootloader locked because I forgot to select an alternative option to “flash + lock” in Mi Flash Tool (my fault).

Since then I have been quite busy and have not been able to focus on the problem as I wished. I have done some research but most of the info I found is directed towards Windows users, which is now a problem because I no longer have easy access to the Windows laptop previously mentioned (my current working machine is an Arch Linux laptop). Also most solutions I found require using the test points method to force EDL mode on the phone which I found quite difficult to do. Taking into account that I have no tools to perform the task and the current lock-down situation makes it quite difficult to obtain the aforementioned tools, this solution does not seem suited for the context.

*I have attached a video with the current state of the phone.*

[Soft brick – Mi9 SE](https://reddit.com/link/gabeat/video/jlqhaholxrv41/player)

Being in my current situation I have made research on how to perform ROM flashing in Linux and seems pretty easy (easier than the Windows solution). But whenever I try flashing the ROM using the shell script (`sh flash_all.sh`) my terminal just stays in blank prompt:

❯ sh flash_all.sh

When I run `sudo fastboot devices` my phone is detected:

❯ sudo fastboot devices
[sudo] password for angel:
485fd7a8 fastboot

I really have no clue of how to fix this problem. I would really appreciate some help from you guys. This is being quite frustrating because the phone is just a few months old and it was working flawlessly.

PD: Sorry for my English it is not my mother tongue.

​

UPDATE:

So I have been working in the issue again and I have made an improvement (sort of). When I run `sudo sh flash_all.sh` I am getting this:

~/Downloads/grus_global_images_V11.0.2.0.QFBMIXM_20200310.0000.00_10.0_global
❯ sudo sh flash_all.sh
Missmatching image and device

UPDATE:

I have tried to run the script again and it is showing the blank prompt once again.

UPDATE:

So I am finally able to run the script by, firstly, wiping all data from the recovery mode menu, then booting into fastboot mode. After that I run the script with the device not yet connected to my PC and after starting the script I connect the device. This is when, if I have commented one particular line regarding the **Missmatching image and device** error from the script code, the device does something: goes to a black screen with an unreadable (it is cut by the screen edge) error message on the top right corner of the screen. If I click power button after this error message the device reboots to recovery mode. On the contrary if I left the code untouched is when my terminal returns the error message **Missmatching image and device** and the phone just does not do anything.

UPDATE:

So far what I have been able to gather is that the only possible way to unbrick the device is by going into EDL mode. For that you need an authorized Mi Account which is no longer given out by Xiaomi to normal users. So the problem now is finding someone who has this authorization and that is willing to help.

​

LAST UPDATE:

I finally got in contact with a smartphone repair shop in my hometown now that all the COVID-19 thing is somewhat over in Spain. The shop guy charge me around 30€ and it took around 2 weeks to be repaired due to the phone being sent to Madrid for someone with the permissions in its mi account to make all de EDL mode thing and install an European ROM.

So long story short: find someone or some repair shop near you and let them repair ir for you.

98
  • 98 98 Answers
  • 1 View
  • 0 Followers
  • 0
    • Report
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Leave an answer
Hủy

You must login to add an answer.

Captcha Click on image to update the captcha.

Forgot Password?

Need An Account, Sign Up Here

98 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. bolinhas_
    bolinhas_
    2020-04-30T18:22:30+00:00Added an answer on Tháng 4 30, 2020 at 6:22 pm

    As it has been said already in the comments the problem it is not really related to the computer OS.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. GrooveMan_
    GrooveMan_
    2020-04-30T03:42:52+00:00Added an answer on Tháng 4 30, 2020 at 3:42 am

    So happy to see the help coming from every where, you guys dam good.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  3. goodeesh
    goodeesh
    2020-04-30T15:38:03+00:00Added an answer on Tháng 4 30, 2020 at 3:38 pm

    Yo Horta try unlocking with mi unlock tool. Afterwards you could flash twrp recovery and flash a rom that way or flash the correct rom with Xiaomi flash tool.

    If the unlocking process fails try with olders mi unlock tools you could find around internet. I hope you fix this man

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  4. fast90000
    fast90000
    2020-04-30T07:44:51+00:00Added an answer on Tháng 4 30, 2020 at 7:44 am

    From my experience as long as it’s the same device model you can actually cross flash vendors, which is typically not recommended but when I cross flashed the CN vendor for my Redmi K20 Pro (Raphael) I didn’t encounter any issues.

    I did some googling your device which is Xiaomi Mi 9 SE whose code name is grus from what I read, that’s what you should look up on mifirm.net.

    From my knowledge, I don’t think you’ll be able to use the Mi Flash Tool to unbrick your device, likely you’ll have to pay someone with a registered EDL Account to unbrick it, given Xiaomi’s limited presence in the EU.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  5. GrooveMan_
    GrooveMan_
    2020-05-06T00:32:42+00:00Added an answer on Tháng 5 6, 2020 at 12:32 am

    Do you still have the same problem?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  6. bolinhas_
    bolinhas_
    2020-04-30T04:23:26+00:00Added an answer on Tháng 4 30, 2020 at 4:23 am

    Really sucks man but it is what it is. I will try finding a solution with what you have told me about the authorization to go into EDL mode. I really appreciate it man. Thanks for taking the time to answer.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  7. czar1212
    czar1212
    2020-04-30T09:43:51+00:00Added an answer on Tháng 4 30, 2020 at 9:43 am

    [Xiaomi flash tool for Linux systems](https://forum.xda-developers.com/android/software/tool-miflash-linux-t3708847)

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  8. mirsella
    mirsella
    2020-04-30T00:58:35+00:00Added an answer on Tháng 4 30, 2020 at 12:58 am

    the best method would be to do a windows VM and pass the USB post where the device is connected to the VM. you can try miflash.exe with wine but it will probably don’t work.
    the edl pin useless for us (simple user) because you need a Xiaomi authorized account to reflash in edl mode. the authorized account are only given to store or employee.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  9. ReaperOZ
    ReaperOZ
    2020-04-30T16:38:20+00:00Added an answer on Tháng 4 30, 2020 at 4:38 pm

    You should have used twrp recovery or something else if bootloader was already unlocked.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  10. bolinhas_
    bolinhas_
    2020-04-30T07:24:52+00:00Added an answer on Tháng 4 30, 2020 at 7:24 am

    Yeah definitely the computer OS is not an issue, aside from the available tools. With the info I have gather I really think that EDL is my only option. Just one question will it be possible to unlock the bootloader with the Xiaomi Tool? And will that helping the issue guessing that the current flashed ROM was made for a variant of the Mi 9 SE from another region?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  11. bolinhas_
    bolinhas_
    2020-04-30T01:14:33+00:00Added an answer on Tháng 4 30, 2020 at 1:14 am

    Yeah I know that. I am just making it explicit that my working PC is a Linux one so the ones who read the post can help me solving the issue.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  12. mirsella
    mirsella
    2020-04-30T02:12:23+00:00Added an answer on Tháng 4 30, 2020 at 2:12 am

    what’s the error ? I think you already google it since your a fellow linux user but who knows. in miflash you want to flash without saving data, to wipe everything on the phone, for me when i flash with saving user data it doesn’t boot. don’t forget to do backup before flashing

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  13. alangetar
    alangetar
    2020-04-30T14:53:15+00:00Added an answer on Tháng 4 30, 2020 at 2:53 pm

    That’s why i prefer Windows to Linux

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  14. bolinhas_
    bolinhas_
    2020-04-30T03:42:48+00:00Added an answer on Tháng 4 30, 2020 at 3:42 am

    I live in Spain. I have made some googling to try finding technical assistance but I think is not yet available officially in my country. As for the EDL stuff, well is an alternative. I have not really dug deep in that subject yet so I am quite lost when it comes to it.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  15. superl2
    superl2
    2020-04-30T06:49:07+00:00Added an answer on Tháng 4 30, 2020 at 6:49 am

    As others have said already, EDL mode is your only option.

    Since you locked the bootloader, fastboot won’t let you flash anything that isn’t the same or an upgraded version of the ROM you flashes before locking it – but the ROM you flashes before locking it is either broken, or made for a variant of the Mi 9 SE from another region.

    The only way to bypass that is to flash it with EDL mode, which doesn’t verify anything.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  16. czar1212
    czar1212
    2020-04-30T03:03:06+00:00Added an answer on Tháng 4 30, 2020 at 3:03 am

    Install wine on your linux system and use it to run the xiaomi flash tool on your linux system. This way you’ll be able to run the exe on your linux system.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  17. Fraeldo
    Fraeldo
    2020-04-30T00:53:18+00:00Added an answer on Tháng 4 30, 2020 at 12:53 am

    I don’t know if it’s gonna work, but I managed to flash a ROM in the past on Linux with the same method, I also had the blank prompt, and if i remember correctly i fixed it by running the script first and then booting in fastboot.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  18. Spukeyfly
    Spukeyfly
    2020-04-30T09:58:52+00:00Added an answer on Tháng 4 30, 2020 at 9:58 am

    I know a guy who can help you.

    You need to download the CORRECT rom. Remove the back cover to have access to the EDL test points. A computer with TeamViewer installed.

    He will log in to your computer using TeamViewer and use his Authorized Mi Account to load the rom on for you.

    It was the only solution for my sons bricked Redmi Note 8. It cost me NZ$70.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  19. bolinhas_
    bolinhas_
    2020-04-30T05:02:00+00:00Added an answer on Tháng 4 30, 2020 at 5:02 am

    I will give it a try but it seems that the available Mi Unlock tool on Linux does not have this feature implemented. So I will need to get my hands on a Windows machine. Thanks mate, I will keep you updated with what I find out.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  20. bolinhas_
    bolinhas_
    2020-05-06T01:14:25+00:00Added an answer on Tháng 5 6, 2020 at 1:14 am

    Yeah mate, no improvements 🙁

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  21. semsemsem2
    semsemsem2
    2020-04-30T04:44:01+00:00Added an answer on Tháng 4 30, 2020 at 4:44 am

    Are you sure you have the correct rom? You should look at your box for extra info, maybe the seller lied and the phone isnt global. Also if you use the test point method, changes are high that you will need to set imei number back to the original value on the box ( Can get ereased when hardbricked). It happened to my redmi note 4x lol, I had to download an app from google play something like imei changer to set it back ( did also require me to root the device).

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  22. Akez_
    Akez_
    2020-05-05T20:21:27+00:00Added an answer on Tháng 5 5, 2020 at 8:21 pm

    I get it, they’ve made it so much complicated for something that should be done pretty easily. Plus if they fill their software with so many ads and useless chinese stuff they should know that people are gonna flash custom roms and take risks. I was very satisfied of the phone for the price but making it literally useless because of one mistake is just disgusting.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  23. iMin3Ra1n
    iMin3Ra1n
    2020-04-30T03:27:20+00:00Added an answer on Tháng 4 30, 2020 at 3:27 am

    You might have some hope with aftermarket roms. Flash twrp or orangefox and try havoc, evolution, PE, whatever. Just make sure it’s the same device codename.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  24. AxelRED_
    AxelRED_
    2020-04-30T00:30:16+00:00Added an answer on Tháng 4 30, 2020 at 12:30 am

    With mi flash tool you can fix it. Only connect the phone to the computer and flash it. The same thing happened to me. But I don’t remember if you need your Xiaomi unlocked.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  25. bolinhas_
    bolinhas_
    2020-05-05T19:29:11+00:00Added an answer on Tháng 5 5, 2020 at 7:29 pm

    Hello, well a guy contacted me and told me about someone in Ukraine that charged him 70NZ for the repair (which was successful). The thing is that you need to open up the phone, unplug the battery and perform the test point method while you let the Ukraine guy control your PC via TeamViewer so he can use his authorized account and do all the stuff. I am guessing this need to be done on a Windows machine.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  26. bolinhas_
    bolinhas_
    2020-04-30T03:02:47+00:00Added an answer on Tháng 4 30, 2020 at 3:02 am

    It is global and I have downloaded the global version. The thing is as I wrote on the post, that my phone came from third party, it was not bought on an official Xiaomi store. As I have also written in the post the phone came with an unofficial ROM installed, so the issue begun when trying to change this ROM to an official one.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  27. bolinhas_
    bolinhas_
    2020-04-30T03:38:53+00:00Added an answer on Tháng 4 30, 2020 at 3:38 am

    Can I flash custom recoveries like TWRP with my booloader locked?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  28. mirsella
    mirsella
    2020-04-30T03:02:35+00:00Added an answer on Tháng 4 30, 2020 at 3:02 am

    you will have more chance of success on windows, that why I suggested using a VM to use windows even on Linux. Linux isn’t officially supported by any Xiaomi tool sadly, and I don’t even known where your .sh come from. I’m not surprised it doesn’t work on windows as it’s not designed to, sadly

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  29. GrooveMan_
    GrooveMan_
    2020-05-06T01:27:18+00:00Added an answer on Tháng 5 6, 2020 at 1:27 am

    Dam fuck

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  30. bolinhas_
    bolinhas_
    2020-04-30T05:04:12+00:00Added an answer on Tháng 4 30, 2020 at 5:04 am

    The seller used a custom ROM so you can imagine… I won’t do the test points method unless not until I have ran out of other options. But thanks mate!

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  31. bolinhas_
    bolinhas_
    2020-04-30T03:24:14+00:00Added an answer on Tháng 4 30, 2020 at 3:24 am

    Yeah I have learnt it the hard way…

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  32. bolinhas_
    bolinhas_
    2020-04-30T18:28:02+00:00Added an answer on Tháng 4 30, 2020 at 6:28 pm

    Thanks for the comment but my device is being detected both in fastboot and ADB mode.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  33. bolinhas_
    bolinhas_
    2020-04-30T01:54:24+00:00Added an answer on Tháng 4 30, 2020 at 1:54 am

    Do you remember if the tool had other options. Just so I can make some troubleshooting.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  34. GrooveMan_
    GrooveMan_
    2020-04-29T23:13:11+00:00Added an answer on Tháng 4 29, 2020 at 11:13 pm

    SORRY can’t help but send you all my power buddies, hope you gonna fix this.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  35. StrikeMePurple
    StrikeMePurple
    2020-04-30T04:47:06+00:00Added an answer on Tháng 4 30, 2020 at 4:47 am

    It’ll throw a error because you can’t flash any rom either recovery or fastboot with a locked bootloader. It has nothing to do with Linux or Windows the only way you can fix it is to use Mi unlock tool and unlock your bootloader from there reflash fastboot rom and don’t make the same mistake again. Sometimes if bootloader has been unlocked before which it has in your case the unlock can be instant but usually theirs a waiting period with Xiaomi. It’s a rough lesson where one simple mistake can cost a massive headache been through it before.

    Also you might have to contact the person you bought it from because of some other Xiaomi bullshit where the phone is linked with their mi account but that’s a worse case scenario.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  36. mirsella
    mirsella
    2020-04-30T01:31:30+00:00Added an answer on Tháng 4 30, 2020 at 1:31 am

    what’s the problem you were facing in windows ? that even after the flash it doesn’t boot ?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  37. iMin3Ra1n
    iMin3Ra1n
    2020-04-30T03:53:29+00:00Added an answer on Tháng 4 30, 2020 at 3:53 am

    Aaahhhhh… No, not really, not that I know of. You’re gonna kinda wanna Google your way out of this one.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  38. bolinhas_
    bolinhas_
    2020-04-30T01:36:21+00:00Added an answer on Tháng 4 30, 2020 at 1:36 am

    When I tried to flash a the ROM again (seeing that my device was bricked) with Mi Flash Tool it just prompt an error and did no do anything. So yes in Windows (which I do not think is the problem) my device did not boot after flashing the ROM

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  39. iMin3Ra1n
    iMin3Ra1n
    2020-04-30T02:57:41+00:00Added an answer on Tháng 4 30, 2020 at 2:57 am

    And your phone is global, correct? Flash the according region rom too, that matters.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  40. bolinhas_
    bolinhas_
    2020-04-30T03:09:00+00:00Added an answer on Tháng 4 30, 2020 at 3:09 am

    Yeah I was afraid that was be the problem. Test points is clearly not an option right now so I’ll see if I can contact with someone who can fix the issue. Thanks man.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  41. bolinhas_
    bolinhas_
    2020-04-30T01:23:08+00:00Added an answer on Tháng 4 30, 2020 at 1:23 am

    That is what I think but the ROM was downloaded from Xiaomi and it is for the specific terminal and specific mode (fastboot). Eitherway now it is just not doing anything when I run the script.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  42. osa_1988
    osa_1988
    2020-04-30T00:21:33+00:00Added an answer on Tháng 4 30, 2020 at 12:21 am

    I’m not expert… But don’t you need set file patch to ROM (or at least run terminal in that location)?
    Did you set premission of script to a+x?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  43. superl2
    superl2
    2020-04-30T08:00:11+00:00Added an answer on Tháng 4 30, 2020 at 8:00 am

    I looks like the Mi recovery doesn’t support booting into EDL mode either.

    I’m out of ideas – I hope you find something.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  44. ReaperOZ
    ReaperOZ
    2020-04-30T19:06:55+00:00Added an answer on Tháng 4 30, 2020 at 7:06 pm

    Srry for that. But I am just trying to make people aware so they don’t do the same thing. Unfortunately I have no idea what to do here, 😬, srry.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  45. bolinhas_
    bolinhas_
    2020-04-30T07:27:46+00:00Added an answer on Tháng 4 30, 2020 at 7:27 am

    Yeah I guessed so. Well thank you very much mate. I will try unlocking the bootloader from a Windows PC and if turns out impossible I will do some research on the EDL stuff.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  46. bolinhas_
    bolinhas_
    2020-04-30T07:18:52+00:00Added an answer on Tháng 4 30, 2020 at 7:18 am

    Appreciate it mate. In order to go in EDL mode I need to perform the test point method? Or are there other ways? I remember watching a video on YouTube where a guy running Windows ran a batch file (.bat) that made the device (an old xiaomi) go into EDL mode – don’t know if that is currently possible. Thanks again.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  47. bolinhas_
    bolinhas_
    2020-04-30T07:42:23+00:00Added an answer on Tháng 4 30, 2020 at 7:42 am

    I can get to Xiaomi recovery and access Mi Assistant, but running `adb reboot edl` returns:

    ❯ sudo adb reboot edl
    error: insufficient permissions for device
    See [http://developer.android.com/tools/device.html] for more information

    As for `fastboot oem edl`:

    ❯ sudo fastboot oem edl
    FAILED (remote: ‘Error Invalid Parameter’)
    fastboot: error: Command failed

    If I try using without `sudo` it just keeps waiting for a device but `sudo fastboot devices` returns:

    ❯ sudo fastboot devices
    485fd7a8 fastboot

    As for the complication you explained I am aware of the complications it may carry. So I will see what can be done some other user have suggested asking for the authorization via XDA forums, who knows..

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  48. iMin3Ra1n
    iMin3Ra1n
    2020-04-30T03:15:12+00:00Added an answer on Tháng 4 30, 2020 at 3:15 am

    Wow, what a doozy.. probably don’t buy your electronics from Ali Express anymore? 🙂 Amazon treated my phone right and it came with clean MiUI. Granted I’ve flashed it with a clean version of MiUI basically ensuring it’s clean, but it ran an original rom to begin with.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  49. Spukeyfly
    Spukeyfly
    2020-05-01T03:59:23+00:00Added an answer on Tháng 5 1, 2020 at 3:59 am

    I can help. PM me.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  50. bolinhas_
    bolinhas_
    2020-05-05T20:09:20+00:00Added an answer on Tháng 5 5, 2020 at 8:09 pm

    I did not. I think is too much hustle for fixing a software issue. I mean I don’t really want to ever use a Xiaomi phone again seeing how hard they are trying to make life harder for their users. Apart from that I don’t have the tools to open my phone up. And even if I did decide to contact this guy I have no guarantee that my phone is going to be fixed.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  51. bolinhas_
    bolinhas_
    2020-04-30T00:45:22+00:00Added an answer on Tháng 4 30, 2020 at 12:45 am

    When I did that with Mi Flash Tool a second time (after seeing the issue) on Windows it returned an error I cannot remember it now. The thing is it is now very inconvenient for me to access to a Windows machine and I am trying to solve the problem on a Arch Linux Machine.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  52. bolinhas_
    bolinhas_
    2020-04-30T18:24:03+00:00Added an answer on Tháng 4 30, 2020 at 6:24 pm

    Well I didn’t know that but I really didn’t want to have an unofficial ROM because who knew what they could be doing.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  53. superl2
    superl2
    2020-04-30T07:29:02+00:00Added an answer on Tháng 4 30, 2020 at 7:29 am

    Some phones can boot into EDL mode from custom recoveries, but that doesn’t really help in this situation.

    You can try the `fasboot oem edl` command in fastboot.

    If you can get into the Xiaomi recovery, you can try looking at translated screenshots online to select the “Mi Assistant” option, which should enable ADB – from there, you can try `adb reboot edl`.

    There’s also another complication that I forgot about. Modern Xiaomi phones, (probably including yours) need the Xiaomi software specifically to be flashes in EDL mode. That software needs to be signed into with an authorised Mi account. Xiaomi used to give out authorisations to people who asked on their forums, but they don’t anymore – you’ll need to buy one online (through a third party).

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  54. RySunGi
    RySunGi
    2020-08-11T21:07:32+00:00Added an answer on Tháng 8 11, 2020 at 9:07 pm

    Contact @miauthofficial on Telegram
    They’ll flash your device in no time

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  55. bolinhas_
    bolinhas_
    2020-04-30T07:58:37+00:00Added an answer on Tháng 4 30, 2020 at 7:58 am

    Okay thanks for the quick reply and for the post link. I downloaded **android-udev** from the official Arch repos and didn’t do anything more just for testing. After running `sudo adb reboot edl` I got this output:

    ❯ sudo adb reboot edl
    reboot.

    The device rebooted and went back to recovery mode. Everything looks the same as before doing the reboot.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  56. bolinhas_
    bolinhas_
    2020-04-30T02:32:52+00:00Added an answer on Tháng 4 30, 2020 at 2:32 am

    The ROM I got was from this [site](https://xiaomifirmwareupdater.com/miui/) because when I tried to get it from the official MIUI site it just redirected me to a page presenting MIUI 12. I check the shell code and it looks for the keyword grus which is the keyword name for my device if I am not mistaken,

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  57. Justdroid
    Justdroid
    2020-04-30T03:27:52+00:00Added an answer on Tháng 4 30, 2020 at 3:27 am

    Your safest bet would be to get a Xiaomi service center if there is one near you, but if you don’t have one near your go ask around on XDA or Telegram for people that might authorised account for EDL

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  58. fast90000
    fast90000
    2020-04-30T06:17:15+00:00Added an answer on Tháng 4 30, 2020 at 6:17 am

    I suggest getting your roms whether they be fastboot or firmware files from mifirm.net much more reliable and hasn’t failed me yet. Although likely EDL method may be your only way out, because the Bootloader locked itself which is why you can’t boot into it at all.

    I doubt the disparities of Linux or Windows are the main issue here. Look more into EDL, and just be careful with the Mi Flash Tool it really isn’t designed well, with selecting the flash and lock option off the bat….

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  59. bolinhas_
    bolinhas_
    2020-04-30T01:49:07+00:00Added an answer on Tháng 4 30, 2020 at 1:49 am

    I cannot attach images but I will try describing it to you. The utility has two options:

    1. **My device works normally. I want to mod it**: requires USB debugging so does not seem like the fix.
    2. **My device is bricked. I want to unbrick it**: when I choose this options it promts a popup saying **Feature not available yet**.

    That is why I ended up discarding this option. Thank you anyway.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  60. bolinhas_
    bolinhas_
    2020-04-30T07:14:40+00:00Added an answer on Tháng 4 30, 2020 at 7:14 am

    Yeah I tried using the Chinese ROM but I was getting the Mismatch error too. Which unlock tool are you talking about? Is it [XiaoMiTool V2](https://www.xiaomitool.com/V2/)?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  61. bolinhas_
    bolinhas_
    2020-04-30T08:08:39+00:00Added an answer on Tháng 4 30, 2020 at 8:08 am

    It’s alright mate. Thanks for spending the time in helping me. I will try to find out a way to get in contact with someone who can help me with the EDL stuff.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  62. mirsella
    mirsella
    2020-04-30T02:25:25+00:00Added an answer on Tháng 4 30, 2020 at 2:25 am

    the modification of the .bat file seams legit, plus it’s just commenting 2 lines you can easily do it.
    you get missamtching image and device with miflash too ? on the thread you linked one guys said he had issue with AMD cpu

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  63. bolinhas_
    bolinhas_
    2020-04-30T04:20:37+00:00Added an answer on Tháng 4 30, 2020 at 4:20 am

    Don not know what you talking about? Can you be more specific?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  64. bolinhas_
    bolinhas_
    2020-04-30T02:30:35+00:00Added an answer on Tháng 4 30, 2020 at 2:30 am

    I cannot tell you if I got the same error with Mi Flash Tool as I use it on the Windows laptop I mentioned on the post like a month ago and I have no access to other Windows PC at the moment. Regarding the CPU, no, my PC is using Intel i7 5500u.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  65. Justdroid
    Justdroid
    2020-04-30T03:04:33+00:00Added an answer on Tháng 4 30, 2020 at 3:04 am

    Sorry mate flashing the incorrect rom on a device and locking the device will cause a hard brick, since you locked your bootloader you won’t be able to flash anything. Only EDL mode can save you, so you either have to go to Xiaomi service center or find some one on the internet who has an authorized account for flashing in EDL mode or you have to figure out making the test point work.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  66. bolinhas_
    bolinhas_
    2020-04-30T18:26:17+00:00Added an answer on Tháng 4 30, 2020 at 6:26 pm

    Please if you are going to comment try to be helpful. This post will not only help me but future users will too.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  67. superl2
    superl2
    2020-04-30T07:31:03+00:00Added an answer on Tháng 4 30, 2020 at 7:31 am

    Wine cannot access USB devices. It should also not be used for software that can permanently damage devices if there are problems!

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  68. Fraeldo
    Fraeldo
    2020-04-30T01:20:25+00:00Added an answer on Tháng 4 30, 2020 at 1:20 am

    I’m not sure but if it said “Missmatch etc.” doesn’t that mean that it actually detected the phone in fastboot? Maybe it’s the wrong ROM

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  69. AxelRED_
    AxelRED_
    2020-04-30T01:08:34+00:00Added an answer on Tháng 4 30, 2020 at 1:08 am

    The problem is with your phone not with windows.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  70. superl2
    superl2
    2020-04-30T07:48:04+00:00Added an answer on Tháng 4 30, 2020 at 7:48 am

    It looks like your phone doesn’t have an EFDL fastboot command, so that’s not an option anymore.

    As for the ADB error, it looks like you’re missing udev rules. IIRC, you said you were on Arch? Take a look at [this wiki page](https://wiki.archlinux.org/index.php/Android_Debug_Bridge#Adding_udev_rules).

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  71. Akez_
    Akez_
    2020-05-05T20:56:11+00:00Added an answer on Tháng 5 5, 2020 at 8:56 pm

    Damn the x2 looks nice

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  72. punkesp
    punkesp
    2020-04-30T16:09:05+00:00Added an answer on Tháng 4 30, 2020 at 4:09 pm

    I had a similar problem a few weeks ago, I had fastboot/adb but unable to be detected in Linux/windows. In the mi9se telegram channel they told me that probably I fried the USB-C connector ( data was not transfer so I couldn’t get the device recognized) . So I replaced the part and now works perfect.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  73. kanalratten
    kanalratten
    2020-04-30T07:25:25+00:00Added an answer on Tháng 4 30, 2020 at 7:25 am

    I was referring to the original MiUnlock tool by Xiaomi. The website you linked to is a little weird, according to the feature list it can unlock the bootloader just like the official tool, but on the other hand the website states that one should use the official MiUnlock tool in your situation just a little further:

    >But there are cases in which there is no direct way to unbrick your device: the infamous “This MIUI version can’t be installed on this device” is the result of Global rom being installed on Chinese hardware with locked bootloader. In that case XiaoMiTool V2 would be able to flash only another Global rom (because of Xiaomi region enforcement), and that would be useless since the problem (Global rom/chinese hardware) would remain and the device would not boot.
    The only options in this case are:
    >A) if you bound a Xiaomi account to your device in the developer setting before brick, then you should be able to use MiUnlock (and in the future XiaoMiTool V2 too) to unlock your device. This is your best option, so always remember to bind your device to your Xiaomi account!

    Only works when the account was bound to the device though.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  74. bolinhas_
    bolinhas_
    2020-05-05T20:25:46+00:00Added an answer on Tháng 5 5, 2020 at 8:25 pm

    Totally agreed. Well if you are looking for a phone check out Realme, lol

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  75. Akez_
    Akez_
    2020-05-05T19:38:53+00:00Added an answer on Tháng 5 5, 2020 at 7:38 pm

    Thanks for your quick reply, sending 70$ to a random Ukraine guy kinda looks like a scam haha, but I guess I’ll have to do that if there’s really no other solution. Did you do it?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  76. bolinhas_
    bolinhas_
    2020-04-30T02:50:18+00:00Added an answer on Tháng 4 30, 2020 at 2:50 am

    I tried doing the script modification. In linux is a shell script which code looks like this:

    fastboot $* getvar product 2>&1 | grep “^product: *grus”
    if [ $? -ne 0 ] ; then echo “Missmatching image and device”; exit 1; fi
    CURRENT_ANTI_VER=1
    ver=`fastboot $* getvar anti 2>&1 | grep -oP “anti: \K[0-9]+”`
    if [ -z “$ver” ]; then ver=0; fi
    if [ $ver -gt $CURRENT_ANTI_VER ]; then echo “current device antirollback version is greater then this pakcage”; exit 1; fi
    fastboot $* erase boot
    if [ $? -ne 0 ] ; then echo “Erase boot error”; exit 1; fi
    fastboot $* flash crclist `dirname $0`/images/crclist.txt
    if [ $? -ne 0 ] ; then echo “Flash crclist error”; exit 1; fi
    fastboot $* flash sparsecrclist `dirname $0`/images/sparsecrclist.txt
    if [ $? -ne 0 ] ; then echo “Flash sparsecrclist error”; exit 1; fi
    fastboot $* flash xbl `dirname $0`/images/xbl.elf
    if [ $? -ne 0 ] ; then echo “Flash xbl error”; exit 1; fi
    fastboot $* flash xblbak `dirname $0`/images/xbl.elf
    if [ $? -ne 0 ] ; then echo “Flash xblbak error”; exit 1; fi
    fastboot $* flash xbl_config `dirname $0`/images/xbl_config.elf
    if [ $? -ne 0 ] ; then echo “Flash xbl_config error”; exit 1; fi
    fastboot $* flash xbl_configbak `dirname $0`/images/xbl_config.elf
    if [ $? -ne 0 ] ; then echo “Flash xbl_configbak error”; exit 1; fi
    fastboot $* flash abl `dirname $0`/images/abl.elf
    if [ $? -ne 0 ] ; then echo “Flash abl error”; exit 1; fi
    fastboot $* flash ablbak `dirname $0`/images/abl.elf
    if [ $? -ne 0 ] ; then echo “Flash ablbak error”; exit 1; fi
    fastboot $* flash tz `dirname $0`/images/tz.mbn
    if [ $? -ne 0 ] ; then echo “Flash tz error”; exit 1; fi
    fastboot $* flash tzbak `dirname $0`/images/tz.mbn
    if [ $? -ne 0 ] ; then echo “Flash tzbak error”; exit 1; fi
    fastboot $* flash hyp `dirname $0`/images/hyp.mbn
    if [ $? -ne 0 ] ; then echo “Flash hyp error”; exit 1; fi
    fastboot $* flash hypbak `dirname $0`/images/hyp.mbn
    if [ $? -ne 0 ] ; then echo “Flash hypbak error”; exit 1; fi
    fastboot $* flash devcfg `dirname $0`/images/devcfg.mbn
    if [ $? -ne 0 ] ; then echo “Flash devcfg error”; exit 1; fi
    fastboot $* flash devcfgbak `dirname $0`/images/devcfg.mbn
    if [ $? -ne 0 ] ; then echo “Flash devcfgbak error”; exit 1; fi
    fastboot $* flash storsec `dirname $0`/images/storsec.mbn
    if [ $? -ne 0 ] ; then echo “Flash storsec error”; exit 1; fi
    fastboot $* flash storsecbak `dirname $0`/images/storsec.mbn
    if [ $? -ne 0 ] ; then echo “Flash storsecbak error”; exit 1; fi
    fastboot $* flash bluetooth `dirname $0`/images/BTFM.bin
    if [ $? -ne 0 ] ; then echo “Flash bluetooth error”; exit 1; fi
    fastboot $* flash cmnlib `dirname $0`/images/cmnlib.mbn
    if [ $? -ne 0 ] ; then echo “Flash cmnlib error”; exit 1; fi
    fastboot $* flash cmnlibbak `dirname $0`/images/cmnlib.mbn
    if [ $? -ne 0 ] ; then echo “Flash cmnlibbak error”; exit 1; fi
    fastboot $* flash cmnlib64 `dirname $0`/images/cmnlib64.mbn
    if [ $? -ne 0 ] ; then echo “Flash cmnlib64 error”; exit 1; fi
    fastboot $* flash cmnlib64bak `dirname $0`/images/cmnlib64.mbn
    if [ $? -ne 0 ] ; then echo “Flash cmnlib64bak error”; exit 1; fi
    fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin
    if [ $? -ne 0 ] ; then echo “Flash modem error”; exit 1; fi
    fastboot $* flash dsp `dirname $0`/images/dspso.bin
    if [ $? -ne 0 ] ; then echo “Flash dsp error”; exit 1; fi
    fastboot $* flash keymaster `dirname $0`/images/keymaster64.mbn
    if [ $? -ne 0 ] ; then echo “Flash keymaster error”; exit 1; fi
    fastboot $* flash keymasterbak `dirname $0`/images/keymaster64.mbn
    if [ $? -ne 0 ] ; then echo “Flash keymaterbak error”; exit 1; fi
    fastboot $* flash logo `dirname $0`/images/logo.img
    if [ $? -ne 0 ] ; then echo “Flash logo error”; exit 1; fi
    #fastboot $* flash splash `dirname $0`/images/splash.img
    #if [ $? -ne 0 ] ; then echo “Flash splash error”; exit 1; fi
    fastboot $* flash misc `dirname $0`/images/misc.img
    if [ $? -ne 0 ] ; then echo “Flash misc error”; exit 1; fi
    fastboot $* flash aop `dirname $0`/images/aop.mbn
    if [ $? -ne 0 ] ; then echo “Flash aop error”; exit 1; fi
    fastboot $* flash aopbak `dirname $0`/images/aop.mbn
    if [ $? -ne 0 ] ; then echo “Flash aopbak error”; exit 1; fi
    fastboot $* flash qupfw `dirname $0`/images/qupv3fw.elf
    if [ $? -ne 0 ] ; then echo “Flash qupfw error”; exit 1; fi
    fastboot $* flash qupfwbak `dirname $0`/images/qupv3fw.elf
    if [ $? -ne 0 ] ; then echo “Flash qupfwbak error”; exit 1; fi
    fastboot $* flash vendor `dirname $0`/images/vendor.img
    if [ $? -ne 0 ] ; then echo “Flash vendor error”; exit 1; fi
    fastboot $* flash vbmeta `dirname $0`/images/vbmeta.img
    if [ $? -ne 0 ] ; then echo “Flash vbmeta error”; exit 1; fi
    fastboot $* flash dtbo `dirname $0`/images/dtbo.img
    if [ $? -ne 0 ] ; then echo “Flash dtbo error”; exit 1; fi
    fastboot $* flash system `dirname $0`/images/system.img
    if [ $? -ne 0 ] ; then echo “Flash system error”; exit 1; fi
    fastboot $* flash cache `dirname $0`/images/cache.img
    if [ $? -ne 0 ] ; then echo “Flash cache error”; exit 1; fi
    fastboot $* flash userdata `dirname $0`/images/userdata.img
    if [ $? -ne 0 ] ; then echo “Flash userdata error”; exit 1; fi
    fastboot $* flash recovery `dirname $0`/images/recovery.img
    if [ $? -ne 0 ] ; then echo “Flash recovery error”; exit 1; fi
    fastboot $* erase sec
    if [ $? -ne 0 ] ; then echo “Erase sec error”; exit 1; fi
    fastboot $* flash cust `dirname $0`/images/cust.img
    if [ $? -ne 0 ] ; then echo “Flash cust error”; exit 1; fi
    fastboot $* flash boot `dirname $0`/images/boot.img
    if [ $? -ne 0 ] ; then echo “Flash boot error”; exit 1; fi
    fastboot $* flash logfs `dirname $0`/images/logfs_ufs_8mb.bin
    if [ $? -ne 0 ] ; then echo “Flash logfs error”; exit 1; fi
    fastboot $* reboot
    if [ $? -ne 0 ] ; then echo “Reboot error”; exit 1; fi

    But even when the script finally runs, the device (not the terminal) returns the same error: a black screen with an unreadable, too small to read text at the top right corner.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  77. Spukeyfly
    Spukeyfly
    2020-04-30T13:10:05+00:00Added an answer on Tháng 4 30, 2020 at 1:10 pm

    No. Xiaomi only issues Authorized accounts to official Xiaomi service technicians as far as I know.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  78. bolinhas_
    bolinhas_
    2020-04-30T03:06:16+00:00Added an answer on Tháng 4 30, 2020 at 3:06 am

    Of course is not working on Windows. I am running the script on Linux. I could install a Windows virtual machines, of course, but I don’t really think the problem relays on the computer OS. However I will try to find an Windows ISO an create a virtual machine.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  79. TechExpert2910
    TechExpert2910
    2020-04-30T09:54:54+00:00Added an answer on Tháng 4 30, 2020 at 9:54 am

    #Here’s how to fix your phone with a custom ROM!

    Custom ROMs are usually what people flash onto their devices as soon as they can get their bootloader unlocked, to get rid of MIUI. You already have it unlocked 😉 Xiaomi hardly makes a profit on it’s cheap phones, so they make back money through MIUI. MIUI’s ads (tons in some regions!) and tracking earn them money, while violating your privacy and eating up battery & ram! It’s also pretty bloated. A custom ROM will give you a Google Pixel like experience, with clean Android. I’m here to help you out through every step. If you need _any_ help, feel free to ask 🙂

    1. First things first, choose your weapon- Either boot into a Windows VM (it takes just a couple of minutes to make!) or do this in your Linux terminal. The instructions have the exact statements for Windows, so if you’re using Linux you’ll need to do a bit of Googling. I recommend you use Windows for now 🙂

    2. Google “Mi 9SE XDA”. You’ll find the XDA page for your device there. XDA is a site where you can download custom ROMs and stuff for your device! Here’s the most popular ROM for your device – crDroid!

    https://forum.xda-developers.com/mi-9-se/development/rom-crdroid-v5-6-t3951589

    You’ll also need a custom recovery like TWRP to flash the ROM. Here’s TWRP for your device:

    https://forum.xda-developers.com/mi-9-se/development/recovery-unofficial-twrp-3-3-1-0-t3935470

    You may also want to flash Magisk of you want root. Here’s Magisk! (Optional)

    https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445/amp/

    Lastly, you need to flash GApps (Google Apps) on your device to get the PlayStore etc. Download the Arm64, Android 10, Nano package from here:

    https://opengapps.org/

    3. Now that you have the files download and ready from the respective websites, you just need to flash TWRP. Boot into fastboot, plug in your phone, and type the code in the “instructions” part of the TWRP link. You’ll need to flash vb meta first for your device, followed by TWRP. The instructions there are pretty clear!

    4. After you flash TWRP, you’ll need to flash your ROM using it. In the crDroid website, again under instructions, you’ll find out what exactly you need to do in TWRP. With TWRP’s GUI, you’ll generally need to wipe everything on your device, copy over your ROM, GApps and Magisk from your PC (it will show up on your pc as a storage device when you plug it in!) Then, flash your ROM, followed by GApps, followed by Magisk which is optional. And reboot!

    5. That’s it! It’s pretty straightforward, and again, if you have _any_ trouble feel free to ask 🙂 Enjoy a clean, fast phone!

    #Edit-
    Oh crap! After all this, I realised that your BL was locked 🙁 Mi Flash should work even with a locked BL, as long as you’re switching bw MIUI. The error you had should be because you either download the wrong device’s rom from their website, or it’s not a Mi 9SE and the seller lied to you. I suspect it’s the former, so re-download your ROM and try again!

    If this doesn’t work, you’ll need to use EDL.

    Once you boot into MIUI, get get your bootloader unlocked, and flash a custom ROM! Trust me, it’s worth it 😛

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  80. kanalratten
    kanalratten
    2020-04-30T06:20:06+00:00Added an answer on Tháng 4 30, 2020 at 6:20 am

    Ok, so you have a device

    1. from AliExpress
    2. shipped with modified firmware
    3. bootloader was unlocked or unlocked and relocked
    4. Missmatching image and device

    Have you tried to flash the Chinese ROM? Because that sounds a lot like a chinese model flashed with a global ROM.

    Edit: nvm, saw that you locked the bootloader. If you can’t unlock it again it’s a case for EDL. I couldn’t get the unlock tool to work in Linux (actually it didn’t work on my Ryzen laptop at all) but your mileage may vary.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  81. TheSwagInDisguise
    TheSwagInDisguise
    2020-04-30T15:19:56+00:00Added an answer on Tháng 4 30, 2020 at 3:19 pm

    Ah sorry! I did not see that. In that case maybe he can install it on an [external hard drive](https://www.google.com/amp/s/www.trishtech.com/2018/12/how-to-install-windows-10-from-an-external-hard-drive/amp/)?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  82. bolinhas_
    bolinhas_
    2020-04-30T02:19:28+00:00Added an answer on Tháng 4 30, 2020 at 2:19 am

    When I manage to make the script recognize the device in fastboot and avoid the blank prompt I describe on the post the error I get is the following:

    ❯ sudo sh flash_all.sh
    [sudo] password for angel:
    Missmatching image and device

    I have found some results on the Internet about the issue. As far as I can tell some people advise to touch the script code but I am quite concern with doing something like that. This is [one](https://forum.xda-developers.com/redmi-note-4/help/getting-mismatched-image-error-fastboot-t3638653) of the posts I have read, I trust XDA but still..

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  83. bolinhas_
    bolinhas_
    2020-04-30T00:42:29+00:00Added an answer on Tháng 4 30, 2020 at 12:42 am

    The script is inside the decompressed .tgz ROM file so I run it in that location. And yes I did change the permissions if had not I am pretty sure that the terminal would have thrown an error.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  84. bolinhas_
    bolinhas_
    2020-04-30T03:38:13+00:00Added an answer on Tháng 4 30, 2020 at 3:38 am

    Already done that. The problem is not with the computer OS. However there are online guides to perform ROM flashing on Linux.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  85. cuddleslapine
    cuddleslapine
    2020-04-30T15:15:36+00:00Added an answer on Tháng 4 30, 2020 at 3:15 pm

    He mentioned it being a work laptop, I can imagine it’s from his workplace thus messing with it could be problematic.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  86. bolinhas_
    bolinhas_
    2020-04-30T01:42:45+00:00Added an answer on Tháng 4 30, 2020 at 1:42 am

    The link you shared is for Debian based Linux distros, mine being Arch cannot use that kind of runfiles. However there is a version uploaded to AUR I will try with it.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  87. TheSwagInDisguise
    TheSwagInDisguise
    2020-04-30T12:00:05+00:00Added an answer on Tháng 4 30, 2020 at 12:00 pm

    Is there a reason why you can’t partition your drive and install windows? You can get the ISO for free from Microsoft. Once you are done, remove the partition.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  88. bolinhas_
    bolinhas_
    2020-04-30T03:58:58+00:00Added an answer on Tháng 4 30, 2020 at 3:58 am

    My life in one comment. LOL

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  89. bolinhas_
    bolinhas_
    2020-04-30T18:28:45+00:00Added an answer on Tháng 4 30, 2020 at 6:28 pm

    That is not a really helpful comment 😐

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  90. bolinhas_
    bolinhas_
    2020-04-30T04:27:14+00:00Added an answer on Tháng 4 30, 2020 at 4:27 am

    Look at the post comments maybe you find something useful. This [one](https://www.reddit.com/r/Xiaomi/comments/gabeat/bricked_xiaomi_mi9_s_how_to_fix_on_linux/fozhcld?utm_source=share&utm_medium=web2x) is probably the most useful I have read. Well maybe not useful to fix the problem but it definitely clears out some doubts.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  91. Akez_
    Akez_
    2020-05-05T19:21:52+00:00Added an answer on Tháng 5 5, 2020 at 7:21 pm

    Hey dude, I’m running into the same problem, EDL flashing seems to be the only way out as far as I understand. Have you managed to get your phone back with this method ? If so, did you find someone with a real Xiaomi authorized account ?

    Thanks in advance, I’d really appreciate some help 😉

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  92. bolinhas_
    bolinhas_
    2020-04-30T01:28:25+00:00Added an answer on Tháng 4 30, 2020 at 1:28 am

    I think that either using Windows or Linux a will have the same problem. I tried flashing a ROM in Windows in the past and there was no way.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  93. bolinhas_
    bolinhas_
    2020-04-30T01:37:16+00:00Added an answer on Tháng 4 30, 2020 at 1:37 am

    I tried the tool already but I got ir from XDA I will see if that maybe fixes it. Thanks! I will keep you updated.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  94. bolinhas_
    bolinhas_
    2020-04-30T01:07:01+00:00Added an answer on Tháng 4 30, 2020 at 1:07 am

    Thanks for the suggestion, but sadly that does not work it just maintains the blank prompt. Checkout the update I have made in the post maybe it rings a bell.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  95. bolinhas_
    bolinhas_
    2020-04-30T07:47:44+00:00Added an answer on Tháng 4 30, 2020 at 7:47 am

    It seems to be the only solution as I have read in other comments in the post. So I will look into it. Do you know some way I can contact someone with the aforementioned EDL Account?

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  96. Justdroid
    Justdroid
    2020-04-30T04:07:03+00:00Added an answer on Tháng 4 30, 2020 at 4:07 am

    That sucks, cant you return the device because if you cant go into edl mode you can kiss you device goodbye

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  97. bolinhas_
    bolinhas_
    2020-04-29T23:25:47+00:00Added an answer on Tháng 4 29, 2020 at 11:25 pm

    Thanks man, I suppose you upvoted the post, it not please do so it reaches more people. Thanks again for the support.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  98. bolinhas_
    bolinhas_
    2020-05-06T01:31:22+00:00Added an answer on Tháng 5 6, 2020 at 1:31 am

    Hahahaha the only solution I have is to have someone remotely control my PC, disassemble my device with tools I don’t have and without any guarantee of success in the process. So I just prefer to not expend any more time nor money in this.

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 2k
  • Answers 64k
  • Popular
  • Answers
  • Support Xiaomi

    To all of us Xiaomi phone owners, would you still ...

    • 427 Answers
  • Support Xiaomi

    MIUI RECOVERY MODE

    • 423 Answers
  • Support Xiaomi

    My xiaomi tv just forced me to watch a 60 ...

    • 334 Answers
  • MasterCee91
    MasterCee91 added an answer I'm almost sure I couldn't replicate this result with my… Tháng 5 27, 2025 at 1:55 chiều
  • Icy-Image-928
    Icy-Image-928 added an answer Do you maybe still have a link? Sounds good Tháng 5 27, 2025 at 1:41 chiều
  • nickbutler93
    nickbutler93 added an answer Got mine from AliExpress (I'm in UK) and it's exactly… Tháng 5 27, 2025 at 1:40 chiều

Related Questions

  • Taking still imaged from a video

    • 0 Answers
  • Xiomi HyperOS features are not coming after updating India

    • 0 Answers
  • Display issue on Redmi 13

    • 0 Answers
  • Redmi note 14 camera issue

    • 0 Answers
  • Kit photography Xiaomi 15 ultra

    • 5 Answers

Trending Tags

redmi note 12 redmi note 14 x xiaomi xiaomi 14t pro xiaomi redmi note 8 pro xiaomi redmi note 13

Explore

  • Home
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Help

Footer

Support Xiaomi | Community Xiaomi

Support Xiaomi

SupportXiaomi.com is a community-driven Q&A platform dedicated to Xiaomi users. It allows users to ask questions, share solutions, and collaborate to solve technical issues related to Xiaomi devices and services

About Us

  • Home
  • About Us

Help

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

© 2019. All Rights Reserved

Thêm/sửa đường dẫn

Nhập địa chỉ đích

Hoặc liên kết đến nội dung đã tồn tại

    Thiếu từ khóa tìm kiếm. Hiển thị các bài viết mới nhất. Tìm hoặc sử dụng phím mũi tên lên và xuống để chọn một mục.