Twrp can't mount system, unable to decrypt data - ZTE Axon 7 Guides, News, & Discussion

My bootloader is unlocked and Twrp is installed. I flashed CM13 but was having issues with root so I ran "adb shell reboot disemmcwp" that made Adaway work but Titanium backup still would not uninstall system apps. Twrp says it can't dycrypt data and I am unable to move my TWRP backup off the device. I've formatted everything. I don't entirely understand the encryption, if I need encryption? Should I be having errors in Twrp or be able to mount system? I don't know if I did something wrong and what to do to fix it? I was hoping to figure this out before reflashing cm13.
mod please move to questions, sry

Not sure if this will fix your problem but I had the encryption issue when I flashed CM. When I set up my pin I unknowingly chose ask for pin when starting device. So TWRP asked for a password to decrypt. My pin did work in TWRP. I fixed it in the security settings. Does TWRP ask for a password?

Fixed it. I had choose a pin setting up CM. The fix for me was to hit cancel in Twrp when it asked for a pinand then format the data.

Related

How do I RE-ENABLE disk encryption/use password with TWRP?

I have a LG G5 H850, with 6.0.1 and stock V10c-EUR-xx.
I disabled disk encryption using the no-verity-opt-encrypt.zip utility by jcadduono.
Now I wiped again using TWRP, but encryption is still disabled as the boot.img/partition still has his modifications to the fstab files (where he does
the change s/\bforceencrypt=/encryptable=/g etc.)
How to I set that back to as it was?
I got into this sitation as I kept finding TWRP could not access the partition - asked for password and there was none.
I do want to use encryption but in my first hour of setting up the phone I had a problem where when I booted into TWRP it would ask for a password and it was not "default_password", and I had not set anything and never used lock screen/pin etc. I tried setting a lock screen/boot screen password - the phone worked but TWRP could not access the filesystem. I tried the cryptfs application and still TWRP was not able to decrypt/access the partition.
Then I tried a terminal with vdc cryptfs changepw command and that just locked me out of the phone completely, as the new or old boot password would not work.
So I went for the no-verity-opt-encrypt.zip solution - but I dont want an unencrypted phone either. Now I want to try encryption and TWRP again - this time setting a pin at the first setup screen opportunity to see if that gets set as the password that TWRP could use. However I can't remove the disable encryption patch!
Ideally I am trying to get to a setup where:
encryption is enabled
I want to be able to boot TWRP and access the encrypted filesystem and install more zip files such as xposed/supersu updates etc anytime in the future.
I dont want to use the "no-verity-opt-encrypt.zip" patch.
I do not want TWRP to be locked out from modifying the encrypted system partition.
Additionally, I havbe not been able to install xposed using TWRP and the zip file (http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v86-sdk23-arm64.zip) .
In TWRP it installs, I dont see any errors, but on boot up I have no xposed icon. I have been able to install it by downloading the apk and installing as an untrusted source, not sure if there is something wrong in having to do it this way?
Thanks.
current TWRP build for G5 doesn't support encryption
you can use encryption but in TWRP you won't be able to access some partitions (if I remember right is data partition but I might be wrong here)
in order to do so, you need to restore base firmware with LGUP that will turn encryption back on
Thanks. I got it working by flashing just the boot using LG-H85010C-Flashable.Boot.zip
tomb007 said:
Thanks. I got it working by flashing just the boot using LG-H85010C-Flashable.Boot.zip
Click to expand...
Click to collapse
may i ask how did you root it after that? because everytime i try to rooted while encrypted,i flash the zip in twrp (with no errors) but system still has no root! the only way i could root was to format /data in twrp, hence have a decrypted phone!
I am looking for the same thing as you are : encrypted phone with twrp and root access.
I rooted using TWRP adding supersu at the time of installing the OS before the OS encrypts the partition. Once the partition is encrypted TWRP can no longer access it, and I can no longer install supersu or anything else.
I may have installed root before encrypting, then reflashed the boot partition so that encryption is re-enabled, then ran twrp to reapply supersu - which would fail to put files on the encrypted partition - but this is fine as they were already there, and let the twrsp supersu installation modify the boot partition.
The result is an encrypted phone with root and TWRP. However, TWRP can not access the encrypted partition so I don't think I can update supersu using TWRP, and I dont think I can patch the OS easily without wiping the encrypted data and reinstalling everything due to this. As I am not sure if updating the OS works without wiping data, I have yet to try that.
you shouldnt have to mess with data at all to use supersu while encrypted.
my g5 is encrypted and always has been (besides in various testing) and there's never been an issue of flashing supersu.
though there may be some issues if trying to restore encryption and flashing supersu in the same reboot cycle.
and yes, data partition in twrp cant be accessed in twrp if encrypted.. but you can just push a file to the /tmp directory while in twrp and then flash anything... or enable adb sideload and flash something that way... or use an external sd card and put the file on there. the only thing you really miss out of if using twrp while encrypted is being able to manipulate the data partition... it does not stop you from flashing files or running scripts that modify /system or other partitions (besides /data).
supersu uses the unencrypted /cache/ partition to work in when you flash it while encrypted so an encrypted /data partition should not be relevant.

