Boot to twrp gives me encrypted files - OnePlus 6 Questions & Answers

Hi guys,
I have a pretty weird problem.
I was running LineageOS 17.1, tried to go on 18.
Don't know what I screwed up but when I try to reboot to recovery as I do usually to flash, twrp boots but acts as if my files were encrypted.
I took care to remove pin lock before upgrade.
Weird thing is that when I boot twrp from fastboot, I can see my files.
My twrp is latest official 3.4.0-3
My system now can't boot (I think that it sees the data as encrypted also)
Would anyone know what's happening here ?

Try your lockscreen password.

outlawmodzz said:
Try your lockscreen password.
Click to expand...
Click to collapse
I'm not asked for a password, and I removed lockscreen before upgrade

Just bite the bullet and full wipe back to stock and try again.

outlawmodzz said:
Just bite the bullet and full wipe back to stock and try again.
Click to expand...
Click to collapse
That's what I made but I would have liked to know why so I can avoid it happening again

It happens sometimes could be anything.

was your device encrypted or decrypted before?

Cygnust said:
Hi guys,
I have a pretty weird problem.
I was running LineageOS 17.1, tried to go on 18.
Don't know what I screwed up but when I try to reboot to recovery as I do usually to flash, twrp boots but acts as if my files were encrypted.
I took care to remove pin lock before upgrade.
Weird thing is that when I boot twrp from fastboot, I can see my files.
My twrp is latest official 3.4.0-3
My system now can't boot (I think that it sees the data as encrypted also)
Would anyone know what's happening here ?
Click to expand...
Click to collapse
Have you solved it?
If you switch over to the other slot in twrp, is it different? My files appear encrypted on slot b (no password asked like with you) on slot a twrp asks for a password and all is fine and I can boot into my phone normally

pjotrski1000 said:
Have you solved it?
If you switch over to the other slot in twrp, is it different? My files appear encrypted on slot b (no password asked like with you) on slot a twrp asks for a password and all is fine and I can boot into my phone normally
Click to expand...
Click to collapse
No, I made a full reset with msm..

Cygnust said:
No, I made a full reset with msm..
Click to expand...
Click to collapse
Ok, thanks.
My slot B got messed up yesterday going from twrp-mauronofrio to the latest official twrp. Luckily slot A still readable, but not sure how to go forward

Related

Lost root and TWRP recovery doesn't recognize my encryption PIN

