Data Partition won't decrypt / twrp / boot - Android General

Hello.
I have setup Lineage 13 port on my device Xiaomi Mi 5s (capricorn) and as usually i configured a pin and a fingerprint that were both working properly while on the system.
The very first reboot asked for my pin to boot the device, I inputed it, said it was wrong.
Same thing for TWRP.
Now i'm stuck and a data partition encrypted and i dont' know how to decrypt or mount it without decryption on twrp so i can flash the whole system again.
Can someone help? Thanks.
PS:
I hade lineage 14 before and i had pattern boot unlocking and it was working just fine.

Related

Encrypted MI 4C, Weekly Rom, TWRP 3.0.3.0 encryption password not accepted

Hi folks,
My MI4C is on the weekly MIUI 7.4.x, I am now looking to upgrade, hence as usual I rebooted in recovery.
The phone has obviously root and unlocked bootloader.
TWRP is asking for my encryption password, which I know, but no matter what, TWRP does not flipping accept the password!
What can I do?
Do you know if you have the Nougat bootloader or the old one?
I have not found a TWRP that can successfully decrypt it Nougat bootloader ROMs. If you are not on the Nougat Bootloader then I recommend trying Team Superluminal's TWRP, since that is the only one that worked with encryption enabled for me I think.
Have you got a working rom/os on the phone ?, If you do have try to add a password on the rom, hope the twrp has a new working crypto after that and ask you for a new password. If it didnt work try to reinstall the twrp by erasing it first.
Hi, I am on the Nougat bootloader, I tried to change the encryption password, tried to remove the encryption, but nothing worked, TWRP is still asking me the password to access the data partition.
What can I do?
I cannot wipe the phone, as I use it for my work,how can I upgrade TWRP when encryption is on?
Hi folks, anybody in my situation? I would like to avoid wiping the entire phone just because of the TWRP password bug.
I changed to a PIN password, but nothing works.

TRWP is still coming back with password prompt

Hi, I have a problem with TWRP.
I encontered on a bug in TWRP, which ask for a password, despite there is no any screen lock chosen. I can't mount partitions in recovery because password doesn't match. "default_password" doesn't work.
Now I erased all partition except "boot" under fastboot, installed new TWRP to recovery, but it still ask for a password.
I tried "fastboot format recovery", but I couldn't:
Code:
Formatting is not supported for file system with type ''.
I use OnePlus One, last TWRP and last LineageOS.
Can you help me? Thanks
Maybe it will help someone.
I flashed recovery with TWRP 3.2.3-K1 and it works fine. TWRPs 3.2.3.0 and earlier didn't handle Android Pie's encryption.

Magisk - not able to decrypt data

Hello,
my setup first: Huawei Honor 6X with stock Rom (EMUI 5.0, BLN-21C432B382) but TWRP 3.1.1 flashed.
Everytime after I flash Magisk and reboot the device, it is asking me for my password to decrypt my data. When I enter my screen lock pin,
it says "checking" and then a screen appears which says something like "your password is correct but your data is corrupt" It tells me to reset my phone.
But instead when i go back to TWRP, i can still access all the data. I can see the internal storage and all the files on it.
The only way to make the system reboot correctly, is to flash the backup image of the boot partition.
Does anyone know any fix to this issue? I really want Magisk installed....
Edit: When I install version 18.1 instead of the latest 19.1, everything works normally. But many modules dont work with the older version.... this is not a good solution
No suggestions at all?

Google Pixel TWRP "password failed, please try again"

