i have twrp installed using the bootloader unlock bypass.
how do i go about decrpyting the phone so i can install stuff from twrp in the future?
cheers
This question was lost with time.
If i seen it before i would have answered it before.
Wgen you first install vbmeta skip partition it wipes your security options. Messing with the encryption of your data partition.
The only way to gain access to the data partition again is to format the data partition and start the phone fresh.
I assume since this post is 2 months old you made the choice already to format data to gain access to you drive once more.
As long as you keep your new vbmeta through all your new zip installs you should be able to access your data on each update.
Related
How do I fix this i decrypted it and now this what do I have to do?
Solution
[/IHi! So are you saying it is mandatory to "unencrypt" (hence format int. storage) in order to be able to install this ROM?
not to flash ROM. You can flash it while encrypted. But it will ask you for a password on first boot. And after that you are ****** because you will lose access to the internal storage, rendering the recovery useless at this moment... however you will still have access to the phone via bootloader. After that, the only way to decrypt will be via fastboot command "fastboot format userdata" (in which you lose all your data).
From my understanding, because of this command you may experience issues with your partition. At least I had a problem: my internal storage was "cut" in half on windows when I connected phone and checked and after booting first time finally thinking everything was solved disk info also reported that I had some 30gb used, with about high 20's gbs free. I was like wtf.
However, luckily, after formatting internal storage via fastboot command you gain access back to your storage, as the encryption (which was blocking you) is gone. This way you can format (yes, again) your storage through recovery (format, not wipe). It corrects the partition and your phone is read as having 64gb of storage again.
Bottomline, as I understand, had I been decrypted from the start ( which means, before flashing the DU ROM) I wouldn't have had any problems at all with booting ROM first time after installing it and gapps, because it wouldn't ask me for a password. So I wouldn't have to fastboot command to format storage, and wouldn't have problems with partition requiring a new format (this time through recovery).
tip: don't forget to check my comments in the previous page. And I advise you to unencrypt before flashing this ROM. There are tutorials on youtube and xda developers forum certainly. Maybe even here. Good luck every one. And I sincerely only recommend rooting your phone and flashing custom roms if you get the basics of a few commands at least on fastboot and know how to backup your stuff before in case something goes very wrong and your recovery goes to ****
edit: you can decrypt and not lose your data if you backup, move backup to pc, and then, after decrypting, move everything back to your phone.
*
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.
Why i cant wipe system (or edit build prop in OS) on this device? There is not twrp that is capable wipe system... (system partition not even showing in wipe menu)
Why is that? I would like to be able to wipe system partition cause otherwise im be able to switch roms without wiping internal memory... (Without formating data) at least i think... feel free to correct me
In new phones, system is part of dynamic partition called super. Without proper twrp, you can't see super's content. And even if you could, wiping system would probably brick the device because of new partitioning systems, which are not yet implemented in twrp (twrp barely got android 10 support, and we're few months away from 12. As far as deleting system partition, that's not how it's done anymore since android 8 (or 9)... Every rom out there overwrites whole system partition, so there's no need to mess with it. About internal storage, there's more to it than your data there, and dirty flashing is indeed possible, but without proper encryption/decryption support from twrp, you'll just lose access to your data when switching roms, because data encryption is done on the first boot. New rom doesn't care about old encrypted data in internal storage, and just re-encrypts it, leaving you with unusable data. So it's all about making proper twrp (or any other recovery for that matter), but until that's done, you're stuck with this. And don't get me wrong, it's the same for almost every phone out there in the past year or two...
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
I think I have just screwed up big time.
Here is what happened:
Had CrDroid 8 installed (Android 12) with encrypted storage
Wanted to upgrade to next version; following the guide, simply did a wipe (without any advanced options) in TWRP and then installed the zip
Realized after rebooting that the phone has been completely reset and internal storage shows as empty
I know that this is related to a problem with decryption by TWRP with A12.
My question is, is there any chance that I would be able to recover my lost files? I mean where did they go? What could have happened? Did TWRP just not understand the encrypted data so it threw it away and recreated it, overwriting these files?
Is there any chance that the previous data partition (my internal storage, all my photos, etc) are still somewhere to be found within the storage and I could locate this partition and decrypt it using my passphrase? I am desperate at this point. I am stupid and did not make backups. I thought this would be a regular upgrade, wipe, install ZIP, like I've done dozens of times... Couldn't I perhaps scan the raw disk devices for some magic string or anything that would mark the start of the encrypted partition?
Sorry about the frantic writing, I am devastated and literally begging for any kind of help with this. Thank you.
Sorry for the noise, I was desperate I gave up since then, I just don't think this is possible. As far as I understand the encrpytion keys have been flushed (which are kept in the TEE anyway?). I still don't fully understand why TWRP just decides to wipe /data/media as well as /data in this case, but what is done is done. Back up your data guys. Same old story.