[urgent] can't decrypt data - Xiaomi Mi 6 Questions & Answers

Hi there,
after flashing an ota of HavocOS to my Xiaomi Mi 6 as is always do, the device was not able to enroll fingerprints anymore. So i renamed locksettings.db in recovery and rebooted. Sadly the device is now unable to decrypt data neither in recovery, nor in the ROM. Is there anything i can to to save my data? Is there anybody who can help?
Thanks in advance!

CreaB said:
Hi there,
after flashing an ota of HavocOS to my Xiaomi Mi 6 as is always do, the device was not able to enroll fingerprints anymore. So i renamed locksettings.db in recovery and rebooted. Sadly the device is now unable to decrypt data neither in recovery, nor in the ROM. Is there anything i can to to save my data? Is there anybody who can help?
Thanks in advance!
Click to expand...
Click to collapse
Did you try renaming the locksettungs back to the original state?
If you lose the keys you've lost your data

Related

Can't decrypt phone

Hey guys,
Just as I wanted to update to an Android M ROM I realized decrypting the phone somehow doesn't work. In Settings it says "Encrypted Phone Encrypted" but if I click it nothing happens. Here is a video for demostration: https://youtu.be/cOFFZuckUU0 . In Recovery I can't mount any of the encrypted partitions yet when I restart my phone it does't ask for the decryption code and Android works like always. Any way to get the phone decrypted again?
Thanks in advance!
P.S.: After hours of research I couldn't find anything remotely similar to my issue. It doesn't even make sense that the phone decrypts itself without me putting in a code...
P.S.S: Oh and the issue appeared just a few days ago. Before that I could encrypt and decrypt my phone as often as i wanted to and android always asked for the code before booting.
Anyone?
.TanTien said:
Anyone?
Click to expand...
Click to collapse
You can't decrypt. You mast make a full wipe. If You dont want lose date use Titanium Backup or TWRP Manager with live backup.
You can only turn off, not decrypt ! a sd card encryption

Questions about encryption of an unlocked OP3

