Hi everyone, I wanted to root my phone because my google pay way not working after I unlocked the bootloader of my phone.
I used magisk to flash a version for my redmi 2201117TY, but after using fastboot to flash my "patched" rom back to my phone, it is now booting over and over again.
I installed twrp to try to install another ROM, but I'm not sure it'll work.
I installed several redmi note 11 img to see if it would fix it but i did not (V13.0.6.0.SGKEUXM, V14.0.2.0.TGKMIXM and V13.0.3.0.SGKEUSF which was my original one i suppose)
I just want to have an usable phone even if it means cleaning everything. How can I format everything back to make it usable?
I have access to adb, fastboot, TWRP. (usb debugger on)
I am not sure I can find the exact rom as it was a really wierd version from my operator (SGKEUSF) and I can only find one on internet which happen to not work. How can I unbrick my phone now?
NOTE : the SGKEUSF is an overlayer of the SFR (Altis) network so i would rather not use it
Format (not wipe) data in twrp, flash a rom that fits your needs (on sdcard), reboot recovery (!), reboot system. If fastboot access is given it's fixable. Had the same thing many times with spesn. This is the way it always works for me.
When you say "flash a rom", you mean a recovery or a fastboot one? Does it have an influence?
Just download latest version of MiFlash, download RN11 fastboot ROM, flash the ROM via MiFlash. In MiFlash make sure to to check the box whether of not to lock the bootloader after flash. Just to be safe leave it unlocked until after the phone is safe.
Related
Hi, I've just got my MI 5 and it is very, very nice. But I am now starting to look further into it and I am confused by all the different ROMs....
The one I have came with MIUI Global 7.3 | Stable MI7.3.3.0.0(MAACNDD). First confusion is that I can't find any references to a ROM by that number anywhere - it has double 0 at the end MI7.3.3.0.0. Is it a real ROM?
More generally I can't work out which ROM would be best for a user in the UK? Without rooting that is so CM is out for the moment.
Can anyone point me in the right direction, thanks.
It may be fake rom. If you want to use MIUI better flash xiaomi.eu ROM: https://xiaomi.eu/community/threads/6-6-23.32335/ but it will need unlocked bootloader.
Without unlocking bootloader you can flash official global using MiFlash: http://en.miui.com/download-299.html
Thanks! I have applied to unlock the bootloader and will flash the unofficial ROM ASAP. Well, I will do some more reading to see which is most appropriate to me.
palexr said:
Thanks! I have applied to unlock the bootloader and will flash the unofficial ROM ASAP. Well, I will do some more reading to see which is most appropriate to me.
Click to expand...
Click to collapse
Hey how did you get on with this ? did you get the unlock code ?
Im in a similar situation to you
Ry2mkk said:
Hey how did you get on with this ? did you get the unlock code ?
Im in a similar situation to you
Click to expand...
Click to collapse
Not done it yet.
I need to flash the China Dev ROM first apparently. I think I will use this method to flash to a "recovery" (?) ROM from which I can then flash the China Dev ROM and then subsequently flash one of the unofficial eu miui ROMs.
I'll update when I have found the time to do all these things.
Hey, I can tell that you'll have an easier time if you do what I did:
Apply for bootloader unlock. Do the unlock (follow the guide here to be sure) It should work on any ROM, mine was China 7.3.2.0.
Back up any images, videos etc. to your PC.
Download a ROM zip of your choice (xiaomi eu in your case but any compatible ROM on this forum or on miui forum will do)
Get the Xiaomi eu TWRP zip from their page. Extract the recovery img file, and the boot img file.
You could also get SuperSU zip from their page if you want root.
Do you have adb and fastboot? If not, just get "minimal adb and fastboot" from the forum here for Windows, or if you're on Linux your package manager probably has them both listed.
Put your phone into fastboot. (Switch off, press volume down and power button until it boots to a screen saying fastboot.) Then connect to your PC.
Open your command prompt from the "run" dialogue: cmd
Use this command: (double check this by googling)
fastboot flash recovery (path to recovery img)
Since you plan to flash xiaomi eu ( you don't need this for a CM based ROM):
fastboot flash boot (path to boot img)
Now to go into the recovery:
fastboot boot recovery (path to recovery img)
There is probably an easier way to do this but I'm not sure of it yet.
Your phone will boot into TWRP. You might face the unresponsive touchscreen bug (I did) but it goes away after some time (or you could plug unplug it from the PC multiple times, seemed to work for someone else on the forums).
If it asks you for the encryption password (it asked me, and I was on a Chinese ROM so it might ask you) then you'll have to wipe the data partition under the wipe menu (it's named as internal storage). This is why the backup was needed.
Under the wipe menu, you'll need to do a factory reset, but I wiped everything just to be safe. Now, just after wiping when I tried to access the internal storage from twrp (Under advanced > file manager) it didn't show me anything (probably because I wiped the internal storage). So just reboot into twrp (reboot > recovery) and it should show the internal storage now.
Open the internal storage on your PC (still connected, right?) and put the xiaomi eu ROM in the internal storage. Then go to install menu in TWRP and select the ROM and flash it. After it's done, it'll offer to wipe cache and dalvik cache. Do it to be safe.
Flash the SuperSU zip if you want it.
Reboot to system.
Profit.
Disclaimer: I haven't flashed xiaomi eu ROM so I cannot guarantee that the steps are perfect. Normally, I would just point you to xiaomi eu's website, but the reason I wrote in such detail is because they say "Install TWRP zip via updater app or fastboot", which is stupid, because not even OFFICIAL xiaomi ROMs work with the updater app (I tried to install global stable and it said couldn't verify package what even), and fastboot mode doesn't allow flashing zips... so. Also, I've read that xiaomi eu comes with Google apps preinstalled, so that's good. Otherwise you need to download even that zip and flash just after flashing the ROM.
andy356 said:
Hey, I can tell that you'll have an easier time if you do what I did:
Apply for bootloader unlock. Do the unlock (follow the guide here to be sure) It should work on any ROM, mine was China 7.3.2.0.
Back up any images, videos etc. to your PC.
Download a ROM zip of your choice (xiaomi eu in your case but any compatible ROM on this forum or on miui forum will do)
Get the Xiaomi eu TWRP zip from their page. Extract the recovery img file, and the boot img file.
You could also get SuperSU zip from their page if you want root.
Do you have adb and fastboot? If not, just get "minimal adb and fastboot" from the forum here for Windows, or if you're on Linux your package manager probably has them both listed.
Put your phone into fastboot. (Switch off, press volume down and power button until it boots to a screen saying fastboot.) Then connect to your PC.
Open your command prompt from the "run" dialogue: cmd
Use this command: (double check this by googling)
fastboot flash recovery (path to recovery img)
Since you plan to flash xiaomi eu ( you don't need this for a CM based ROM):
fastboot flash boot (path to boot img)
Now to go into the recovery:
fastboot boot recovery (path to recovery img)
There is probably an easier way to do this but I'm not sure of it yet.
Your phone will boot into TWRP. You might face the unresponsive touchscreen bug (I did) but it goes away after some time (or you could plug unplug it from the PC multiple times, seemed to work for someone else on the forums).
If it asks you for the encryption password (it asked me, and I was on a Chinese ROM so it might ask you) then you'll have to wipe the data partition under the wipe menu (it's named as internal storage). This is why the backup was needed.
Under the wipe menu, you'll need to do a factory reset, but I wiped everything just to be safe. Now, just after wiping when I tried to access the internal storage from twrp (Under advanced > file manager) it didn't show me anything (probably because I wiped the internal storage). So just reboot into twrp (reboot > recovery) and it should show the internal storage now.
Open the internal storage on your PC (still connected, right?) and put the xiaomi eu ROM in the internal storage. Then go to install menu in TWRP and select the ROM and flash it. After it's done, it'll offer to wipe cache and dalvik cache. Do it to be safe.
Flash the SuperSU zip if you want it.
Reboot to system.
Profit.
Disclaimer: I haven't flashed xiaomi eu ROM so I cannot guarantee that the steps are perfect. Normally, I would just point you to xiaomi eu's website, but the reason I wrote in such detail is because they say "Install TWRP zip via updater app or fastboot", which is stupid, because not even OFFICIAL xiaomi ROMs work with the updater app (I tried to install global stable and it said couldn't verify package what even), and fastboot mode doesn't allow flashing zips... so. Also, I've read that xiaomi eu comes with Google apps preinstalled, so that's good. Otherwise you need to download even that zip and flash just after flashing the ROM.
Click to expand...
Click to collapse
Thanks Andy, that is a really useful reply and I will definitely use to flash my next ROM.
In the meantime I managed to update to the latest official global ROM using the updater! I tried initially to Chinese Dev one put I got the same "can't verify package" error message. I had downloaded it on my PC and transferred it manually to the phone. I then downloaded the global version directly to the phone and that worked.
So now I need to figure out if i need to be on the Chinese dev rom to unlock or if the official global rom will do?
Unlocking can be done on any ROM. I unlocked on Chinese stable. It's good that you could flash the global ROM, at least the sense of urgency to get Google play services is gone now.
Solved !!!
I was able to flash global miui 9.5.
Hi ,
So after finally the bootloader is unlocked I tried to flash the global rom via mi flash tool.
Update failed and an error message is update crc list failed !
I tried flashing back the chinse rom and I get the same error.
I can boot the device to recovery mode, but its mi recovery 3.0, I have 3 options:
1.wipe data
2. boot to system
3. connect via pc suite
tried with pc suite but it says my device isn't supported.
The computer recognizes the device via MiFlash tool but in adb via cmd when I type adb devices I get blank row and its unable to find the device.
how can I make my phone usable again please?
I have tried many things I found on google but nothing worked.
Thank you all
Hi
Is fastboot mode able?
Try to unlock again.
what do you mean able?
the phone is recognized via Mi Flash tool but in adb via cmd it is not recognized.
I waited 700 hours for the unlock and the phone is unlocked.
can you explain please what is fastboot able and what do you mean to try to unlock again?
thx
Hi
Could you start the phone in fastboot mode?
StupiduserHH said:
Hi
Could you start the phone in fastboot mode?
Click to expand...
Click to collapse
yes the phone is in fastboot mode, and I cant back to normal mode for regular use.
I tried to unlock again like you said it the program said the device is already unlocked.
Have you tried the first option, wipe data?
Don't panick, since you have fastboot mode it's not bricked. Let's start by booting into TWRP.
Download TWRP and put it in the same directory with your FASTBOOT.exe file.
Open a windows dos prompt and get to the same directory as your FASTBOOT file.
Reboot your phone into FASTBOOT mode.
in your DOS prompt type "Fastboot boot yourrecoveryfilename.img" (change the yourrecoveryfilename.img to the TWRP recovery image file you downloaded)
your phone should reboot into TWRP if there wasn't an error. TWRP won't be permanent (if you reboot out of TWRP it won't retain it), but will allow you to flash ROM.
I've only ever flashed all my ROMs through TWRP, never used anything else since i unlocked the phone.
Let me know how this goes.
fastboot .exe file,where can i get it
_katho_ said:
Have you tried the first option, wipe data?
Click to expand...
Click to collapse
wherecan i download this fastboot file
Hello all.
Big screw up, I think. So I've had my MI 8 for a while now, no issues, until today I decided to install official lineage on it. The bootloader was unlocked. I flashed TWRP, but every time I rebooted the phone, it would go back to stock recovery, not TWRP. So here the issue started:
- Via Mi flash tool, I reflashed global MIUI 10 back to stock. I didn't realize I had relocked the bootloader...
- I tried reflashing TWRP without realizing I had relocked the bootloader.
- Thinking that the TWRP flash was done incorrectly again, I simply wanted to go back to stock, and attempted to use the mi flash tool to reflash, once again, the global stock MIUI 10. the flash tool said it was a success. (I still didn't realize I was on a locked bootloader)
- I am now on a bootloop. I can't get past the stock recovery screen, but I can go into fastboot. The recovery screen has a warning that the ROM cannot be used on the phone.
- I tried re unlocking the bootloader with the unlock tool, but because my Mi account credentials are not input on the phone (the phone was wiped clean), I cannot re unlock it.
What can I do? How can I get out of the bootloop, and hopefully re unlock and flash global rom clean again?
dancarriv said:
Hello all.
Big screw up, I think. So I've had my MI 8 for a while now, no issues, until today I decided to install official lineage on it. The bootloader was unlocked. I flashed TWRP, but every time I rebooted the phone, it would go back to stock recovery, not TWRP. So here the issue started:
- Via Mi flash tool, I reflashed global MIUI 10 back to stock. I didn't realize I had relocked the bootloader...
- I tried reflashing TWRP without realizing I had relocked the bootloader.
- Thinking that the TWRP flash was done incorrectly again, I simply wanted to go back to stock, and attempted to use the mi flash tool to reflash, once again, the global stock MIUI 10. the flash tool said it was a success. (I still didn't realize I was on a locked bootloader)
- I am now on a bootloop. I can't get past the stock recovery screen, but I can go into fastboot. The recovery screen has a warning that the ROM cannot be used on the phone.
- I tried re unlocking the bootloader with the unlock tool, but because my Mi account credentials are not input on the phone (the phone was wiped clean), I cannot re unlock it.
What can I do? How can I get out of the bootloop, and hopefully re unlock and flash global rom clean again?
Click to expand...
Click to collapse
Here I made this thread for you : https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
tsongming said:
Here I made this thread for you : https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
Click to expand...
Click to collapse
I finally got around fixing this. It turns out my phone was China, with Global ROM. So I did an EDL test point method and paid someone with an authorized account to access my laptop remotely to Flash the latest China ROM. I waited the required period for bootloader unlocking, and it's back alive!
I'm running official lineage 16, and I'm pretty happy with the results. I'm Using it as a daily driver instead of my all stock pixel 2 XL. No issues.
dancarriv said:
I finally got around fixing this. It turns out my phone was China, with Global ROM. So I did an EDL test point method and paid someone with an authorized account to access my laptop remotely to Flash the latest China ROM. I waited the required period for bootloader unlocking, and it's back alive!
I'm running official lineage 16, and I'm pretty happy with the results. I'm Using it as a daily driver instead of my all stock pixel 2 XL. No issues.
Click to expand...
Click to collapse
That's great news! It sucks that you were tricked into thinking your that phone is a global version. But at least you able to get things permanently sorted.
Sent from my Xiaomi MI 8 using XDA Labs
Agimax said:
Don't panick, since you have fastboot mode it's not bricked. Let's start by booting into TWRP.
Download TWRP and put it in the same directory with your FASTBOOT.exe file.
Open a windows dos prompt and get to the same directory as your FASTBOOT file.
Reboot your phone into FASTBOOT mode.
in your DOS prompt type "Fastboot boot yourrecoveryfilename.img" (change the yourrecoveryfilename.img to the TWRP recovery image file you downloaded)
your phone should reboot into TWRP if there wasn't an error. TWRP won't be permanent (if you reboot out of TWRP it won't retain it), but will allow you to flash ROM.
I've only ever flashed all my ROMs through TWRP, never used anything else since i unlocked the phone.
Let me know how this goes.
Click to expand...
Click to collapse
Hey, so I don't want to spam you, but seems like you really know about this and I desperately need some help...
Could you please take a look at my thread? https://forum.xda-developers.com/xi...nt/help-bricked-mi-mix-2s-installing-t4131269
Thank you
Trying to flash TWRp after unlocking bootloader. First time i tried it, said successful but booted to MIUI recovery
2nd time i tried said again successful, booted to TWRP, formatted data.
Phone then wouldnt reboot to TWRP. Instead it going straight to fastboot. I keep trying to flash again, every time saying successful, then it just boots to fastbooot, not recovery. Any ideas, phones dead at the minute
Tones1971 said:
Trying to flash TWRp after unlocking bootloader. First time i tried it, said successful but booted to MIUI recovery
2nd time i tried said again successful, booted to TWRP, formatted data.
Phone then wouldnt reboot to TWRP. Instead it going straight to fastboot. I keep trying to flash again, every time saying successful, then it just boots to fastbooot, not recovery. Any ideas, phones dead at the minute
Click to expand...
Click to collapse
The best way to recover the phone in your situation is to fastboot flash MIUI.
Get the latest MIUI fastboot ROM for your phone from here
https://xiaomifirmwareupdater.com/miui/raphael/
Install it using this guide from the official MIUI forums
https://c.mi.com/oc/miuidownload/detail?guide=2
If you see a blank page on a mobile browser, set it to view in desktop mode, for this page.
Make sure in step 5 you change the option at the bottom of the Mi Flash Tool to 'clean all' before hitting the Flash button.
MIUI will restore stock recovery when it reboots, so you need to do something to fix this. Flashing Magisk or a custom ROM will automatically preserve TWRP.
If you plan to keep MIUI and do not want Magisk, then you need to flash the vbmeta patcher from here
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
You need to flash TWRP, then immediately boot into TWRP.
Code:
fastboot flash recovery <path to twrp>
fastboot oem reboot-recovery
At this point you need to flash something in order to preserve TWRP (either a new custom ROM, Magisk, or the vbmeta patcher)
Cheers. You know this is all familiar. Pretty sure i had the same trouble 3 years ago with my mi mix 2
Anyway, lots of hiccups on the way along with this solution. Got to the point now where it says its flashing but it never stops.
EDIT: Bit more research, shortened the path names. Got an error. Commented out device name, got a different error. Switched to USB 2.0 port an FINALLy im back up and running.
Thank you so much for the help.
My phone keeps getting stuck on fastboot mode.
I'll flash the standard MIUI ROM using the MiFlash Tool, then I flash a custom recovery and a custom ROM(EvolutionX in this case), everything works and I can set up my phone, but as soon as I reboot I can no longer boot into android or recovery. i've tried flashing multiple recoveries using fastboot and straight up booting a recovery using "fastboot boot recovery.img" but it still always go to fastboot. The only solution is to start the process all over again, and obviously that's just not an option since I can never turn my phone off after that.
Any tips?
I think I got it solved, at least I got it to reboot into Android and TWRP.
I used this guide, but I'll write the steps I took here in case you're having the same issue. I wound up using xiaomi.eu MIUI rom, but it shouldn't matter what you use, I'll assume you're stuck in fastboot.
Do "fastboot flash vendor vendor.img", you get this vendor.img from the fastboot version of the official MIUI ROM, after you decompress the .tar.gz it should be in the "images" folder
Do "fastboot flash recovery twrp.img" then "fastboot boot twrp.img", this should flash twrp as your recovery and then boot into it, for some reason it only worked with the official twrp, not orange fox.
Assuming you got into TWRP you should now flash the latest firmware(I got mine from xiaomifirmwareupdater.com) make sure you download just the firmware not the entire rom, mine was named something like fw_raphael_miui... .zip
Format data (not wipe, format, it's a separate option in TWRP), it should ask you to type yes, so do that.
Flash whatever ROM you want
Hopefully this helps you, I hate finding forum posts marked "solved" but with no instructions. I also tried the "vbmeta_dv_shivsom.img" method some threads mentioned but it didn't work
Here's a pastebin of the guide I used in case the original link goes down
You can get all the files I mentioned from xiaomifirmwareupdater.com and the official TWRP site
Out of all that, the one instruction that solves it is the format data step. This is the magic step required. You always need to do this when flashing over MIUI.
Flashing vendor was totally irrelevant.
This will tell you what you need to do.
Simple Guide to flashing successfully
Here's a quick guide to some of the basics. Which recovery. ---------------------------- Use the latest from here. https://forum.xda-developers.com/k20-pro/development/recovery-unofficial-twrp-xiaomi-redmi-t3944363/post79823568 Do not use Orange...
forum.xda-developers.com
Thanks a lot man! I'm having this issue and it is beyond annoying. I've lost so much time with this BS.
Edit: Does not help actually
I just had the same problem with my Lamentablet.
I was trying stuff up and restarted it in fastboot mode and got stuck there.
So, ways to deal with it:
adb reboot recovery
rebooted the tablet in recovery mode. All I had then was to press the power button to activate Reboot. Solved! From now on it boots normally.
Meanwhile I had discovered that by typing
fasboot continue
the tablet would resume, but at the next reboot cycle, power down + up cycle or reboot after a crash, the tablet would reboot into fastboot mode...
And I found this out when it crashed (it's not called a Lamentablet for nothing!).
Luckily I had a PC with Linux around. It didn't have the software installed but drivers were already in the Kernel and installing adb and fastboot was a matter of mere seconds. If I didn't have an easily ready PC at hand, this tablet would have become a brick until plugged in and rebooted...
OMG Thanks dude.... I'm literally working to installing custom rom on redmi 7a from stock rom but I don't know what reason that make my phone always stuck on fastboot when format data, before this was fine.
Osga21 said:
I think I got it solved, at least I got it to reboot into Android and TWRP.
I used this guide, but I'll write the steps I took here in case you're having the same issue. I wound up using xiaomi.eu MIUI rom, but it shouldn't matter what you use, I'll assume you're stuck in fastboot.
Do "fastboot flash vendor vendor.img", you get this vendor.img from the fastboot version of the official MIUI ROM, after you decompress the .tar.gz it should be in the "images" folder
Do "fastboot flash recovery twrp.img" then "fastboot boot twrp.img", this should flash twrp as your recovery and then boot into it, for some reason it only worked with the official twrp, not orange fox.
Assuming you got into TWRP you should now flash the latest firmware(I got mine from xiaomifirmwareupdater.com) make sure you download just the firmware not the entire rom, mine was named something like fw_raphael_miui... .zip
Format data (not wipe, format, it's a separate option in TWRP), it should ask you to type yes, so do that.
Flash whatever ROM you want
Hopefully this helps you, I hate finding forum posts marked "solved" but with no instructions. I also tried the "vbmeta_dv_shivsom.img" method some threads mentioned but it didn't work
Here's a pastebin of the guide I used in case the original link goes down
You can get all the files I mentioned from xiaomifirmwareupdater.com and the official TWRP site
Click to expand...
Click to collapse
thanks bro. flashing vendor after a format from twrp did the good
Hey there, first post here,
Got several higs with my RN10S playing a bit.
How to flash a custom rom in Xiaomi phones?
-First unlock your BL with MiFlashUnlocker.
MiFlashUnlocker
-assuming you're on 12.5.16.eu and wants to go to custom rom;
-first of all you need to be on 12.5.16global, only global version works atm.
So MiFU was useless atm. Or No:
Open MiFlashTool 2018.5.28.0 and Select the folder where you previously extracted 12.5.16global tzg .
Connect your phone in fastboot mode, rescan beward to the corner right.
You could clean all and flash 12.5.16 and MiFU would have been usefull
You could save your "user data"
Or you could clean all and lock flash and lock- BL, for just security purpose telling yourself you would Re-unlock in the future and thus you would need to Unlock it again, so MiFU again..
For tho who still follow, you just fastboot flashed 12.5.16global,
Boot it, i assume that this part is important, cause flashing TWRP just after a fastboot rom flash could end up in unmounted partitions,
Flash TWRP with phone in fastboot mode:
fastboot flash boot recovery.img
To temporarely replace the boot by recovery,
fastboot reboot recovery to boot onto it
Once in there, Switch to slot B;
(Reboot button- there you have option to use either slots)
Flash your rom and reflash TWRP by using the tick next to the digest, while flashing the rom.
Reboot Recovery to get things settled,
Format data to just keep the freshly installed rom, (Wipe, Data, yes) and get it working and running
Reboot and enjoy!
To revert simply fire up MiFlashTool and an original 12.5.16 tgz file, for security purpose,
You may wants to format, flash, lock.
The same technique could be applyied if running Miui 13 and wants to revert to 12.5
There is ARB but doesn't seem to be taken onto consideration bout the program
I got a red !Phone is destroyed, press power to power off! And my phone is still working actually.
I take absolutely no credits for that,
Just figured out the messy workaround and gathered informations,
These roms are not from me, and i Can confirm their bootability,
Beside that, lightweight, but no fast charge.
Got back to stock, cause of banking app, fast charge
Go feel free to post your techniques to get yourself out if situation
twrp is not on redmi note 10 s yet is it ?