App's crashes on any ROM and random reboots. - Xiaomi Mi 9 Questions & Answers

Hello everyone, is someone faced such problem after flash and lock bootloader with MI FLASH. I bought my phone from my friend in used condition but it just like new, it was on miui 10 and with unlocked bootloader. I get an update of 10's after that to 11 and all worked like charm. But i decided to flash and lock the bootloader and it was my epic fail. After that neither the phone works properly nor the OTA updates are installing properly on stock miui . I downgraded the phone to 10 for properly OTA update but it doesn't matter, its still don't updating and randomly rebooting with message "find device closed unexpectedly". Please if someone faced this problem can you help me to figure out.:crying::crying:

Why don't you unlock bootloader again and try to to flash latest official fastboot rom (12.0.1.0 EEA for example) with mi flash tool?
And if it still shows "find device closed unexpectedly" after that, you could try to flash persist.img again from an old backup. If you don't have backup, you can extract persist.img from official rom (.zip version). But be aware that you can lose widevine L1 if you do so.
I'm not an expert, but i had a similar problem on my redmi note 7. Lost Widevine L1 forever, but at least phone worked again.

Lucky-thirteen said:
Why don't you unlock bootloader again and try to to flash latest official fastboot rom (12.0.1.0 EEA for example) with mi flash tool?
And if it still shows "find device closed unexpectedly" after that, you could try to flash persist.img again from an old backup. If you don't have backup, you can extract persist.img from official rom (.zip version). But be aware that you can lose widevine L1 if you do so.
I'm not an expert, but i had a similar problem on my redmi note 7. Lost Widevine L1 forever, but at least phone worked again.
Click to expand...
Click to collapse
I do that many times, i flashed latest and the first released official ROM but nothing is changed. What is Widevine?
P.S. my bootloader is unlocked

Related

Firmware and custom ROMs help