Hey Guys,
When I got my OP3 I unlocked the bootloader right away and installed FreedomOS to get rid of the bloatware. As this is my first device, which comes with a locked bootloader and decryption, I have some questions about this topic. I was wondering that the encryption does not make any sense when you unlock your bootloader, because if somebody steals your phone, he can just enter twrp and access all your data. Then I flashed CM and after that TWRP was asking me to set a pin or pattern to lock my phone. Now I've to unlock my phone every time I want to enter the recovery or boot the system with a pattern, which is great, because now the encryption is not worthless anymore. Now I'm asking myself if this feature is somehow integrated into CM or was it just random that I found this feature? Is there any way to get this also with OOS installed? What things do I have to note to not accidentally make my phone unencryptable with the pattern? Is this even possible, maybe by flashing a new recovery or so?
Thanks in advance
Gerrit507 said:
Hey Guys,
When I got my OP3 I unlocked the bootloader right away and installed FreedomOS to get rid of the bloatware. As this is my first device, which comes with a locked bootloader and decryption, I have some questions about this topic. I was wondering that the encryption does not make any sense when you unlock your bootloader, because if somebody steals your phone, he can just enter twrp and access all your data. Then I flashed CM and after that TWRP was asking me to set a pin or pattern to lock my phone. Now I've to unlock my phone every time I want to enter the recovery or boot the system with a pattern, which is great, because now the encryption is not worthless anymore. Now I'm asking myself if this feature is somehow integrated into CM or was it just random that I found this feature? Is there any way to get this also with OOS installed? What things do I have to note to not accidentally make my phone unencryptable with the pattern? Is this even possible, maybe by flashing a new recovery or so?
Thanks in advance
Click to expand...
Click to collapse
If your phone is encrypted, TWRP has to prompt you to decrypt the /data partition before it can be mounted. This isn't a CM feature, it should act like this with any ROM if phone encryption is enabled. I've flashed most every rom and version of twrp in this forum and they all seem to work fine with the encryption enabled. I have not flashed multiboot yet as that requires your phone to be completely unencrypted. Not sure if that answers your question.
If security is your concern though, I would recommend switching to a passphrase instead of pattern for encryption unless your pattern is very long and complex. I recommend a passphrase of at least 16 characters.
kennonk said:
If your phone is encrypted, TWRP has to prompt you to decrypt the /data partition before it can be mounted. This isn't a CM feature, it should act like this with any ROM if phone encryption is enabled. I've flashed most every rom and version of twrp in this forum and they all seem to work fine with the encryption enabled. I have not flashed multiboot yet as that requires your phone to be completely unencrypted. Not sure if that answers your question.
If security is your concern though, I would recommend switching to a passphrase instead of pattern for encryption unless your pattern is very long and complex. I recommend a passphrase of at least 16 characters.
Click to expand...
Click to collapse
Ok I see, than I was getting something wrong there, thank you. The thing is FreedomOS stated that the phone is encrypted but I was never asked for the pattern by TWRP...
Gerrit507 said:
Ok I see, than I was getting something wrong there, thank you. The thing is FreedomOS stated that the phone is encrypted but I was never asked for the pattern by TWRP...
Click to expand...
Click to collapse
When you first booted up your stock phone and went through setup it asks if you want to secure the phone using pin/pattern/passphrase. I think that is where it is created then that key is written somewhere, not on the data or system partitions because is persists between wipes, and that is where TWRP and all future roms are authenticating you.
kennonk said:
When you first booted up your stock phone and went through setup it asks if you want to secure the phone using pin/pattern/passphrase. I think that is where it is created then that key is written somewhere, not on the data or system partitions because is persists between wipes, and that is where TWRP and all future roms are authenticating you.
Click to expand...
Click to collapse
Ok, I can not remember this... Then I guess the phone just stated it was encrypted and wasn't... And how can I change this pattern or unencrypt the phone?
Gerrit507 said:
Ok, I can not remember this... Then I guess the phone just stated it was encrypted and wasn't... And how can I change this pattern or unencrypt the phone?
Click to expand...
Click to collapse
Here is how to decrypt without losing data. http://forum.xda-developers.com/oneplus-3/how-to/unencrypt-oxygenos-loosing-data-t3412228
There is another article I think I saw it on the OnePlus forums about how to decrypt and wipe which will let you change the passphrase I think.
Basically if you decrypt, then flash Oxygen or Hydrogen without SuperSU it will force you to re-encrypt. At least that is my understanding as I haven't decrypted yet.
Good luck
kennonk said:
Here is how to decrypt without losing data. http://forum.xda-developers.com/oneplus-3/how-to/unencrypt-oxygenos-loosing-data-t3412228
There is another article I think I saw it on the OnePlus forums about how to decrypt and wipe which will let you change the passphrase I think.
Basically if you decrypt, then flash Oxygen or Hydrogen without SuperSU it will force you to re-encrypt. At least that is my understanding as I haven't decrypted yet.
Good luck
Click to expand...
Click to collapse
As far as I understood it, it's all about wiping userdata, which I did before flashing Freedom OS. This might explain why I had no encryption... Still strange that it did not prompt me again to set a new one...
edit: FreedomOS has supersu, but systemless... I also flashed supersu right after CM which is even more strange...
Gerrit507 said:
As far as I understood it, it's all about wiping userdata, which I did before flashing Freedom OS. This might explain why I had no encryption... Still strange that it did not prompt me again to set a new one...
Click to expand...
Click to collapse
Yeah I have wiped userdata and system and clean reflashed like 20-30 times in the last few weeks and I've never been prompted to recreate the initial passphrase I set for encryption.
kennonk said:
Yeah I have wiped userdata and system and clean reflashed like 20-30 times in the last few weeks and I've never been prompted to recreate the initial passphrase I set for encryption.
Click to expand...
Click to collapse
But I never had to decrypt in TWRP... It's mysterious As far as I understand the guide he just wipes userdata and the encryption is gone... Is there somebody who knows for sure where the key is located actually?
edit: Seems like the encryption key is coupled to your password
When a user elects to change or remove their password in settings, the UI sends the command cryptfs changepw to vold, and vold re-encrypts the disk master key with the new password.
Click to expand...
Click to collapse
https://source.android.com/security/encryption/
I can confirm that. I changed my pattern and unlocked the phone with it at booting.
If I remove my password it still says "encrypted" in security but I don't have to enter any pattern at boot.
Mine says "Encrypted" under Settings > Security & Fingerprint > Encryption but I can boot into TWRP and browse the entire file system without ever entering my pin code.
dcdruck1117 said:
Mine says "Encrypted" under Settings > Security & Fingerprint > Encryption but I can boot into TWRP and browse the entire file system without ever entering my pin code.
Click to expand...
Click to collapse
Sounds like you have the same issue like I had. It seems to me like an issue in OOS.
This is awesome. I thought rooting and unlocking the bootloader to install custom ROMs would need the phone to be decrypted -- great, great news!
So without knowing the passphrase a possible attacker can't get to the data even when the bootloader is unlocked and OS rooted?
kanttii said:
This is awesome. I thought rooting and unlocking the bootloader to install custom ROMs would need the phone to be decrypted -- great, great news!
So without knowing the passphrase a possible attacker can't get to the data even when the bootloader is unlocked and OS rooted?
Click to expand...
Click to collapse
Yes, all your data is being decrypted after your enter the passphrase.
Does anyone have any idea how I can encrypt my phone if it already says Settings > Security & fingerprint > Encryption > Encrypt phone = "Encrypted"? It's clearly not actually encrypted because I do not have to enter any pin to boot or read data in TWRP.
dcdruck1117 said:
Does anyone have any idea how I can encrypt my phone if it already says Settings > Security & fingerprint > Encryption > Encrypt phone = "Encrypted"? It's clearly not actually encrypted because I do not have to enter any pin to boot or read data in TWRP.
Click to expand...
Click to collapse
Go to lock screen settings and set it up again. You will be prompted if you want to enter pin every reboot.
proag said:
Go to lock screen settings and set it up again. You will be prompted if you want to enter pin every reboot.
Click to expand...
Click to collapse
Hey, thanks! The "require PIN to start device" screen doesn't make any mention of encryption, so I was under the impression that it was far more basic and wasn't at all related to encryption. I tried it though and now TWRP does ask me to decrypt my data partition, so it does work. Thanks for the assist!
been following this thread and i had a quick questions - so it looks like if you unlock BL and run a custom ROM, you can still have the security of encryption, but does this ONLY apply to the USERDATA partition?
for example, could someone launch TWRP recovery on your phone and flash something into the SYSTEM partition without ever touching your userdata partition (ie, a keylogger or malware)?
It seems to me that only the data partition is encrypted, but someone correct me if I'm wrong. I looked at the Android full disk encryption page and I only see mentions of the data partition.
dcdruck1117 said:
It seems to me that only the data partition is encrypted, but someone correct me if I'm wrong. I looked at the Android full disk encryption page and I only see mentions of the data partition.
Click to expand...
Click to collapse
so system is never encrypted? i guess at that point the stock recovery stops you from flashing malware but \TWRP wont
dcdruck1117 said:
It seems to me that only the data partition is encrypted, but someone correct me if I'm wrong. I looked at the Android full disk encryption page and I only see mentions of the data partition.
Click to expand...
Click to collapse
Your internal storage is mounted into your data partition actually. I think this means it's also encrypted.
2x4 said:
so system is never encrypted? i guess at that point the stock recovery stops you from flashing malware but \TWRP wont
Click to expand...
Click to collapse
I see no reason behind encrypting system, it's used read-only anyway as long as you don't flash something to it.
edit: Ah I see now what you mean. But if you have stock recovery you can also simply flash twrp over it or flash something to system via adb... I don't know if it would even be possible technically to encrypt system. Anyway I think the only solution would be to lock the bootloader I think. I don't know what actually happens if you lock your bootloader again while on twrp and custom rom, might brick your device