Failed to decrypt data with the good password ! help !

Hello,
Since 2 months my phone (redmi note 4 with twrp and miui 9 based on android 7.0) is encrypted without any problem.
Every boot or into twrp, phone ask password and accept it and decrypt data. Into andoid, I just use fingerprint to unlock mobile.
Yesterday, I reboot my phone into twrp and he prompt for password (normal procedure for decrypt data). I enter it and twrp say : "E: Decrypt took too long, killing process Failed to decrypt data"
I try to reboot and enter into android, and same problem. The phone does not accept password in order to decrypt data.
Ok probably I don't remember my password and make a mistake. I decide to search for my password into my keepass, and it's the same !
I got a twrp full backup, and into "/data/system/device_policies.xml" I can see length, uppercase,lowercase, letters, numeric,symbols,nonletter of my stored password. And do you know what, ALL IS CORRECT !
Why did my phone does not accept password ?
What can I do ?
Thanks
sorry for my bad english, it's not my native language.
neo_mat said:
Hello,
Since 2 months my phone (redmi note 4 with twrp and miui 9 based on android 7.0) is encrypted without any problem.
Every boot or into twrp, phone ask password and accept it and decrypt data. Into andoid, I just use fingerprint to unlock mobile.
Yesterday, I reboot my phone into twrp and he prompt for password (normal procedure for decrypt data). I enter it and twrp say : "E: Decrypt took too long, killing process Failed to decrypt data"
I try to reboot and enter into android, and same problem. The phone does not accept password in order to decrypt data.
Ok probably I don't remember my password and make a mistake. I decide to search for my password into my keepass, and it's the same !
I got a twrp full backup, and into "/data/system/device_policies.xml" I can see length, uppercase,lowercase, letters, numeric,symbols,nonletter of my stored password. And do you know what, ALL IS CORRECT !
Why did my phone does not accept password ?
What can I do ?
Thanks
sorry for my bad english, it's not my native language.
Click to expand...
Click to collapse
You have to used "Format Data" option in TWRP.
You'll lose everything on your Internal storage of course (music, photos, videos etc.)
Hello, It's what I do.
I wipe /data and consequenly internal sdcard. After that, I restore my old twrp's backup of /data partition. And surprise, I use my password and it's OK !
This demonstrate that my /data suddenly broken ! (encryption, data corruption...)
Just before wipe all data I make a dd image of userdata partition in case
I don't know if crypt process were broken into android.
Is there a way to decrypt with linux PC binary of img with my password ?
neo_mat said:
Is there a way to decrypt with linux PC binary of img with my password ?
Click to expand...
Click to collapse
You mean the encrypted DD image of your data partition?
Yes, I know the password. I want to try it into linux a recover my data
neo_mat said:
Yes, I know the password. I want to try it into linux a recover my data
Click to expand...
Click to collapse
I don't think you'll have the option to provide the password you set. It's probably not like an encrypted archive.
You can just try to mount the image and see if you can access it.
You could have just extracted it with tar if the backup wasn't an image!

Data Partition Encrypted Unable to TWRP Backup/Restore