Hello all,
I did some searching here on XDA and on the internet regarding the flashing but I was unable to find any definitive answer to this so maybe someone here can help me out, here goes:
As far as I'm aware, Xiaomi does not provide a source code for their drivers (firmware) which means we need to use precompiled binaries for specific android versions, downloadable for example here:
https://forum.xda-developers.com/k2...mware-xiaomi-mi-9t-pro-redmi-k20-pro-t3955317
What I don't exactly understand is how can one go about installing a custom ROM (e.g LineageOS) and drivers in case there is a difference between Android versions when flashing a ROM (e.g going from Android 9 based MIUI 10 to Android 10 based LineageOS 17)
Most of the how-to's I found on installing a custom ROM specify that I should update to MIUI 11 (Android 10) first before installing LineageOS 17 so the firmware is up to date and working but I would like to avoid this due to Xiaomi's anti-rollback "feature" (fastboot getvar anti) which will then prevent me from installing back MIUI 10 (in case I might want to roll back)
Does anyone know how/where is the firmware stored exactly? As I understand, the firmware is installed via TWRP therefore I believe it's stored somewhere on filesystem, do I need to flash the firmware/ROM in specific order when flashing a new ROM via TWRP (ROM first, then firmware)?
For now, I came up with these steps:
1. Unlock bootloader - already done
2. Install TWRP
3. Flash custom ROM (Android 10 / LineageOS 17)
4. Flash Firmware (Extracted from Android 10 / MIUI 11)
5. Wipe data/dalvik/etc. + install gapps/magisk/etc.
6. Reboot
Will this work?
Thanks a bunch!
our phone doesn't have anti-rollback. Source: xiaomi.eu
my guide: bit.do/raphaelguide
I'd advise updating the firmware of stock miui, so you are up-to-date normally. The firmware is located in the vendor. the vendor and firmware files are combined. (links in my guide as well.
Updating to an AOSP rom from miui is also in my guide.
Hello there, I have bought an Xiaomi Mi 9t pro in Germany 2 Days ago.
The guy who used it before had unlocked the Bootloader and installed the TWRP. This is working great and I've got no Problem with that.
He Also installed another ROM. In The beginning there was the Original EEA Rom. Now it is runnning with "MIUI 11 | V11.0.5.0QFKCNXM|(stable)".
He said this ROM is the original Global ROM from China and because of that the Phone identifys as Redmi K20 Pro. I've got no Problem with that, because I know These are the same phones. But my Question is: What is the difference between these two ROM's and does it make sense to use the ROM witch is installed already? Because actually i wanted to test the phone with the original ROM. And where can I find the actuall original ROM?
Thanks a bunch!
duma218 said:
Hello there, I have bought an Xiaomi Mi 9t pro in Germany 2 Days ago.
The guy who used it before had unlocked the Bootloader and installed the TWRP. This is working great and I've got no Problem with that.
He Also installed another ROM. In The beginning there was the Original EEA Rom. Now it is runnning with "MIUI 11 | V11.0.5.0QFKCNXM|(stable)".
He said this ROM is the original Global ROM from China and because of that the Phone identifys as Redmi K20 Pro. I've got no Problem with that, because I know These are the same phones. But my Question is: What is the difference between these two ROM's and does it make sense to use the ROM witch is installed already? Because actually i wanted to test the phone with the original ROM. And where can I find the actuall original ROM?
Thanks a bunch!
Click to expand...
Click to collapse
Your phone now has the Chinese ROM, not global.
The Chinese ROM is not so good for use outside of China.
You would be better using the latest EEA ROM, which you can download from here
http://bigota.d.miui.com/V11.0.3.0....EUXM_20191029.0000.00_10.0_eea_80e1c5de81.tgz
This is a fastboot ROM and needs to be flashed in fastboot mode, not with TWRP.
There are plenty of guides here on flashing a fastboot ROM, just be careful not to re-lock the bootloader.
Thank you for the fast answer. I will try to install the original ROM as fast as i can find a good guide on how to install via fastboot .
Can you please tell me whats the difference in the methods of installing a ROM via fastboot or TWRP? Up to now I always worked with TWRP. But this is my first Xiaomi device.
And why the bootloader should be re-locked when I'm installing the ROM? And is there any problem with re-locking the bootloader?
duma218 said:
Thank you for the fast answer. I will try to install the original ROM as fast as i can find a good guide on how to install via fastboot .
Can you please tell me whats the difference in the methods of installing a ROM via fastboot or TWRP? Up to now I always worked with TWRP. But this is my first Xiaomi device.
And why the bootloader should be re-locked when I'm installing the ROM? And is there any problem with re-locking the bootloader?
Click to expand...
Click to collapse
Xiaomi release 2 ROMs for each version, a recovery ROM and a fastboot ROM.
The recovery ROM is a standard ROM that is flashed via recovery, i.e. TWRP. Fastboot ROMs are more for recovering a soft bricked phone. They include most of the phones partition images, not just the system image. When changing to a different region ROM, you need to flash a fastboot ROM, not the recovery ROM.
Flashing fastboot ROMs is normally done with the Mi Flash Tool. The tool defaults to flash and lock the bootloader. You need to manually change the flash option from the default to flash only option (called 'clean all' in the tool)
It is only possible to re-lock the bootloader when you are flashing a ROM that is for the original region of the phone, if you try and lock the bootloader when flashing a ROM for a different region, it will brick the phone.
Because you've bought the phone second hand, and the seller already lied about the Chinese ROM being global, then there is no guarantee that the phone is a genuine European model, so it is best to play safe and not re-lock the bootloader when flashing the EEA ROM.
Robbo.5000 said:
Xiaomi release 2 ROMs for each version, a recovery ROM and a fastboot ROM.
The recovery ROM is a standard ROM that is flashed via recovery, i.e. TWRP. Fastboot ROMs are more for recovering a soft bricked phone. They include most of the phones partition images, not just the system image. When changing to a different region ROM, you need to flash a fastboot ROM, not the recovery ROM.
Flashing fastboot ROMs is normally done with the Mi Flash Tool. The tool defaults to flash and lock the bootloader. You need to manually change the flash option from the default to flash only option (called 'clean all' in the tool)
It is only possible to re-lock the bootloader when you are flashing a ROM that is for the original region of the phone, if you try and lock the bootloader when flashing a ROM for a different region, it will brick the phone.
Because you've bought the phone second hand, and the seller already lied about the Chinese ROM being global, then there is no guarantee that the phone is a genuine European model, so it is best to play safe and not re-lock the bootloader when flashing the EEA ROM.
Click to expand...
Click to collapse
Thank you for this great description. I will try top flash the european ROM this weekend. After everything works succesfull i will write here .
Only one more question.. flashing the original ROM with re-locking the Phone will deinstall TWRP and install an original bootloader?
duma218 said:
Thank you for this great description. I will try top flash the european ROM this weekend. After everything works succesfull i will write here .
Only one more question.. flashing the original ROM with re-locking the Phone will deinstall TWRP and install an original bootloader?
Click to expand...
Click to collapse
Yes.
costorektypico said:
Yes.
Click to expand...
Click to collapse
So now I flashed it by fastboot and its running. I had to watch some videos an dread some sides to understand what to do to make the Mi Flash tool run. But all in all its not that complicated as i thought.
When I start the phone its still unlocked, but i think there is no TWRP anymore. Thats not that important for me now. But I'm missing some Features witch were in the chinese ROM already. For example the App drawer. I Thougt it would be normal to have one because up to now i only had Phones with it :/. I've read it will come with some extra updates, and i hope it will come soon.
Thank you for your help. I hope i will accustom myself to use the phone without the app drawer.