Can i simply encrypt my phone again without dataloss?

Hello, after i got my op3 i instant decrypted it with fastboot and installed freedomos because i heard there could be problems with rooting etc.
But now i heard, that you can use Customroms and twrp even with encrypted storage, what i find really nice so thiefes can't access my data easily.
Now the question is, can i simply encrypt my device in settings -> security with a password and can i simply enter the password in twrp then, and is the behavior the same as the forced encryption on stock oxy?
Also i have another problem, i cant use cm13, cm14 and resurrectionremix, because it stucks on the op logo on boot. I read that this because the data is decrypted. Will encryption fix this problem or do i have to do the method2 of the unbrick guide to fix it? Well, i can just use my nandroid restored freedomOS rom at the moment, any other roms results in a bootfreeze, even if i update freedomos.
Best regards and thanks for your help guys :fingers-crossed:

Stuck on just a sec screen after language selection

Guys i need help. No matter what rom i flash i cant get past language selection. My phone always gets stuck on Just a sec loading screen.
Clean flash dosen't work
wiping everything/factory reset dosen't work
I noticed this started happening after i flashed no_verify_op5.zip and also deleted lockscreen.db files in /data/system to bypass first boot lockscreen pin entry due to previously encrypted rom
I also have no nandroid backup hence im stuck without an OS
Please help guys
Codebreaker007 said:
Guys i need help. No matter what rom i flash i cant get past language selection. My phone always gets stuck on Just a sec loading screen.
Clean flash dosen't work
wiping everything/factory reset dosen't work
I noticed this started happening after i flashed no_verify_op5.zip and also deleted lockscreen.db files in /data/system to bypass first boot lockscreen pin entry due to previously encrypted rom
I also have no nandroid backup hence im stuck without an OS
Please help guys
Click to expand...
Click to collapse
Just wipe internal storage and it will boot and setup will complete
I was also stuck on just sec screen
Wipe internal storage
Worked for me...THANKS!!!
shonalex said:
Worked for me...THANKS!!!
Click to expand...
Click to collapse
It didnt work for me, I've wipe all that stuff, but still stuck on "just a sec".
Any other ideas what's the issue?
sladgehammer said:
It didnt work for me, I've wipe all that stuff, but still stuck on "just a sec".
Any other ideas what's the issue?
Click to expand...
Click to collapse
Any luck getting past this? I am in the same boat on a Moto X4. I tried to downgrade from 8.1 to 8.0. Flashing went fine but now stuck at the same "Just a sec" screen. Gonna try wiping internal. Hope I can back it up first but I bet it's encrypted and I cant.
Same
Doesn't wiping the internal storage wipe everything ... Won't the os be gone too... Please help.. I'm also having the same issue with my 5t..
msp2277 said:
Doesn't wiping the internal storage wipe everything ... Won't the os be gone too... Please help.. I'm also having the same issue with my 5t..
Click to expand...
Click to collapse
Wiping storage doesn't do anything to system :good:
---------- Post added at 09:59 PM ---------- Previous post was at 09:59 PM ----------
sladgehammer said:
It didnt work for me, I've wipe all that stuff, but still stuck on "just a sec".
Any other ideas what's the issue?
Click to expand...
Click to collapse
You need to format data in this case
how
sauaditi said:
Just wipe internal storage and it will boot and setup will complete
I was also stuck on just sec screen
Wipe internal storage
Click to expand...
Click to collapse
how to wipe internal storage?
I've tried wiping internal storage, also format data. Nothing is working, please help. My device is Redmi Note 4 {mido}. I have tried using different ROMs too.:crying::crying:
bro did u find a solution....? pls say. I am stuck in same problem and wiping the internal storage doesn't helps.
I'm in the same boat with Verizon Note 3. I've tried flashing lineage 16.0 official, unofficial, couple other Android 9 based ROMs, never get past 'Just a sec....' Tried wiping everything but microSD, formatting, nothing has any effect.
So, how did you guys managed to solve this problem? My 5t is stuck in "Just a sec..." screen, changing roms won't help. :/
sauaditi said:
Just wipe internal storage and it will boot and setup will complete
I was also stuck on just sec screen
Wipe internal storage
Click to expand...
Click to collapse
The issue still persists even after Wiping internal storage or Formatting data. Nothing worked. However, I managed to install the stock ROM to my Redmi Note 4 after this and continued to use the phone. But I can't go past the Just a sec.....screen in Resurrection Remix 7.0.2 ROM and I want it badly. Any help?
I had this issue on my Mi Mix 3 after downgrading Magisk.
It kept being stuck on 'Just a sec...' even after resetting and wiping everything back to factory settings on my phone
I managed to fix it by flashing and older stock ROM to my phone from my laptop using the MiFlash tool, it still couldnt boot afterwards but I didn't need to fill in a password in TWRP anymore..
after the password was removed by the flashing, i flashed a xiaomi.eu ROM from TWRP and my phone finally booted back up again.
I hope this somehow helps anyone, if you have any questions I'd be glad to brainstorm for a solution with you
Best of luck all!
In my case the fix was trivial!
https://www.reddit.com/r/AndroidQue..._just_a_sec_after_factory_reset_help/fmmiqjb/
I fixed it by erasing data via stock recovery (not TWRP).
I Have similar issue suck at just a sec ... screen and my phone is vivo v15 pro.

