Redmi 5A (riva) OS Bootloop + TWRP loop - Xiaomi Redmi 5A Questions & Answers

Well, I will be straightforward... I'm probably pretty much f**ked.
I have a Xiaomi Redmi 5A which was never tampered with, ever. It had Android Oreo 8.1, MUIU 10, never rooted, never unlocked. It was my wife's. She bought a new phone and now I wanted to use this Redmi 5A.
So I intended to flash a custom ROM on it. I did my research and picked Ancient OS for the custom ROM (https://forum.xda-developers.com/t/rom-10-0-0_r39-official-ancientrom-civilization.4113993/).
I started all the work. First, unlock bootloader. I used MIFlash unlock provided by Xiaomi itself. Followed all the steps and unlocked the bootloader. After this it was time to flash a custom recovery. I chose TWRP. Tried to use their own TWRP riva image (twrp-3.5.0_9-0-riva.img) but it didn't worked. Whenever I flashed, after rebooting, the stock recovery would overwrite TWRP. This was supposedly because this version of TWRP was based on Nougat and my phone was on Oreo, so I searched a bit more and found a guy who has modified TWRP to work with Oreo. I flash his version and flashed lazyflasher afterwards et voilĂ ! The TWRP installed correctly and was no long overwritten by stock recovery.
After this I made a FULL backup of the stock ROM using TWRP (System, Cust Vendor, Data, Boot, Bootloader, EFS, Persist, Logo) and stored the backup on my computer.
Then I proceed to flash the Ancient OS ROM. First I went to wipe on TWRP > format data > yes. After this I went to wipe again > advanced and selected to wipe Dalvik, Data, System, Cust Vendor, Cache. And finally then, to install and flash the ROM. Things were a bit weird here because when I tried to flash TWRP threw Error 7 which is related to a script protection to determine if the ROM is compatible to your phone. The thing is... the ROM was compatible. I checked the "updater-script" inside the ROM file the code lines to check for the device were correct, it displayed riva as the model, which is my phone. One of the solutions to Error 7 was to eliminate these lines from the script, which I did and so I was able to flash the ROM. Everything went well and reboot to system.
System boot up, splash screen, main screen. All were good. Device timed-out and the screen locked. After the screen lock the only thing appearing were bizarre vertical red lines. Phone was still responsive, but screen was not being rendered properly. Forced reboot, splash screen... and main screen again, all normal. Tested to lock to notice the screen error again, and there it was: red lines just after I locked. Rebooted once again... only this time I went stuck on bootloop (on logo). Decided to boot to recovery to restore things, but, for my astonishment TWRP didn't started. The TWRP logo appeared as if it was loading, but nothing happened and if I leave it like this for some minutes, it just reboots to recovery once again but without TWRP being able to initialize and keept stuck on this reboot to recovery loop.
I don't have the slightest idea how can the recovery be affected by a ROM flash, seriously... I never saw this. It is a completely different partition. Worst of all, everything on TWRP was working before flashing the Ancient OS ROM.
I have no idead what to do. Can't enter system, can't access TWRP and can't use fastboot (most likely because USB debugging was disabled after OS was flashed). If some one can shed some light... it would be truly appreciated.

Auto-reply... Solved this issue flashing the original Stock ROM (I mean the Stock ROM that came with the phone back in 2017; before ANY updates.) with the own Xiaomi Mi Flash.
Be advised: This Xiaomi tool only works with devices that have unlocked bootloader.

Related

Robin on Nougat Won't Boot After Flashing TWRP

I just upgraded my rooted and bootloader unlocked Robin to Nougat last night by installing the official upgrade files from the Razer Community forum. I've tried installing TWRP several times through fastboot, and each time I can get the phone into recovery, but the phone will never boot into the system. It hangs on the black "Nextbit by Robin" screen, and never goes past it. If I turn off the phone by holding down the power and volume down buttons, and then turn it back on, it still won't get past that screen. I can always get into TWRP, though, but no matter what I do, the phone won't boot. I've been using TWRP 3.1.0. Is there a different version that's required for Nougat?
Saaber said:
I just upgraded my rooted and bootloader unlocked Robin to Nougat last night by installing the official upgrade files from the Razer Community forum. I've tried installing TWRP several times through fastboot, and each time I can get the phone into recovery, but the phone will never boot into the system. It hangs on the black "Nextbit by Robin" screen, and never goes past it. If I turn off the phone by holding down the power and volume down buttons, and then turn it back on, it still won't get past that screen. I can always get into TWRP, though, but no matter what I do, the phone won't boot. I've been using TWRP 3.1.0. Is there a different version that's required for Nougat?
Click to expand...
Click to collapse
My guess is you messed up the boot.img, or worse you corrupted some partition. If it's the boot.img, go get the latest factory image, unzip it, and move the file 'boot.Img' onto where your adb and fastboot files are located. Then go into fastboot on your Robin, and run this command on your PC:
Fastboot flash boot boot.img
If you corrupted something, you basically need to go into fastboot and use the flash-all.bat in the already unzipped Robin_nougat_88 folder to bring your phone back bone stock.
Hope that helped
Had this issue with my phone at first, but eventually just fixed it anyway by flashing the decrypted boot.img.
I ended up fixing it the same way you did. No matter how many times I took it back to stock by flashing the files in the Robin_nougat_88 folder and then flashing TWRP, no matter which version of TWRP I used, it would never boot. I finally flashed TWRP, then booted back into recovery, wiped the phone, loaded and flashed the decrypted boot image and SuperSU, and then the phone booted fine. I should have just done that in the first place since it was always my intention to unencrpyt it and rooted it again, anyway.

Urgent Help Needed; May have bricked my Zenfone 2 (Factory Resetted Lineage OS)

Hello Everybody,
I had a working Zenfone 2, flashed with LineageOS. I decided to factory reset my phone via the Settings app, as I was intending to pass it off to someone, but instead of taking me to the setup screen, I was brought to TWRP recovery. At this point, when I rebooted to system, it would take me to TWRP again and again. I then decided to wipe everything (dalvik, data, cache, internal storage, etc., except MicroSD, as I was intending to reflash and had the latest LineageOS nightly, GApps, addonSU, and latest TWRP for the Zenfone2).
Within TWRP, I went to install and chose the latest TWRP image to flash to recovery. I then rebooted and it went straight to my bootloader (Fastboot mode). I would show a picture but I am a new user so I cannot. It is the screen with the android laying down with its stomach open. At the top, I can choose between "Normal Boot", "Recovery", "Restart Bootloader", and "Power Off". At the bottom, it says "Fastboot mode", followed by a bunch of information about my device, followed by "Continue the fastboot process?" in green text.
At this point, I can't even get back to the recovery, after using the volume buttons to select to boot into Recovery. It will always bring me back here. Using Fastboot on my computer, I flashed TWRP recovery again, but when the phone reboots, it goes back to the bootloader again, even when I select reboot to Recovery. Since then, I've tried running the Unlock Marshmallow Bootloader file, and my phone said Unlock failed, and I was brought back to the bootloader screen (Except this time, the text at the bottom "continue the fastboot process?" is in blue instead of green). I tried running the Unlock Lollipop bootloader files, and the same thing, my phone said unlock failed, and that is where I stopped because I have absolutely no idea what I'm doing and fear I am just making things worse.
Can anyone help me get my phone functioning again? At this point, I don't care if I have LineageOS on it, or just plain Stock firmware from ASUS. I just want my phone to work again.
Thank you very much in advance.

Can boot into bootloader and nothing else..

hey all,
So I kinda bricked the device by trying to flash TWRP. Not sure what happened, after unlocking the bootloader (successfully, it says "Unlocked" at the bottom of the screen when powering up), I followed the instructions to flash twrp -- with the fastboot flash recovery twrp.img then fastboot boot twrp.img, but it wasn't working : it remained on the boot screen, never going into twrp or anywhere else.
But I could reboot to the system, and then the recovery was back to stock and accessable.
After trying further, erm... I can't boot into the system again. Recovery is absent, be it stock or twrp, and all I can get it the bootloader. Otherwise it just stays on the initial screen forever (with the logo in the middle, and the "Unlocked" at the bottom).
Not sure where to go from here. I'm guessing I could try and flash a custom rom manually by getting the various .img files instead of doing that easily with a .zip from TWRP. Could it work ? (and side question ; does anyone know where I could find such files ?)
Or is there another option from the bootloader interface ?
funny stuff,
turns out my phone is a redmi note 6 pro, not a redmi 6 pro
onto flashing the correct files then.
jesus f*cking christ.

Need help to go back to MIUI

So I recently changed my Xiaomi Mi MIx 2 screen (the one before was broken) and I wss using LineageOS 16 with TWRP.
The problem is that, after I changed the screen, I could not boot back to LineageOS because I was stuck in a grey screen (after booting the phone I am able to see the Mi logo and the LineageOS loading animation, but after that nothing).
I tried to do a Wipe from the TWRP, but whenever I try to open the recovery I get stuck again with a grey logo... (and in the recovery it does not even shows the TWRP logo, just straight the grey screen). I am still able, however, to go in Fastboot mode and I do have an unlocked bootloader
So my question was... does anyone encounteredd the same problem? And does anyone know how to fix it?
Can I perhaps just use the Mi Flash tool from fastboot to go back to stock MIUI without first wiping from TWRP things like Dalvik cache, cache, System ecc... or would this method fail/brick my phone?
Thank you a lot to anyone that would spend time to help me (and sorry for my bad English, I am trying to improve it).
Have a nice day!
The mi mix2s rewrites a new recovery after every boot, so to get TWRP to work you have to flash it from fastboot every single time. So the next time you boot, reflash TWRP, then you can boot into recovery 1 time and flash the rom of your choice
Hi Guys,
Recently i'm changed my broken display of Mix 2 after that when i'm entering to recovery it showing a gray screen also the phone is detecting on PC.
some TWRP worked but after flashing custom ROM same as showing gray screen after finished boot also doing second try the touch not working on TWRP.
Now i'm using Global version of MIUI11, when flashing custom TWRP via FASTBOOT MODE its booting up but after that restarting the phone revert back to the stock Recovery. Earlier i'm used the final version of MIUI12 Weekly EU ROM
Guys if you know any workaround for this please help me to get rid out of this
Thanks in Advance

[SOLVED] Bootloop after flashing IMEI qcn file, caught in vicious circle

/EDIT:
Alright, the thread can be closed. I somehow managed it.
In case someone faces the same issue, I used twrp to dd the sdf files back on the phone which stopped the reboots. After that, just wiped and formatted everything again and reinstalled the ROM.
Hello guys,
I hope you can help me with this issue since I've tried everything I know to fix this problem.
The plan:
Unlocking bootloader, installing TWRP and xiaomi.eu ROM on a new device.
Changing its IMEI with QPTS/QFIL afterwards.
What happened:
Unlocked successfully. Installed TWRP, xiaomi.eu ROM and Magisk.
After pulling the QCN backup and editing the file I pushed it back to the phone what seemed to work.
After rebooting, I noticed that the phone rebooted 5 seconds after showing me the "Enter PIN" screen.
Booted up again and the same thing happened.
I booted into TWRP, wiped and formatted "data", installed the ROM again. The phone started up normally and there was no reboot.
I went back to TWRP and flashed Magisk, the phone crashed again and everytime I boot it up, it immediately reboots after some seconds. Installing Magisk somehow triggers the phone to reboot on its own.
I thought to start over, flashed everything from stock using Mi Flash Tool and the newest China Rom.
After starting up the phone, the issue still exists. This time with this rom there is no difference between installing Magisk or not, the phone always reboots after showing up the miui welcome/setup screen.
Current situation:
The phone boots up Android, reboots after some seconds and goes into fastboot automatically. After the fastboot timeout it again reboots automatically, goes into the OS and crashes again and on and on.
No matter what I do, I can't keep the phone from rebooting.
And since I can't flash Magisk, I have no root.
This means that I can not use root to put the phone into diag mode to restore the original qcn file.
I have backups of the EFS partition and also sdf7/8/9/10 files. I just don't know how to restore them given the current situation.
Thank you very much in advance for your support!
Cheers

Categories

Resources