Hello, been running twrp with encryption on Lineage OS 16 without problems for 6 months. But yesterday I flashed new android Q factory image and was unable to decrypt my data in twrp, even when I put the right password in it says ''password failed, please try again''. I tried flashing various factory images, custom roms even Lineage 16 but problem persists. I had this same problem back then when I first bought this phone but managed to solve it, I can't remember how I did it. TWRP is up to date. Any ideas? thanks.
It's TWRP issue. Sadly TWRP 3.3.1 is not available in zip format. Only in .img format. In 3.3.1 this problem is resolved.
As workaround you can remove any PIN, fingerprint and set security to none in setting and you won't have to enter anything in TWRP. Do whatever you want in TWRP and then set up PIN and fingerprint again.
matusala said:
It's TWRP issue. Sadly TWRP 3.3.1 is not available in zip format. Only in .img format. In 3.3.1 this problem is resolved.
As workaround you can remove any PIN, fingerprint and set security to none in setting and you won't have to enter anything in TWRP. Do whatever you want in TWRP and then set up PIN and fingerprint again.
Click to expand...
Click to collapse
Yeah I know this, but why did it started to do this after flashing Q factory image? TWRP worked without any problem on various custom roms. Actually now I remembered that while flashing Q factory image there was a problem mounting vendor and system partition, so I went back and flashed Lineage 16 and there this TWRP password thing started if I remember correctly.
I came here looking for the answer to this very issue.
I shot off an email to TWRP if they were going to update the latest zip to 3.3.1 because fastbooting to the img works fine.
I might try the trick of removing pin and security and try again.
I have the same problem but with 9.0, if I have a pin it's ok it decrypts just fine but when I have the fingerprint set up I get this problem, it kinda blows, I'm not using twrp everyday but it still blows that you have to disable security Everytime you want to use it, also, last night I used twrp with the security on it could not decrypt so and when i tried to reboot into system, I got the prompt to install the twrp app, I screwed up and used the slider instead of the button to cancel the installation and it messed up the system, so watch out for that crap.

How to set PIN after unlocking bootloader?

I've just got my Realme 5i returned after repair (replacement main board) and I've unlocked the bootloader, flashed TWRP and vbmeta9, flashed Magisk and enabled MagiskHide but I can't set a PIN. Whenever I try, after confirming the PIN it returns to the settings screen and shows "Lock Screen Password - Off".
I know I managed to set a PIN before it needed repairing, as when my brother received it from me from his Birthday, he phoned me to ask for the PIN to access it but I can't remember what I did then to get it working.
I tried to install "Realme 5i Magisk Fix for ColorOS by IT&AUTOS.zip" in Magisk as I did that before but now it isn't working and the log says "copying to temp, error unzipping file". Would installing this be what got the screen lock working before?
I've got a TWRP backup of all the partitions from before it was repaired but I can't seem to access them to restore, as when I select the Storage option from Restore it shows the SD card is only 6GB, when it fact it's 128GB and the only file it shows is "257eee4a" which is actually the folder above the dated folders containing the backups.. From the Install option, I can browse the SD card normally and I flashed Magisk from a folder on the card, so I don't know why it's not accessible from the Restore option. If I could, then maybe restoring the System and Data partitions would get me back to the state where the PIN was set but I'd be a bit nervous about restoring the System partition after then main board has been replaced, in case any files are tied to the old hardware.
I thought what I might have done to get it working last time is to relock the bootloader (after flashing the stock recovery to prevent bootloop) and then unlock it again but if that is what I did before, it isn't working now.
First I updated to A.20 via the stock recovery, as the service center had flashed A.15. It kept booting to stock recovery after that until I did Format Data and then it booted OK and after locking the bootloader I was able to set a PIN.
Then I unlocked the bootloader and it automatically wiped data but I still had to Format Data to stop it booting into stock recovery and now I can't set the PIN again.
I see there's a 5i Decryption (COs).zip. What does this do? I tried flashing that via TWRP before I tried the above steps but it didn't get the PIN working.
I just flashed TWRP and then installed 5i Decryption (COs).zip and wiped Cache/Dalvik Cache and now it gets stuck on the yellow realme logo when I try and boot. Can't even power it off when it's like that but thankfully volume up and power gets me to bootloader and TWRP and doing a factory reset wipe got it booting again.
I still can't turn on the PIN/Lock Screen password though.
I tried restoring my TWRP System and Data backup from last August when the Lock Screen password was working but it still doesn't work, so it must be something in one of the other partitions that affects this and I'm reluctant to try restoring those in case it bricks the phone because the main board has been changed.
Can anyone help me please? Does anyone have the lock screen password working with unlocked bootloader, or is everyone who has installed custom recovery/rooted their 5i just using it without any password to protect it?

Categories

Resources