Stuck at lock screen after failing an update

Recently, phone updated itself automatically to 11.0.3 version from 11.0.1. Now it is stuck at lock screen and none of the gestures or buttons working in lock screen(only long pressing power button restarts phone). Phone is china version. I can access to the fastboot and recovery. Can I fix it without installing new rom on it?
Deleting the lockscreen password seems to fix it for me, had this happen a few times. You can do it through twrp, delete locksetting* or gesture* from /data/system.
If you can't mount data, then formatting data is the only way, wiping isn't the same.
wang1chung said:
Deleting the lockscreen password seems to fix it for me, had this happen a few times. You can do it through twrp, delete locksetting* or gesture* from /data/system.
If you can't mount data, then formatting data is the only way, wiping isn't the same.
Click to expand...
Click to collapse
The problem is I dont have TWRP and I dont want to lose data. If there is no other way, I will do it anyways. Thanks for helping
Nihat2003lol said:
The problem is I dont have TWRP and I dont want to lose data. If there is no other way, I will do it anyways. Thanks for helping
Click to expand...
Click to collapse
You can try flashing back to your previous ROM but I think your only options are going through TWRP to save your data or formatting data.
Maybe someone else can chime in
wang1chung said:
You can try flashing back to your previous ROM but I think your only options are going through TWRP to save your data or formatting data.
Maybe someone else can chime in
Click to expand...
Click to collapse
Huh, I already formatted it and it works now. Thanks for helping.

Categories

Resources