While attempting to flash the latest unofficial MIUI build yesterday, I got stuck at the animation logo, so I gave up. Instead, I flashed the Android L developer build, which did boot up completely for me. However, when I attempted to boot back into recovery, I got prompted to enter my encryption passcode, which I did. However, TWRP keeps telling me that decryption failed and to try again. The issue isn't an incorrect passcode, so I'm at a loss to try to figure out what's going on. Also, because TWRP won't decrypt my storage, I can't flash anything (despite the fact that I'm able to access SD card files from a file manager app when the phone is on). Any way I can get TWRP to decrypt my storage without having to wipe everything completely? Has anyone else experienced this?
tattedupboy said:
While attempting to flash the latest unofficial MIUI build yesterday, I got stuck at the animation logo, so I gave up. Instead, I flashed the Android L developer build, which did boot up completely for me. However, when I attempted to boot back into recovery, I got prompted to enter my encryption passcode, which I did. However, TWRP keeps telling me that decryption failed and to try again. The issue isn't an incorrect passcode, so I'm at a loss to try to figure out what's going on. Also, because TWRP won't decrypt my storage, I can't flash anything (despite the fact that I'm able to access SD card files from a file manager app when the phone is on). Any way I can get TWRP to decrypt my storage without having to wipe everything completely? Has anyone else experienced this?
Click to expand...
Click to collapse
Reflash recovery
Lethargy said:
Reflash recovery
Click to expand...
Click to collapse
I can't without root access.
tattedupboy said:
I can't without root access.
Click to expand...
Click to collapse
Recovery is flashed in fastboot/bootloader...
Unless you used Towelroot, then you'll have to unlock the bootloader, which will wipe.
Really what I need is to figure out why TWRP isn't recognizing my encryption PIN. My storage is encrypted, but whenever I input my encryption PIN, I get an error message. How do I get it TWROP to recognize my encryption PIN?
Doesn't flashing L mess with your sdcard anyway?
Sent from my Nexus 5 using Tapatalk
tattedupboy said:
Really what I need is to figure out why TWRP isn't recognizing my encryption PIN. My storage is encrypted, but whenever I input my encryption PIN, I get an error message. How do I get it TWROP to recognize my encryption PIN?
Click to expand...
Click to collapse
Encryption always causes issues. I suggested to reflash TWRP with fastboot to rule out TWRP itself being the issue.
This is why I never encrypt. I just don't trust it.
Sent from my Nexus 5 using Tapatalk
rootSU said:
This is why I never encrypt. I just don't trust it.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
slightly running off topic but .. i have the same issues ... so i pushed twrp 2711 via adb .. now I did a factory reset .. still the request for the encryption password, and i cant seem to get rid of it.
Really frustrating, to the point where i want to smash my phone on the wall.
How can i get rid of it? im just confused,
Onecton said:
slightly running off topic but .. i have the same issues ... so i pushed twrp 2711 via adb .. now I did a factory reset .. still the request for the encryption password, and i cant seem to get rid of it.
Really frustrating, to the point where i want to smash my phone on the wall.
How can i get rid of it? im just confused,
Click to expand...
Click to collapse
Flash factory images lol
Lethargy said:
Flash factory images lol
Click to expand...
Click to collapse
hahaha, i nearly went ballistic on that thing yesterday ... i have no idea how i managed to get rid of it .. first i updated to 2.7.1.1. Twrp... Then i reflashed the Rom ...
Then i did a factory reset .. then i whiped data .. and reflashed rom .. anyways encryption is gone .. but i cant copy stuff from my pc to the handset well ... not that i care .. but kind of inconvenient
Was this resolved?
I am facing the same issue with the AOSP builds of L. I wanted to take new Nandroid backups and realized that TWRP cannot decrypt the partition.
tattedupboy said:
While attempting to flash the latest unofficial MIUI build yesterday, I got stuck at the animation logo, so I gave up. Instead, I flashed the Android L developer build, which did boot up completely for me. However, when I attempted to boot back into recovery, I got prompted to enter my encryption passcode, which I did. However, TWRP keeps telling me that decryption failed and to try again. The issue isn't an incorrect passcode, so I'm at a loss to try to figure out what's going on. Also, because TWRP won't decrypt my storage, I can't flash anything (despite the fact that I'm able to access SD card files from a file manager app when the phone is on). Any way I can get TWRP to decrypt my storage without having to wipe everything completely? Has anyone else experienced this?
Click to expand...
Click to collapse
nirudha said:
I am facing the same issue with the AOSP builds of L. I wanted to take new Nandroid backups and realized that TWRP cannot decrypt the partition.
Click to expand...
Click to collapse
No it cannot.

In need of help! TWRP!