Widevine L1

Anybody find any solution on this matter? I loaded persist image. I tried every way. I could not return to the L1 certificate. with the latest Android 10 FASTBOOT file. I installed fastboot with MIFLASH. Still l3
Nagodnagod said:
Anybody find any solution on this matter? I loaded persist image. I tried every way. I could not return to the L1 certificate. with the latest Android 10 FASTBOOT file. I installed fastboot with MIFLASH. Still l3
Click to expand...
Click to collapse
Global/EEA firmware : L1
Chinese firmware : L3
Check your firmware version first !
which version i could not understand
Nagodnagod said:
which version i could not understand
Click to expand...
Click to collapse
Ok, i see. You have a global firmware and it looks like the Netflix issue found in the previous android version is still present in Q.
I'm not using android 10 yet. Wait for a fix from MIUI or try a custom rom !
If you want to use Android 10 with Widevine L1 working. I suggest using a custom rom, I am using a crDroid official rom on my Mi 9 Lite. It works perfectly, SafetyNet is passed and I have Widevine L1. As you can see here with Netflix.
If you have not flash to the PERSIST section, there is no problem. If the installation is done, there is no ROM use l1
Did you relocked bootloader again? I think it is mandatory on Global/EEA rom to have L1.
yes i locked again but l3
Nagodnagod said:
yes i locked again but l3
Click to expand...
Click to collapse
Weird.

Question Rom 12.5.5.0 RKDEUVF

