Strange issue. So I decided to flash AICP and gave it a shot, but for some reason the setup did not go past the 'set fingerprint' screen. So I decided to head back to my OOS nandroid backup. But after boot I was not able to unlock the screen with the same pattern that I used to unlock both TWRP and the encryption of the device. What could be wrong?
It's a twrp bug. Before u make a nanodroid backup remember to remove your lockscreen password
I setup pattern-unlock yesterday and used it a few times. Now that same pattern isn't working. I can boot into TWRP and that pattern will work. So I factory reset and the pattern lock is still there and I am still unable to get into my phone. How can I fix this?
Edit: I forgot to mention that I am getting an error "unable to mount storage".
Hi,
Today I tried to flash a new version of Lineage OS on my phone, while the encryption pattern on boot was stil enabled. I didn't realise this would cause such a problem..
Right after flashing Lineage OS the way it should, a message pops on the screen asking me to enter my pattern to start the device while booting, so I entered my code after which it says my code is wrong. The strange thing is that TWRP also asks for that code on startup, except now code is working.
So I can boot in recovery mode and decrypt the device with my old code, but as soon as I try to start the rom (tried LineageOS, my Nandroid backup and AOSPA) the same code doesn't seem to work.
I've already tried this method: https://forum.xda-developers.com/nexus-6p/general/psa-twrp-backups-lockscreen-security-t3245070, but this resulted in a bootloop.
Any idea how I can get rid of this problem and start using my phone again?
Thanks alot in advance!
Fixed it by using the 'Format Data' function in the wipe screen of TWRP! :good::good:
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.
Hi,
I am new here, and before you judge me for posting this new thread, I want you to know, I really read A LOT of threads regarding bootloops problem.
But, mine is different.
So, I had LOS 15.1.x (cant remember exact version, at that time, i wasn't really paying attention) installed on my phone. Then, about a week ago I decided to upgrade it to latest LOS 17.1.x.
I flashed it with twrp, and all went well, it fully booted and I managed to fully setup my phone.
But the problem is, when the screen locks (or if I press the power button to lock it), a couple of seconds later phone reboots. Then it boots to Lineage and, again, if no activity, screen locks, and a couple of second later phone reboots. If i leave it, it just goes on and off forever (until battery dies). If i enter screen lock pin, I can normaly use my phone for hours.
It's just that it must not be locked.
Interesting, in twrp, this doesn't happen. I can lock the screen in twrp, and 5 minutes (or a day) later, it is still in twrp. But, than again, twrp is recovery, not full ROM.
So, i tried with different Lineage ROMs, no difference.
Then, I installed latest MIUI 9 (but still ARB3, because phone was ARB3), but, the same problem. Then, I installed MIUI11 (stable, global, ARB4) to update the firmware, and, again: Booted in Miui (let it encrypt my phone), can use the phone normally, as soon as i lock the screen (or leave it to lock itself) a couple of seconds later phone reboots.
I tried Lineage recovery, different twrp versions, Xiaomi recovery, flashed DM-verity zip, nothing helps.
Then, i managed to found one Lineage, it was 15.1.x (I am not at home right now, can tell you exact version as soon as I can), and the phone didn't reboot, BUT, wifi was not working (wifi works normally in LOS 17.x, MIUI 9 and 11), so I gave up.
Yesterday I installed latest LOS ROM, fully booted my phone, pressed power button a couple of times (to check if it is still alive, as it doesn't reboot instantly as the screen locks). Of course it rebooted, but i pressed volume UP and power button, to enter in twrp, where I copied log files to sd card.
In dmesg.log I noticed, it had some problem with i2c bus (as far as I know this is for communication between cpu and external sensors), but dont't know if it is related to my problem. As I am new here, I dont know if I am alowed to post attachments (dmesg.log, recovery.log)?
If this is a hardware problem, why can I use phone normally for hours (assuming i don't lock my screen)?
Also, if it was a hardware problem, why it normaly works in lineage 15.1.x (although, wifi doesn't work there)?
Did any of you had the same problem? I couldn't find any similar problem here, or anywhere else.
Any help would be much appreciated.
OK, here is kernel log. I powered on the device, let it boot to the latest Lineage OS (lineage-17.1-20210201), then entered pin number and waited. Screen turned off, and a couple of second later device restarted (showing "Mi" and at the bottom "unlocked"). Then I imediately pressed "power + volume UP" to boot into recevery, where I copied log file).
I noticed multiple i2c errors, but couldn't find where exactly device initiated reboot.
klepec said:
Hi,
I am new here, and before you judge me for posting this new thread, I want you to know, I really read A LOT of threads regarding bootloops problem.
But, mine is different.
So, I had LOS 15.1.x (cant remember exact version, at that time, i wasn't really paying attention) installed on my phone. Then, about a week ago I decided to upgrade it to latest LOS 17.1.x.
I flashed it with twrp, and all went well, it fully booted and I managed to fully setup my phone.
But the problem is, when the screen locks (or if I press the power button to lock it), a couple of seconds later phone reboots. Then it boots to Lineage and, again, if no activity, screen locks, and a couple of second later phone reboots. If i leave it, it just goes on and off forever (until battery dies). If i enter screen lock pin, I can normaly use my phone for hours.
It's just that it must not be locked.
Interesting, in twrp, this doesn't happen. I can lock the screen in twrp, and 5 minutes (or a day) later, it is still in twrp. But, than again, twrp is recovery, not full ROM.
So, i tried with different Lineage ROMs, no difference.
Then, I installed latest MIUI 9 (but still ARB3, because phone was ARB3), but, the same problem. Then, I installed MIUI11 (stable, global, ARB4) to update the firmware, and, again: Booted in Miui (let it encrypt my phone), can use the phone normally, as soon as i lock the screen (or leave it to lock itself) a couple of seconds later phone reboots.
I tried Lineage recovery, different twrp versions, Xiaomi recovery, flashed DM-verity zip, nothing helps.
Then, i managed to found one Lineage, it was 15.1.x (I am not at home right now, can tell you exact version as soon as I can), and the phone didn't reboot, BUT, wifi was not working (wifi works normally in LOS 17.x, MIUI 9 and 11), so I gave up.
Yesterday I installed latest LOS ROM, fully booted my phone, pressed power button a couple of times (to check if it is still alive, as it doesn't reboot instantly as the screen locks). Of course it rebooted, but i pressed volume UP and power button, to enter in twrp, where I copied log files to sd card.
In dmesg.log I noticed, it had some problem with i2c bus (as far as I know this is for communication between cpu and external sensors), but dont't know if it is related to my problem. As I am new here, I dont know if I am alowed to post attachments (dmesg.log, recovery.log)?
If this is a hardware problem, why can I use phone normally for hours (assuming i don't lock my screen)?
Also, if it was a hardware problem, why it normaly works in lineage 15.1.x (although, wifi doesn't work there)?
Did any of you had the same problem? I couldn't find any similar problem here, or anywhere else.
Any help would be much appreciated.
Click to expand...
Click to collapse
Did you do clean flash? Wipe data, cache, system, on internal storage android directory must be deleted?
What's your firmware? I guess old oreo and not new one - pie, it should be 11.0.3 or newer!
Update Firmware first using MI FLASH TOOL NOT FROM RECOVERY!!!
Than clean flash Official LOS 17.1 again.
If your WiFi won't work after that your persist partition is corrupted.
For extra info search xda forums.
Good luck and stay safe!
Which firmware should I use? I don't want to brick my phone, I am on ARB4 now, and as i was looking for firmware, it didn't specify if it is for ARB4 or ARB3 ...
Is this one ok?
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
klepec said:
Which firmware should I use? I don't want to brick my phone, I am on ARB4 now, and as i was looking for firmware, it didn't specify if it is for ARB4 or ARB3 ...
Is this one ok?
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
Click to expand...
Click to collapse
Yap all above 11.0.3 is ok..
Advice: don't rush! Read and take it slow. If you rush you'll probably mess it up... unlock your bootloader first, its easy to bring it back to life if you gonna mess up your phone.
For better overview watch how flash and what options to pick
Good luck and stay safe!