first some back story:
it's been a long time since i did a lot of rooting so i lost a lot of knowledge.
I got the phone close to release in the EU.
There was only BETA stage twrp at the time.
So i flashed this unstable twrp and rooted with magisk.
And i run stock Oxy Rom.
But the main problem is, whenever i boot into recovery, twrp ask me for a password. (i have none) so i press continue.
And it then ask for unmodified system partition. (not sure what to select here)
But when i swipe to allow modification, i can't find the root of the phone? i cannot find the download folder where i flash updates or other modified apk's.
It's all just numbers and random letter. i have no idea on how to proceed or how to update twrp safely without falling into boot loop and other problems.
Some help would be appriciated. Thank you.
saitek1911 said:
first some back story:
it's been a long time since i did a lot of rooting so i lost a lot of knowledge.
I got the phone close to release in the EU.
There was only BETA stage twrp at the time.
So i flashed this unstable twrp and rooted with magisk.
And i run stock Oxy Rom.
But the main problem is, whenever i boot into recovery, twrp ask me for a password. (i have none) so i press continue.
And it then ask for unmodified system partition. (not sure what to select here)
But when i swipe to allow modification, i can't find the root of the phone? i cannot find the download folder where i flash updates or other modified apk's.
It's all just numbers and random letter. i have no idea on how to proceed or how to update twrp safely without falling into boot loop and other problems.
Some help would be appriciated. Thank you.
Click to expand...
Click to collapse
Boot to bootloader, flash original boot img than follow the guide to flash original twrp
Hitman478™ said:
Boot to bootloader, flash original boot img than follow the guide to flash original twrp
Click to expand...
Click to collapse
and which of my problems does this solve?
First of all flash official TWRP now. Makes no sense to use the unofficial version because its not stable.
Enter PW -> decrypt data for TWRP
No PW -> hieroglyphs
I successfully used official twrp, version 3.2.2 and then did a "format data" and then used fastboot again to install the full rom.
Kollachi said:
First of all flash official TWRP now. Makes no sense to use the unofficial version because its not stable.
Enter PW -> decrypt data for TWRP
No PW -> hieroglyphs
Click to expand...
Click to collapse
ok i figured it out, added a password. and now it shows correct folder names etc. thanks.
saitek1911 said:
first some back story:
it's been a long time since i did a lot of rooting so i lost a lot of knowledge.
I got the phone close to release in the EU.
There was only BETA stage twrp at the time.
So i flashed this unstable twrp and rooted with magisk.
And i run stock Oxy Rom.
But the main problem is, whenever i boot into recovery, twrp ask me for a password. (i have none) so i press continue.
And it then ask for unmodified system partition. (not sure what to select here)
But when i swipe to allow modification, i can't find the root of the phone? i cannot find the download folder where i flash updates or other modified apk's.
It's all just numbers and random letter. i have no idea on how to proceed or how to update twrp safely without falling into boot loop and other problems.
Some help would be appriciated. Thank you.
Click to expand...
Click to collapse
U have corrupted u r data partation u have to factory reset along with wiping internal storage and then transfer u r rom File through MTP in sd card of phone and then flash rom.
Or u can flash fastboot flashable rom via fastboot mode.
Then install your official twrp via fastboot mide after installing rom.
Now twrp will detect all data from sd card
pankspoo said:
U have corrupted u r data partation u have to factory reset along with wiping internal storage and then transfer u r rom File through MTP in sd card of phone and then flash rom.
Click to expand...
Click to collapse
Thank you, all i did was add a four digit code when twrp asked me for a password. now the folders are showing up correctly. not just random numbers and letters.
still need to update twrp safely. can i flash a new twrp within twrp or do i need to update via computer?
saitek1911 said:
Thank you, all i did was add a four digit code when twrp asked me for a password. now the folders are showing up correctly. not just random numbers and letters.
still need to update twrp safely. can i flash a new twrp within twrp or do i need to update via computer?
Click to expand...
Click to collapse
U can directly flash new twrp installer in current recovery no problem
saitek1911 said:
and which of my problems does this solve?
Click to expand...
Click to collapse
All of your problems i presume
Can Anyone help me, please? I have somehow the same problem. The phone literally itself without doing anything started doing a download(odin) mode loop. So I deleted data, dalvik, cache, system partitions without internal storage since it has very very important files for me and a lot of projects for the university!!! and before and after the folders in internal storage in twrp shows as random numbers and letters. I don't know why since when the phone was working normally I was protecting it by fingerprint and a password. And when I installed a stock ROM after it without wiping the internal storage. The storage is showing in negative. If anyone can help me this would be super appreciated and helpful. Thank you!
Hitman478™ said:
Boot to bootloader, flash original boot img than follow the guide to flash original twrp
Click to expand...
Click to collapse
Can you help please?
Madara818181 said:
Can Anyone help me, please? I have somehow the same problem. The phone literally itself without doing anything started doing a download(odin) mode loop. So I deleted data, dalvik, cache, system partitions without internal storage since it has very very important files for me and a lot of projects for the university!!! and before and after the folders in internal storage in twrp shows as random numbers and letters. I don't know why since when the phone was working normally I was protecting it by fingerprint and a password. And when I installed a stock ROM after it without wiping the internal storage. The storage is showing in negative. If anyone can help me this would be super appreciated and helpful. Thank you!
Click to expand...
Click to collapse
If it is already showing folders with random file names in the internal storage it means it needs to format data (to remove file encryption) which deletes all files in the internal storage.
Don't wipe system because it removes your OS.
Always secure backup before messing your device.
Hitman478™ said:
Boot to bootloader, flash original boot img than follow the guide to flash original twrp
Click to expand...
Click to collapse
You may try this boot.img just rename to boot.img only.
Credits to RR10 TG channel by Enzo #CatGang.
tiga016 said:
If it is already showing folders with random file names in the internal storage it means it needs to format data (to remove file encryption) which deletes all files in the internal storage.
Don't wipe system because it removes your OS.
Always secure backup before messing your device.
You may try this boot.img just rename to boot.img only.
Credits to RR10 TG channel by Enzo #CatGang.
Click to expand...
Click to collapse
Thanks Man. All my university stuff is in the phone's internal storage so wiping it is no no for me and I need the files today!!! I flashed the boot.img file you attached using TWRP but now the phone is in a boot loop and it did not solve anything!!! Sorry for this but what the f**k should I do man. All my important files are on the phone!!!
Madara818181 said:
Thanks Man. All my university stuff is in the phone's internal storage so wiping it is no no for me and I need the files today!!! I flashed the boot.img file you attached using TWRP but now the phone is in a boot loop and it did not solve anything!!! Sorry for this but what the f**k should I do man. All my important files are on the phone!!!
Click to expand...
Click to collapse
Sorry I thought you are also literally same issues with OP but then it's not. Are you able to reboot to twrp? And what is the whole story of you device? I mean if you are rooted, what ROM you came from and all that you did before the issues occur. And did you tried to switch slot? Since you wiped everything with system included then you have no OS installed. Did you tried to flash OS via OTG? Or flash via fastboot.
I flashed another os without deleting the internal storage but the storage is now showing in negative values. Story is The phone literally itself without doing anything started doing a download(odin) mode loop. So I deleted data, dalvik, cache, system partitions without internal storage since it has very very important files for me and a lot of projects for the university!!! and before and after the folders in internal storage in twrp shows as random numbers and letters. I don't know why since when the phone was working normally I was protecting it by fingerprint and a password. And when I installed a stock ROM after it without wiping the internal storage. The storage is showing in negative and yes I can still boot into twrp
tiga016 said:
Sorry I thought you are also literally same issues with OP but then it's not. Are you able to reboot to twrp? And what is the whole story of you device? I mean if you are rooted, what ROM you came from and all that you did before the issues occur. And did you tried to switch slot? Since you wiped everything with system included then you have no OS installed. Did you tried to flash OS via OTG? Or flash via fastboot.
Click to expand...
Click to collapse
This is the story
Madara818181 said:
This is the story
Click to expand...
Click to collapse
I know that but it seems incomplete. It did not mention what I ask recently. It is always a need for detailed story.