I have the Rom from Vodafone which however does not receive updates. Would it be possible to install the standard European ROM RKDEUXM without unlocking the bootloader and without losing the phone configuration?
I have the full rom file for fastboot installation 12.5.19.0.
Really thanks
Unfortunately, no, without losing configuration and data, you wont be able to flash any other version roms.
goodsale said:
I have the Rom from Vodafone which however does not receive updates. Would it be possible to install the standard European ROM RKDEUXM without unlocking the bootloader and without losing the phone configuration?
I have the full rom file for fastboot installation 12.5.19.0.
Really thanks
Click to expand...
Click to collapse
1. It's impossible to flash different rom without unlocking bootloader.
2. It's impossible to unlock bootloader without wiping the phone.
I see that is possible for Xiaomi phone using XiaomiTool V2 via ADB (debug usb enable).
You loose data but you don't have to unlock bootloader.
I don't know if it works with 11t pro...
I'd say DON'T DO IT. Switching ROM like that without unlocking the bootloader is a very bad idea. If something goes wrong your recovery options will be very limited. For sure though if you don't format data after flashing a different region ROM the device will end up soft bricked. Either a bootloop or perma fastboot mode. Adb doesn't work with stock recovery and stock recovery doesn't offer the "format data" option anymore just "wipe" which is not the same and won't fix anything. So unlock bootloader first.
Thanks!
But is it possible to re-lock after rom installed and is it possible to have ota regular updates?
goodsale said:
Thanks!
But is it possible to re-lock after rom installed and is it possible to have ota regular updates?
Click to expand...
Click to collapse
You can only relock bootloader when the rom installed in your phone is the stock ROM came with your phone or else you'll brick it and have to reflash in EDL mode using test point.
Now I'm with RKDEUXM Rom...no brand Vodafone.
I've closed bootloader After flash and small test.
All work fine, no brick and Ota updates downloaded and installed.
Thanks!!!
goodsale said:
Now I'm with RKDEUXM Rom...no brand Vodafone.
I've closed bootloader After flash and small test.
All work fine, no brick and Ota updates downloaded and installed.
Thanks!!!
Click to expand...
Click to collapse
Care to share the process so others can learn as well?
Yes look here
Lock bootloader on change ROM from Vodafone to EEA
Hello dears! A pleasure to be here. I recently got a Xiaomi 11T Pro from Vodafone (MIUI Global 12.5.6 Estable RKDEUVF) and I want to change it to the global one (I have read that operator roms does not work properly good) so If Im not wrong It...
forum.xda-developers.com

Should i flash official miui to completly reset my phone ?