Hi,
My phone is rooted with TWRP (notch friendly version) and running magisk (both preserve tick boxes are unchecked)
When I go in to TWRP, - It wants the password to mount (which i dont have); if I bypass this, I cant flash a ZIP because I cant find it due to the data partition being encrypted (i.e jumbled foldernames)
For this reason I cant find my TWRP restore file to restore to a previous version
When I try to TWRP backup it cant mount system or data
No sure what to do next.... is magisk doing this? should I uninstall it?.. Im sure it wasnt always encrpyted as I managed to make 1 backup in TWRP
The main issue is, during the night the phone reboots to recovery (no idea why - i guess its trying to flash an update) and then hangs on the "password to mount" screen.. causing my alarms not to go off in the morning
Matt
Any ideas how to decrypt data partition? I'm a bit stuck for what to do.. I'm thinking about downloading/installing through erecovery.. But could be risky.
Sent from my ANE-LX2 using Tapatalk

Twrp on redmi 6a

I flashed twrp on my redmi 6a, but i haven't been able to succeed at formatting data, or anything from advanced wipe. Also ADB sideload has refused to start. First i thougt it was because of the encrypted data and tried every way to decrypt like flashing universal disabler before magisk. I noticed that preserve force encryption in magisk was unticked but twrp still asked for the password and also my root was screwed big time and most apps couldn't find it, so i flashed the stocked rom and started afresh, now i want to try resurrection remix(not sure it's a good idea) but process is involved with formatting data and advanced wipe. I'm using twrp 3.2.3.2-cactus. Some help
it seems that no one can solve encryption problem in twrp?
All google result said that this should be formatting data partition. One question is: how could the format partition data whlie the partition is untouchable?
adista said:
it seems that no one can solve encryption problem in twrp?
All google result said that this should be formatting data partition. One question is: how could the format partition data whlie the partition is untouchable?
Click to expand...
Click to collapse
Use the TWRP-1020 one.
jonaaa, how does that work any different.

Disable internal storage encryption without wipe data

Is there anything way that i can disable data encryption? Both TWRP and orange fox not allow me to install anything and asking for password, i tried both lock password and mi password but nothing. I am trying to root my phone, i also tried to make a patched boot image with magisk manager but not install button was showing up.Any solution?
Stock rom with miui global 10.3.1.0 version
tzagaritos said:
Is there anything way that i can disable data encryption? Both TWRP and orange fox not allow me to install anything and asking for password, i tried both lock password and mi password but nothing. I am trying to root my phone, i also tried to make a patched boot image with magisk manager but not install button was showing up.Any solution?
Stock rom with miui global 10.3.1.0 version
Click to expand...
Click to collapse
Don´t waste your time trying to decipher the password, they´re advanced algorithms that Android uses to make the Encryption-By-Default to protect data user not a personal password that can be easily decoded.
You can flash any zip using adb sideload through Advanced options in recovery, the problem would be trying to boot up due to AVB implementation, I never cared about format data when is needed so my important files I ever have on my external SDCard.
Some members refer that such recovery can decrypt data or not, this is not a problem by its own but the ability to boot. The simple way to decrypt data is formatting it.
As a side note decrypt data will be required just in some cases like when you unlocked for first time, when you are coming back to a Miui upgraded rom then to an AOSP one but most of custom roms based on Miui don´t have encryption like ROS, Xiaomi.eu or Mi-Globe.
SubwayChamp said:
Don´t waste your time trying to decipher the password, they´re advanced algorithms that Android uses to make the Encryption-By-Default to protect data user not a personal password that can be easily decoded.
You can flash any zip using adb sideload through Advanced options in recovery, the problem would be trying to boot up due to AVB implementation, I never cared about format data when is needed so my important files I ever have on my external SDCard.
Some members refer that such recovery can decrypt data or not, this is not a problem by its own but the ability to boot. The simple way to decrypt data is formatting it.
As a side note decrypt data will be required just in some cases like when you unlocked for first time, when you are coming back to a Miui upgraded rom then to an AOSP one but most of custom roms based on Miui don´t have encryption like ROS, Xiaomi.eu or Mi-Globe.
Click to expand...
Click to collapse
thanks a lot , i did not know that i could flash zip files in that way, you saved me thanks again
use the custom TWRP by wzsx150, decryption is working with that one https://forum.xda-developers.com/mi-8-Lite/development/mi-8-lite-twrp-t3850019
borg4571 said:
use the custom TWRP by wzsx150, decryption is working with that one https://forum.xda-developers.com/mi-8-Lite/development/mi-8-lite-twrp-t3850019
Click to expand...
Click to collapse
Is possible to send me the img file through Google drive or anything familiar;its a mess trying yo download from the Chinese site
I have Android pie

Categories

Resources