Hello everybody,
I flashed some rom from other forum which changed my vendor(i guess by twrp messages) and I forgot to flash disable force encryption zip, so now i have encrypted storage, no system and some different vendor which wasn't on my device by default. I have access on twrp and fastboot and all but how can I install system on encrypted device without losing my data(factory reset to decrypt storage) phone?
Edit: by data I mean internal storage not app and rom data. I already wiped them.
copy data to pc or in pendrive using otg then proceed
Related
Hi guys,
Forgive me If this is a repetitive post, i promise i tried searching.
When i installed nougat i accidentally encrypted the phone, and it asks me for an encryption pin whenever I boot in. I don't mind this but flashing a new kernel always puts the phone into an infinite boot. I have to dirty flash the installed rom in order to restore the kernel without losing my data. Is there any way to decrypt the device so i can flash a custom kernel? Or have i got the entire thing wrong? I can't seem to find a decrypt option and i don't want to flash MIUI so to remove encryption. I don't mind losing all the data but flashing a new rom doesn't seem to remove the encryption.
Thank you so much for reading this.
Kernel bootloop because you wipe dalvik and chace, whan you install the kernel just flash it without wipe anything.
if you want to remove encryption just backup your things on pc.
than go to TWRP wipe section:
FORMAT DATA and write "yes".... now you wont have encryption problems never again (NOTE: this wipes your internal storage)
AFTER:
go back to TWRP wipe section:
ADVANCED WIPE
select:
DALVIK
CACHE
DATA
SYSTEM
INTERNAL STORAGE
swipe to confirm!!! NOW YOU HAVE A CLEAN AND FRESH PHONE
while you still are in twrp connect your phone to pc and put in to it, rom and gapps.... flash those.
FINISHED
Hello guys,
I did a foolish update today without reading the forums first and updated to OOS 9.0.4 (Pie) from my previous stable OOS Oreo without removing encryption and backing up the Internal Storage data. I did take a backup of Boot, Data(excl storage) and System Image using TWRP 3.3.1 and copied it to my computer.
After the update, the OS refuses to decrypt the partition (Error: Decryption unsuccessful. The password you entered is correct, but unfortunately your data is corrupt. To resume, you need to factory reset the phone.) and TWRP fails to decrypt (Error: Decrypt took too long. Killing process, failed to decrypt data).
What else I tried:
1.) ADB restore the backup from the PC (as I can't transfer anything to the phones encrypted storage), but the TWRP backup is a bunch of files in a folder and ADB expects a single file in its command.
2.) Flash an older version of TWRP (3.2.3) and try decrypting (Error: Failed to decrypt data)
Is there any way I can restore the backed up files to get the phone back before the update and save my internal storage? (without a time stone or a quantum jump). I am thinking along the lines that I can somehow restore the backed up files into the respective partitions and make the decryption work, is it possible?
Worst case is there some way for me to backup the internal storage data with the encryption then go about downgrading the phone and restoring it and decrypting it back?
Any pointers would be helpful and appreciated. Thanks.
Gi__an said:
The password you entered is correct, but unfortunately your data is corrupt.
[...]
Is there any way I can restore the backed up files to get the phone back before the update and save my internal storage?
Click to expand...
Click to collapse
The only thing you might try is to flash OOS 9.0.4 firmware with 5.0.8 bootloader + keymaster.
If it still says the same, then sorry, but your data got corrupted and it's gone.
I switched over from xiaomi.eu to MI Room. Seemed to work fine until a magisk module uninstall screwed up my ROM and caused a bootloop.
Figured I would do a factory reset, however now Orangefox recovery no longer asks for a decryption password. I know the password, so how do I decrypt my storage?
Thanks
It doesn't ask for a password because the encryption files were deleted so twrp would not know what the encryption data is. But miui encrypts your data when you set your pin/pattern and the userdata remains encrypted when the encryption keys get deleted. The only way is to format userdata.
I also want to know a workaround for this. If you format userdata and flash recovery version of your rom, will your data get encrypted again when you set a password? Because then, any backup made with your data encrypted is unusable. Is data encrypted only on official roms but not for lineageOS etc?
editheraven said:
It doesn't ask for a password because the encryption files were deleted so twrp would not know what the encryption data is. But miui encrypts your data when you set your pin/pattern and the userdata remains encrypted when the encryption keys get deleted. The only way is to format userdata.
I also want to know a workaround for this. If you format userdata and flash recovery version of your rom, will your data get encrypted again when you set a password? Because then, any backup made with your data encrypted is unusable. Is data encrypted only on official roms but not for lineageOS etc?
Click to expand...
Click to collapse
My encryption files actually weren't deleted. I did a factory reset and reinstalled the previous ROM I was encrypted on a few times and somehow it decided to allow me to decrypt my storage again... So I managed to back things up, then format and wipe all storage and flash the new ROM. Working fine since.
Thanks for the help though.
Hi, I want to install custom rom but I think because of encryption I lost my all internal storage :/
Before mi 9t pro, I used an old android phone. Because of that I didn't know too much about encrption.
When I open OrangeFox it asks my password. So I thought remove my password before any rom installation should be enough.
I remove my password. After dirty rom flash my phone didn't boot to system but did boot to recovery.
Guess what? All my file names are random
Before anyone say, I have a backup. But where Yesss it is in internal storage with encryption :angel:
I tried to wipe data, didn't work. I flash my rom mi flash with keeping data, didn't work.
Now my phone boot up, I can see my files with random names.
Why I didn't backup to computer? Because I was lazy.
My big question;
Can I recover my files (~70 gb), I know my old password.
It's a good thing your data wasn't important then, if it was you would have a backup stored on a PC or cloud. First rule of flashing, have a backup. You can't recover it's gone, format data In twrp to remove encryption and wipe your internal storage then flash your rom.
hoopsnake said:
It's a good thing your data wasn't important then, if it was you would have a backup stored on a PC or cloud. First rule of flashing, have a backup. You can't recover it's gone, format data In twrp to remove encryption and wipe your internal storage then flash your rom.
Click to expand...
Click to collapse
Yes, it isn't too much important but I'm a little sad. I just lost few whatsapp message.
I will delete everything now. After that, I will disable this encryption.
Thanks
P.S: Whoever read this don't be lazy like me
hello.my phone is n950F i have problem. my problem is
when i flash stock rom w/odin
then set up twrp this app cant see my internal storage without apply format data or tap change file system ex4 exfat etc.
but i choose format data or repair file system button, mine system is formatting. so i must have flash stock rom odin again.
if i flash stock rom again, twrp cant see my interal storage, 0mb error. again again again. how i flash kernel in twrp on stock rom?
n0te8user said:
hello.my phone is n950F i have problem. my problem is
when i flash stock rom w/odin
then set up twrp this app cant see my internal storage without apply format data or tap change file system ex4 exfat etc.
but i choose format data or repair file system button, mine system is formatting. so i must have flash stock rom odin again.
if i flash stock rom again, twrp cant see my interal storage, 0mb error. again again again. how i flash kernel in twrp on stock rom?
Click to expand...
Click to collapse
If you are using twrp from this thread, it's mentioned on the 3rd post
corsicanu said:
FAQ / Further reading
Q: TWRP can't mount data partition, what to do?
A: Make sure you formatted data partition.
Q: Why do i need to format data partition?
A: Because old rom encrypted your data partition and new rom can't decrypt and use that content / root needs access to data partition to place misc files / phone not booting after flashing root until data partition gets formatted.
Click to expand...
Click to collapse
or maybe try to disable data encryption which is mentioned on the 1st post
corsicanu said:
After booting in TWRP download and flash no-verity-opt-encrypt-6.1 zip to disable data partition encryption
If for any reason you fail to install TWRP multiple times/different methods, make sure you check this thread
Click to expand...
Click to collapse
You need to format /data with the "yes" confirmation.
The stock ROM will survive, because it's on /system and /preload.
After that you need to flash a fully patched kernel with removed forced encryption (like a2n kernel) before you reboot to the system. Otherwise the stock kernel will encrypt the /data partition once again.
ace2nutzer said:
You need to format /data with the "yes" confirmation.
The stock ROM will survive, because it's on /system and /preload.
After that you need to flash a fully patched kernel with removed forced encryption (like a2n kernel) before you reboot to the system. Otherwise the stock kernel will encrypt the /data partition once again.
Click to expand...
Click to collapse
i know i tried this but mine stock rom installed after flashing with odin (turkey) and after apply twrp format data stock rom are very different. the second i said seems like global rom. it contains weird settings and apps I will do what you say and take a screenshot,1 2 hours later you will understand me better.