Hi guys,
i flashed tons of roms since i got my phone. Now i want to revert back to miui 10 android 9 ~v10.3.17 - xiaomi.eu, as miui 10 always was best with battery life for me.
Should i first flash the official stock rom from c.mi.com with fastboot mi flash tool to get rid of all my mess i have done in those years or can i just flash xiaomi.eu via twrp ?
I have the chinese version redmi k20 pro 8gb 128gb raphael.
Thanks.
Danny94 said:
Hi guys,
i flashed tons of roms since i got my phone. Now i want to revert back to miui 10 android 9 ~v10.3.17 - xiaomi.eu, as miui 10 always was best with battery life for me.
Should i first flash the official stock rom from c.mi.com with fastboot mi flash tool to get rid of all my mess i have done in those years or can i just flash xiaomi.eu via twrp ?
I have the chinese version redmi k20 pro 8gb 128gb raphael.
Thanks.
Click to expand...
Click to collapse
Flashing Xiaomi.eu will only replace the system. It's probably better that you first re-flash the complete stock, also MIUI 10/A 9, to have the clean situation like in the old days
@zgfg thank you very much for your answer.
May you can tell me if i should prepare anything to get the bootloader unlocked again easily or is it the same procedure like requesting the file from mi.com ?
And maybe you can tell me if i can flash eea or global rom aswell as i live in Italy/europe or china is required ?
Danny94 said:
@zgfg thank you very much for your answer.
May you can tell me if i should prepare anything to get the bootloader unlocked again easily or is it the same procedure like requesting the file from mi.com ?
And maybe you can tell me if i can flash eea or global rom aswell as i live in Italy/europe or china is required ?
Click to expand...
Click to collapse
I suppose your BL is unlocked since you were flashing.
You can check in Fastboot:
fastboot oem device-info
Regarding how to flash the fastboot firmwares, see (I didn't use myself):
How to Flash Xiaomi Firmware using MIUI Fastboot and Recovery ROM
Ever since the dawn of affordable smartphones in countries like India and China, the demand for more has increased. The consumers now, more than ever, are
www.getdroidtips.com
Long ago, when I switched from stock to Xiaomi.eu, I switched from EEA (but AFAIK, Xiaomi.eu guides nowhere require to be coming specifically from EEA, Global, China, Russia)
Yeah im unlocked, but if i recognize it correctly flashing stock will lock bootloader again.
Need to do further research tomorrow than if i can prevent that somehow .
Thanks.
Danny94 said:
Yeah im unlocked, but if i recognize it correctly flashing stock will lock bootloader again.
Need to do further research tomorrow than if i can prevent that somehow .
Thanks.
Click to expand...
Click to collapse
Take a look to the screenshot from Mi Flash in the guide, there is the option Clean all vs Clean all and lock
That is a common issue, people leave on default: Clean all and lock and if anything goes wrong while flashing (wrong firmware or something) they hard brick their phones and since they locked them, they cannot flash again (and must ask for the paid EDL support)
zgfg said:
Take a look to the screenshot from Mi Flash in the guide, there is the option Clean all vs Clean all and lock
Click to expand...
Click to collapse
Thank you so much for pointing that out, i surely have missed that.
If i can keep it unlocked may i stay at stock and will do a lot of debloating and optimization as i wont update it .

Question twrp, magisk, boot.img on miui 13.0.5.0 SKAEUXM???

Hi
Kind of in a pickle here, I have upgraded to the EU version of the rom and then updated to the above 13.0.5.0 SKAEUXM. Now the issue I am facing is no matter what version of twrp I install or boot into it doesn't show me the internal storage and neither can I copy anything there for some reason. ( That's TWRP out of the question trying to flash magisk or trying to extract the phones boot.img? )
Neither can i get hold of miui 13.0.5.0 SKAEUXM zip file where i can extract it and utilise the boot.img either as its no where to be found aka the full rom?
How do I root with magisk on my mi 11 ultra miui 13.0.5.0 SKAEUXM. Any suggestions or links would be greatly appreciated.
Regards
You can only root via adb fastboot using the fastboot version of your rom to patch the original boot.ini. AFAIK there are no fastboot versions of these roms quite yet
xNAPx said:
You can only root via adb fastboot using the fastboot version of your rom to patch the original boot.ini. AFAIK there are no fastboot versions of these roms quite yet
Click to expand...
Click to collapse
okay i managed to find a twrp and use the following command
fastboot flash boot_a twrp.img
that worked fine and i was able to see the storage. flashed magisk canary which then sent the phone into twrp loop.
restarting again installing the eu 12xxx rom which i will update to 13.0.5.0 SKAEUXM and then re do the procedure with normal magisk and see how that fairs. when i do normal fastboot flash recovery twrp.img i get a failed message.
will update
AliasFaux said:
okay i managed to find a twrp and use the following command
fastboot flash boot_a twrp.img
that worked fine and i was able to see the storage. flashed magisk canary which then sent the phone into twrp loop.
restarting again installing the eu 12xxx rom which i will update to 13.0.5.0 SKAEUXM and then re do the procedure with normal magisk and see how that fairs. when i do normal fastboot flash recovery twrp.img i get a failed message.
will update
Click to expand...
Click to collapse
Use unsupported version of twrp with miui 13 (A12) can brick your phone, remember that
Still no working twrp for miui 13 (A12)
everything's been fine I been testing various roms and trying to get boot.img from miui 13 eu rom but while being careful on one occasion i forgot to check clean all and instead it was sat on clean all and lock and it locked and now i have fast boot only no recovery and boot loader is locked, I don't get why they would design this software to auto select clean all and lock rather than nothing so you get to select before you can even proceed unless it was malicious and done on purpose?? I done the unlock thing last night and have to wait 134 hours.
pay for a phone and still be at the mercy of the manufacturer, no, fk that. this phones getting flashed back and sent right back up the Chinese where the sun don't shine.
anyways what option do i have apart from now being at the mercy of another foreigner who just wants you to pay him before he even wants to talk to you or answer any questions or ask any about your issue.
all i got was pay no refund pay no refund from one dude in india no questions no nothing. i asked questions and he couldn't even answer one of them apart from with a maybe and a ? (Wont take any names)
so this is where I'm at fastboot with locked bootloader, no recovery or data. cant twrp on locked device cant set to edl mode via fastboot nothing.
any attempt has rendered cant do anything on locked bootloader. I can see the phone on mi flash and try to flash it but keep getting the locked error.
I have tried a global rom a eu rom a chinese rom hell even a engineering rom all the above give cant erase on locked stae error while the engineering one gives Antirollback error, and yes i have deleted the section of anti rollback check still get some other error?
Over to you guys.
AliasFaux said:
everything's been fine I been testing various roms and trying to get boot.img from miui 13 eu rom but while being careful on one occasion i forgot to check clean all and instead it was sat on clean all and lock and it locked and now i have fast boot only no recovery and boot loader is locked, I don't get why they would design this software to auto select clean all and lock rather than nothing so you get to select before you can even proceed unless it was malicious and done on purpose?? I done the unlock thing last night and have to wait 134 hours.
pay for a phone and still be at the mercy of the manufacturer, no, fk that. this phones getting flashed back and sent right back up the Chinese where the sun don't shine.
anyways what option do i have apart from now being at the mercy of another foreigner who just wants you to pay him before he even wants to talk to you or answer any questions or ask any about your issue.
all i got was pay no refund pay no refund from one dude in india no questions no nothing. i asked questions and he couldn't even answer one of them apart from with a maybe and a ? (Wont take any names)
so this is where I'm at fastboot with locked bootloader, no recovery or data. cant twrp on locked device cant set to edl mode via fastboot nothing.
any attempt has rendered cant do anything on locked bootloader. I can see the phone on mi flash and try to flash it but keep getting the locked error.
I have tried a global rom a eu rom a chinese rom hell even a engineering rom all the above give cant erase on locked stae error while the engineering one gives Antirollback error, and yes i have deleted the section of anti rollback check still get some other error?
Over to you guys.
Click to expand...
Click to collapse
Relock bl when flash different branch rom with original rom, will make the phone cannot boot. Only way to fix it is someone with special account, just can fix it in some ez step
UPDATE
so the phone is back on Chinese rom now, that it came with but the boot loader is locked until another 120 hours...can I install the eu rom over this chinese rom or replace it without boot loader being unlocked or do i have to wait the 120 hours before i can unlock and then wipe and reinstall eu rom?
AliasFaux said:
UPDATE
so the phone is back on Chinese rom now, that it came with but the boot loader is locked until another 120 hours...can I install the eu rom over this chinese rom or replace it without boot loader being unlocked or do i have to wait the 120 hours before i can unlock and then wipe and reinstall eu rom?
Click to expand...
Click to collapse
u must wait
yes "MUST" lol
okay until i can upgrade again i want to go to eu rom from Chinese but there are 2 variants, EU and EEA which is the one people go for that say is a better version than the Chinese rom?
AliasFaux said:
okay until i can upgrade again i want to go to eu rom from Chinese but there are 2 variants, EU and EEA which is the one people go for that say is a better version than the Chinese rom?
Click to expand...
Click to collapse
EU isn't rom variant. They call that EU because full name is xiaomi.EU
Remember official rom branch: global, global EEA, global IN, china
Xiaomi.eu is just china miui with some mods for working with global user
hungragezone said:
EU isn't rom variant. They call that EU because full name is xiaomi.EU
Remember official rom branch: global, global EEA, global IN, china
Xiaomi.eu is just china miui with some mods for working with global user
Click to expand...
Click to collapse
i'm even more confused now, I went from china rom to global but got told there an eu rom thats better which everyone switches to, by that I assumed it was the Europe variant aka you had chinese, indian, global and then europe.
which is that rom that alot of people recomend? do they mean EAA rom? aka this
Download Xiaomi Mi 11 Pro/Ultra Firmware ROM TWRP (star)
Xiaomi Mi 11 Pro/Ultra Firmware (star) ⭐ Mi 11 Pro/Ultra ROM ⭐ Mi 11 Pro/Ultra Global ROM - EU ROM - TWRP - Fastboot ROM
mifirm.net
if not can you link which one please so i have an idea and prepare to download for upgrade when i can unlock thx.
Regards
Everyone relax.
Edit: There is no need to respond to this message.
Edit 2: Thread cleaned. I will be talking to everyone involved shortly.

Categories

Resources