First time set-up, A/B paritions and Encrypted storage problems.

Hi all,
I had everything unlocked and running fine, TWRP was working and I was running 9.0 (OTA 25), and when booting to TWRP it would prompt me for my password and booting to either A or B I was able to see the contents of my Internal Storage from TWRP. I updated via TWRP to the 9.0.1 OTA 26 (Full, flashable zip). The update completed and booted fine. Fastbooted to TWRP, flashed blu_spark.
Now when I boot into the TWRP I flashed, it no longer asks for an encryption key. The A partition can see the SDCard without problems, but booting to the B slot sees gibberish. A slot boots fine, B slot is obviously dead.
What did I mess up here? Should I just be doing the incrementals? Guides seem to indicate I should do a full flash (not a Fastboot flash however). My XDA searching is not finding anything, but I may be looking for the wrong thing.
electroblood said:
Hi all,
I had everything unlocked and running fine...
Click to expand...
Click to collapse
I think I found it. Should have taken the lockscreen password off first before updating right? I have seen other people mention that.
That would seems strange to me since it doesnt 'decrypt' storage when you do that does it?
electroblood said:
I think I found it. Should have taken the lockscreen password off first before updating right? I have seen other people mention that.
That would seems strange to me since it doesnt 'decrypt' storage when you do that does it?
Click to expand...
Click to collapse
Yes this is what I do now every time (except when I forget). It's a known bug in TWRP afaik.
the black twrp should be able to decrypt from the fastboot img now, it might save you a format!
Changelog:
Fix boot.img not being able to decrypt
Click to expand...
Click to collapse

