Hi guys,
I'm a little bit confused about the TWRP problem to mount encrypted data partition.
My Lineageos ROM and TWRP combination, I had the last years, were all encrypted and I had never problems decrypt data with TWRP and my password.
Now I switched to A5 and it's only possible to encrypt my phone or, to make backups with TWRP!
All threads I found about "can't found crytpo footer" or "can't decrypt /data" were the solution to format data. But I want to keep my encryption to keep my phone more secure! For remove the stock rom encrytion key, ok. But not for daily usage.
I'm on Lineageos 16 and TWRP 3.3.1. My A5 2017 is on the latest firmware A520FXXUBCSHB.
Please enlight me, may I sort something wrong, or something important has been changed on newer devices!
For me it looks like:
Encryption on = Data Encryption on + TWRP Backup off
Encryption off = Data Encryption off + TWRP Backup on
Is it possible to get both, encryption and TWRP backups? Or to get fix for TWRP?
Related
Hey,
i am using an encrypted stock rom (V30n) with latest SuperSu in system - mode. I am trying to mount the /data partition in TWRP 3.1.0.0, but it always "fails to decrypt /data".
However, if I use LineageOS (latest nightly) with encrypted /data, TWRP is able to mount the partition with my supplied PIN.
There seems to be a difference in stock encryption and LineageOS encryption that prevents TWRP to mount the partition.
Do you have any ideas how to mount encrypted /data from the stock rom?
From what I read is , is that twrp needs the support for the encryption witch is not there by default ( don't know for sure) but basicly twrp is missing the kernel support for just that
There are twrp costum build with the support , just have to find them.
Verstuurd vanaf mijn LG-D855 met Tapatalk
Hm that's weird, quite possibly that there are some differences and encryption on stock is broken as you suspect.
Glad to hear that they finally added support for AOSP based decryption in official 3.1.0.0, that wasn't available in 3.0.2.0.
Hi guys,
just today I've installed latest Dirty Unicorns v11.3, so I decided to enable encryption for more secure (like in OOS by default)... but the process ended with a bootloop.
At this point, I've geniusly done a full wipe, to keep encryption and reflash system... the system now is working even with encryption.
But I've noticed that only 24 GB are usable, because 30 GB are allocated by Android system.
According to TWRP, I'm having a 24 GB /data partition.
This is a "false trouble" until first boot (because storage will be properly seen as 53 GB), but now it's happening even after booting the system!
Can you help me?
Thanks in advance
The solution is much simple: the default encryption won't be touched until typing fastboot format userdata in Bootloader Mode.
When switching between different roms, I simply have to do all the needed wipe: encryption remains in any case without any trouble, and the storage is fully usable and recognized.
The thread is now closed.
I am coming from Moto G3. It didn't have any encryption by default.
I saw some people post that they were having trouble to see files in TWRP recovery because of encryption. Can someone explain to me what's the deal with it? Should I have my phone encrypted while rooting and flashing roms? What happens if I decrypt it?
Thanks!
To my knowledge nothing is going to happen as long as the device isn't multi user. I have my data partition encrypted and TWRP works for me (actually using the blu_spark version).
so if you are using TWRP and data partition is encrypted with fingerprint unlock also set, while booting to TWRP, it will ask you to enter your password
the password is the same you used when setting up your fingerprint
while entering it, it will decrypt the storage automatically letting you flash files from internal storage
that is all you need to know
alternative way is to set security to swipe and you will boot directly to TWRP without needing a password
gwolfu said:
so if you are using TWRP and data partition is encrypted with fingerprint unlock also set, while booting to TWRP, it will ask you to enter your password
the password is the same you used when setting up your fingerprint
while entering it, it will decrypt the storage automatically letting you flash files from internal storage
that is all you need to know
alternative way is to set security to swipe and you will boot directly to TWRP without needing a password
Click to expand...
Click to collapse
So TWRP decrypts internal storage when I enter it. Does that mean the next time I boot my device I don't have encryption and need to do it manually?
aayushgala said:
So TWRP decrypts internal storage when I enter it. Does that mean the next time I boot my device I don't have encryption and need to do it manually?
Click to expand...
Click to collapse
yes TWRP decrypts the data, but you need to password every time you boot in it
also TWRP does not remove encryption, unless you format the data partition
Let's just make sure we're using the correct terms. TWRP does not decrypt the data partition, it just uses the password provided to decrypt the master decryption key and then sets the correct credentials to access the encrypted data partition. So it stays as it is; you just make it accessible by putting in the correct password.
Helllo,
I tried to root my Samsung A5 2017 and also too change to LineageOS. I installed TWRP. In TWRP I selected my Lineage-Zip and OpenGApps-Zip. TWRP finished the installation succesfully. When I startet the phone, Lineage said, that it isn`t working. Now i flashed the StockROM with Odin and Android worked again. I flashed TWRP a second time and tried to wipe the Phone. This doesen´t works. Log says: "Unable to mount storage" "Failed to mount ´/data´(Invalide argument)". Then I tried to install Lineage without wiping, but the Log brought the same result.
Thank you for any help.
First of all, I think your thread belongs to the Q&A section.
To answer your question, or try at least, I'm guessing that the storage is encrypted by the Samsung stock ROM. This encryption sadly can't be removed in any other way than completely formatting the data partition.
You can do this in TWRP in the "Wipe" section with "Format data". This will also wipe your internal storage, so you should have all the important zips for installation on a microSD card or your PC, so you can install them after the wipe (I'm guessing you already did that, since you installed without having access to /data).
If you want to keep the data partition unencrypted in the future but still use the stock ROM, you can flash Magisk after removing the encryption.
Hope I could help.
Hi there,
My phone doesn't boot to android and returns to recovery every time, after doing a dirty installation from ArrowOS 11 encrypted to 12 also encrypted.
I made a backup, but I selected the internal storage by fault.
And now TWRP doesn't ask me for a password, so I can't decrypt the data partition.
What I tried to fix the issue:
I tried to install more than one TWRP version included [Orange fox, PBRP, and a one called twrp_ginkgo-willow-3.4A9_23-12-2020_BL.img (this was one I used before with ArrowOS 11]
installed the last working firmware and the latest ArrowOS 11 as I can't find older versions.
decrypting the data with this command: "ADB shell twrp decrypt mypincode"
The last time this happened to me, I followed those steps:
I had to wipe all partitions and clean install the same previous ROM
Then I created the same pin code as my previous one
I created a backup of boot, Dtbo, and recovery
restored my data backup through TWRP
restored the boot, Dtbo, and recovery
wiped the Dalvik / Art Cache and Cache
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Is there anything else I can do to recover my data?
QuietLife said:
The problem now is that I created the backup on the internal storage by fault. If someone made the same pin code as mine and created a backup of the boot, Dtbo, and recovery for me is it going to work?
Click to expand...
Click to collapse
No, decryption key is unique
QuietLife said:
Is there anything else I can do to recover my data?
Click to expand...
Click to collapse
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
loopypalm said:
No, decryption key is unique
If you already (sometime in the past) flashed DFE wih format data , then just flash DFE and clear chache/dalvik + reboot
if you never did it then i'm afraid there is no solution ,you have to format
Ask in DFE topic to make sure
Click to expand...
Click to collapse
I didn't use it, but last time I didn't use it also and I restored my data, so I think I might have a chance.
Is there a way to backup the current encrypted data partition to a PC or a memory card?
QuietLife said:
I didn't use it, but last time I didn't use it also and I restored my data
Click to expand...
Click to collapse
Some roms does not encrypt data by default, that was the case i think
QuietLife said:
Is there a way to backup the current encrypted data partition to a PC or a memory card?
Click to expand...
Click to collapse
I never tried it (i never encrypt) so i'm not sure
you can change the bkp path in Ofox to USB (OTG) or SDCard and see if it work