Data Partition Encrypted Unable to TWRP Backup/Restore - Huawei P20 Lite Questions & Answers

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

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.

Urgent Recovery Problem?

Hello there im new to the android scene, i have rooted my lg g5 and have twrp on my phone. However i stumbled across a problem with the recovery
while on twrp.
I did a wipe before trying to restore my previous backup from micro sd (format ex2). when the phone boots i get a white screen saying (encryping on the top) and (reset phone button in the middle of the screen).
Cant seem to get out of it, would appreciate it if someone can help me?
Also a Popup screen shows : "Warning! Current version is not available for user. cant find matched cust for Nt-code mcc/mnc[FFFFFF],subset[11]"
s2929 said:
Hello there im new to the android scene, i have rooted my lg g5 and have twrp on my phone. However i stumbled across a problem with the recovery
while on twrp.
I did a wipe before trying to restore my previous backup from micro sd (format ex2). when the phone boots i get a white screen saying (encryping on the top) and (reset phone button in the middle of the screen).
Cant seem to get out of it, would appreciate it if someone can help me?
Also a Popup screen shows : "Warning! Current version is not available for user. cant find matched cust for Nt-code mcc/mnc[FFFFFF],subset[11]"
Click to expand...
Click to collapse
1. flash SuperSU package http://download.chainfire.eu/supersu-stable with TWRP to get out of encrypt issue
2. after rooted and booted, navigate to root/cust and delete all files and folders from that folder so you won't get that popup at startup
dont work
still no fix man, i navigated to root from twrp, there wasnt any "cust" folder or file, so i deleted root instead thinking it will delete those folders you suggested, since it was hidden.
s2929 said:
still no fix man, i navigated to root from twrp, there wasnt any "cust" folder or file, so i deleted root instead thinking it will delete those folders you suggested, since it was hidden.
Click to expand...
Click to collapse
I wonder how could have you deleted root since that is a system folder
you might be in some issues deleting it
anyway, I recommend flashing back V10d with LGUP and try to install TWRP and what you need after
I had the same issue, wiping data, cache & dalvik in twrp fixed it for me.

Twrp can't mount system, unable to decrypt data

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.

Create Backup of Userdata for Odin?

So hello, I'll come right to the point.
I have a rooted Galaxy S7 and it's working good but I want to make a backup of my /data so I can format the data partition from TWRP, as it's encrypted and I can't turn it off (I can disable secure boot but even if I restart the device it doesn't show the option to decrypt the data partition) (cdn.discordapp.com/attachments/301383158509600780/633697401802194955/Screenshot_20191015-180241_Settings.jpg).
Sry for discord, couldn't find anything else to upload from mobile :/
I have rooted with Magisk v.20 and everything else is working really good so I dont want to loose my setup and redo it.
Also how do I update the firmware without removing Magisk? What partition do I need to exclude?

Data partition stuck in encryption after custom rom install

I´ve tried to find any specific info on the subject for this phone but found none.
Maybe someone can help.
All was good on my phone when using Havoc custom rom. Yesterday I tested an android 11 custom rom on the device but decided to go back to 10. Orange Fox recovery restore gets stuck in the boot process. When using TWRP it can´t acess Data partition, so I´m unable to make any backups of data partition with it.
I´ve tried two diferent versions of either, and on TWRP after formating data the partition is once again acessible, but as soon as I flash a custom rom (tried two diferent one´s), boot to it and then reboot to recovery the Data partition is once again unacessible (encrypted) showing "0 MB".
Orange Fox recovery allows to access the data partition and so allows for backups to be created, but the restore process always ends up suck at boot (odly enough when enabling MTP on Orange Fox and connecting the phone to my Windows 10 machine two internal storage partitions appear in Explorer along side the SDCard one - all with the same content exactly). Something weird is going on here.
I´ve tried the steps on this post regarding DM verify (I do not know if it has got something to do with it) but it did not work (the fstab file already shows decryption on its entries):
[Deprecated] Universal DM-Verity, ForceEncrypt, Disk Quota Disabler [11/2/2020]
Hi all! For the past couple of months, I've been looking into making a more universal solution to disable dm-verity and forceencrypt. Needing to take different zips, modify them for different devices, and then cross your fingers when you switch...
forum.xda-developers.com
Has anyone had similar problems or knows what might be going on on my device?
Is the internal flash memory going bad maybe? I´m at a dead end here.
Apreciate any idea.
Thank you.

Categories

Resources