TWRP asking Dcrypt password

I didn't do any password or tried to do encryption for my data, because of that reason i cant see any files on twrp but i have no issues on booting into system, what i cant do is not able to backup files and i cant see any files if i look through twrp. How to get rid of this issues please
Maybe you set before a password when you firs setup the phone, but even if you remove it later, i think in the twrp it still needs it
use USB-C stick, save to it twrp instalation zip, in running twrp change storage source to USB, flash twrp from USB, then reboot to recovery
this happened to me after the last update
You can try to disable the password from the phone settings & then reboot in twrp, it won't ask for the password.
Sent from my ONEPLUS A6003 using Tapatalk
jabs said:
use USB-C stick, save to it twrp instalation zip, in running twrp change storage source to USB, flash twrp from USB, then reboot to recovery
this happened to me after the last update
Click to expand...
Click to collapse
i did same already .still not solved
sam180881 said:
You can try to disable the password from the phone settings & then reboot in twrp, it won't ask for the password.
Click to expand...
Click to collapse
i didnt use any password or lock screen
Chinaroad said:
Maybe you set before a password when you firs setup the phone, but even if you remove it later, i think in the twrp it still needs it
Click to expand...
Click to collapse
jabs said:
use USB-C stick, save to it twrp instalation zip, in running twrp change storage source to USB, flash twrp from USB, then reboot to recovery
this happened to me after the last update
Click to expand...
Click to collapse
sam180881 said:
You can try to disable the password from the phone settings & then reboot in twrp, it won't ask for the password.
Sent from my ONEPLUS A6003 using Tapatalk
Click to expand...
Click to collapse
Suppose if we swt password or lock screen the entire data on TWRP will Encrpted?
Yep
Chinaroad said:
Yep
Click to expand...
Click to collapse
Then what is benifit of flashing no-dm verity zip?
i never tried it, but as i know you need to flash that zip to decrypt the phone each time you flash a rom , not only one, ( that's what i know, and as i told you i never tried it)
@alwynjoshy
you need a new fresh TWRP installation, if you tried my procedure via USB-C and didn't work, install twrp * .img from your computer via fastboot procedure
Just boot into UI then remove any security options like face lock, fingerprint, pattern And pin.
jabs said:
@alwynjoshy
you need a new fresh TWRP installation, if you tried my procedure via USB-C and didn't work, install twrp * .img from your computer via fastboot procedure
Click to expand...
Click to collapse
Even after flashing dm verity zip am I able to use screenlock or pin without being effected of encryption

Question Pixel Experince and TWRP

Have a nice day. I tried installing Pixel Experience. The installation went without any problems, the system is fast without any stuttering. Phone calls without problems, the problem is with the sound of the ringtone and the sound is distorted in games. And that's why I wanted to go back to the original EU-ROM from xiaomi. But there was a problem while recovering from TWRP. TWRP says cannot recover data from internal storage. I had TWRP set up fine. After rebooting into the system, TWRP is still loading me, I don't know what the problem is.
Benoni1 said:
Have a nice day. I tried installing Pixel Experience. The installation went without any problems, the system is fast without any stuttering. Phone calls without problems, the problem is with the sound of the ringtone and the sound is distorted in games. And that's why I wanted to go back to the original EU-ROM from xiaomi. But there was a problem while recovering from TWRP. TWRP says cannot recover data from internal storage. I had TWRP set up fine. After rebooting into the system, TWRP is still loading me, I don't know what the problem is.
Click to expand...
Click to collapse
You must have done something wrong.
Factory reset your phone with:
https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
Don,t relock the bootloader.
NOSS8 said:
You must have done something wrong.
Factory reset your phone with:
https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
Don,t relock the bootloader.
Click to expand...
Click to collapse
I did all this and did a clean install via MiFlash. But I was confused by the error after the flash, the red error field was lit on the right in MiFlash. But the ROM booted without any problems. After that I did a factory reset just to be sure. All ok, installing TWRP as well. However, in TWRP it shows me data without internal storage. This means it won't load on app refresh and nothing from internal storage. I don't know where the error really is.
Benoni1 said:
I did all this and did a clean install via MiFlash. But I was confused by the error after the flash, the red error field was lit on the right in MiFlash. But the ROM booted without any problems. After that I did a factory reset just to be sure. All ok, installing TWRP as well. However, in TWRP it shows me data without internal storage. This means it won't load on app refresh and nothing from internal storage. I don't know where the error really is.
Click to expand...
Click to collapse
The error is normal since you don't lock the bootloader.(mentioned in my tutorial)
It was useless to do a reset after Miflash had done it.
Details on which rom and TWRP?
NOSS8 said:
The error is normal since you don't lock the bootloader.(mentioned in my tutorial)
It was useless to do a reset after Miflash had done it.
Details on which rom and TWRP?
Click to expand...
Click to collapse
Cupid_eea_global_images_V13.0.24.0.SLCEUXM_20220927
TWRP-3.7.0_12-v6.5_A12-cupid-skkk.img
Benoni1 said:
Cupid_eea_global_images_V13.0.24.0.SLCEUXM_20220927
TWRP-3.7.0_12-v6.5_A12-cupid-skkk.img
Click to expand...
Click to collapse
No problem on that side.
Try security on the lock screen to see if TWRP asks you for the code to decrypt.
NOSS8 said:
No problem on that side.
Try security on the lock screen to see if TWRP asks you for the code to decrypt.
Click to expand...
Click to collapse
I'm already reinstalling everything including TWRP. Otherwise, TWRP never asked me for a decryption code, but in the phone settings it is written that it is encrypted. Apparently that's the mistake. I'm doing a clean install. If the mistake wasn't that I did a factory reset after installing the ROM.
Benoni1 said:
I'm already reinstalling everything including TWRP. Otherwise, TWRP never asked me for a decryption code, but in the phone settings it is written that it is encrypted. Apparently that's the mistake. I'm doing a clean install. If the mistake wasn't that I did a factory reset after installing the ROM.
Click to expand...
Click to collapse
Factory reset just erases your data.
After installing the TWRP, reboot on the twrp and do not put any security on the lock screen.
I just installed the ROM, in phone settings I see - phone encrypted. I did not provide any security.
Benoni1 said:
I just installed the ROM, in phone settings I see - phone encrypted. I did not provide any security.
Click to expand...
Click to collapse
Where do you see this?
in the settings I go to encryption and credentials and under that it says Phone encryption: encrypted
Benoni1 said:
in the settings I go to encryption and credentials and under that it says Phone encryption: encrypted
Click to expand...
Click to collapse
You can try:
TWRP
wipe/format data type yes(if errors ,red lines,reboot twrp ant try again).
reboot twrp
flash a recovery rom
check if still the same.
ok I will try
I did as you wrote no error in TWRP nothing red. After installing TWRP, it's a mystery that TWRP won't boot automatically, I have to boot it via hardware buttons. However, the phone still lights up encrypted in the ROM. It's interesting.
Which pixel rom do you flashed, i didnt find it
venezolano69 said:
Kterou pixelovou rom jsi flashoval, nenašel jsem to
Click to expand...
Click to collapse
Pixel Experience Plus 12.1 v416
Benoni1 said:
Pixel Experience Plus 12.1 v416
Click to expand...
Click to collapse
Is it a gsi rom?
venezolano69 said:
Je to gsi rom?
Click to expand...
Click to collapse
Releases · ponces/treble_build_pe
Script and patches for building PHH-Treble Pixel Experience - ponces/treble_build_pe
github.com
Thought, there still isn't any Custom Rom out for Xiaomi 12 atm, except unofficial Lineage.
Yes this is a big problem

Categories

Resources