unlocked bootloader, install strix twrp recovery image after everything done i copied lineage rom / gapps into root folder. boot into twrp and file doesn't show up , check mount setting and it show internal storage 0mb. help ?
Same here, I think this happens when you encrypt the internal storage. TWRP can't decrypt it. The only solution was to use a TWRP that support encrypted partitions but I'm not sure if someone has already ported a version like Codeworkx o Bluspark
When unlocking bootloader I was supposed to format data, after this everything was usable, but be aware you have to copy the files back to your phone
I found the problem and the solution. The current TWRP does not support FBE:
https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1322
This means that it doesn't mind, whichever PIN you input it won't get it. Because the pin input functionality is built in, but it won't work it's just not implemented yet.
My temporary solution:
Disable PIN encrypt in the settings, do whatever you need to do with the TWRP with the decrypted /data partition and then go back to the settings and encrypt everything again.
BTW if it's your first time as @d3ighty is quicker to just format /data partition to remove the default factory encryption
How about start reading forum? After flashing twrp you have to boot it format data, restart to recovery and then flash disable encryption zip
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
took me hours to finally got it fix the funny thing is i forgot to enable usb debugging, also have to mount after a data wipe and reboot into recovery again after the wipe. probably i did it differently but it finally work .
uremytoy said:
How about start reading forum? After flashing twrp you have to boot it format data, restart to recovery and then flash disable encryption zip
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
Click to expand...
Click to collapse
Sorry I am a newbie but could you please explain to me step by step how to do this? I'm in TWRP and it doesn't see my zip files. I would most appreciate your help.
Related
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.
Hi there,
New comer on the Poco, I just unlocked it, and look forward to flash a AOSP ROM.
The flashing procedure is not new for me, but when I was used to it, the encryption was not a forced option.
Then today, I'm quite confuse about this process. Here is what I understand so far :
1. Android force every device to encrypt the /data partition
2. this process take place at the forst boot of the current ROM
So my question is : If I flash a LineageOS today, then the system will encrypt my /data partition. So if I want to install another ROPM (let's say Pixel Experience), do I need to format my /data ? Is there any way to preserve this partition, even if I know the encryption password ?
PS : If you have a document about the implementation of the encryption on Android, I will be really please, since I love to understand what's going on my device (and I'm not affraid on crypto stuff )
There's zip that disable encryption. Just flash it every time after flashing ROM. I don't know if custom ROMs has encryption, but MIUI does
Wysłane z mojego POCOPHONE F1 przy użyciu Tapatalka
Ok, I have to flash it before the first boot right ?
Do you have any link of this file ? --- EDIT --- Found it here https://forum.xda-developers.com/poco-f1/how-to/xiaomi-poco-f1-unlock-bootloader-custom-t3839405
Another question on this zip : Why do we need this zip file ? Once encrypted the system check the integrity of every partition (/boot /recovery etc.) ? Wich mean, every time you flash a custom ROM, recovery, it change the integrity and stop working properly (bootloop) ?
Thanks
It's a very weird issue, when I was flashing purely MIUI roms, I needed to flash that zip file every ROM hop.
The last time when I was using MIUI before switching to AOSP, I had it disable force encryption and didn't flash the zip file before flashing the AOSP ROM (meaning after I formatted data).
Now, I don't have to flash the zip file when hopping between AOSP ROMs since I never encounter anything weird during the first boot process.
elpy909 said:
Ok, I have to flash it before the first boot right ?
Do you have any link of this file ? --- EDIT --- Found it here https://forum.xda-developers.com/poco-f1/how-to/xiaomi-poco-f1-unlock-bootloader-custom-t3839405
Another question on this zip : Why do we need this zip file ? Once encrypted the system check the integrity of every partition (/boot /recovery etc.) ? Wich mean, every time you flash a custom ROM, recovery, it change the integrity and stop working properly (bootloop) ?
Thanks
Click to expand...
Click to collapse
The ZIP modifies some text in the fstab on /vendor to tell it that encryption is not forced but optional. This only modifies vendor. Every AOSP ROM I saw so far does not have a vendor at all - it just assumes you already have a good one.
So you only need to flash it when flashing a new Vendor (e.g. Stock ROM includes Vendor). You should be able to keep encryptionand storage across AOSP ROMs without needing to Format.
But it doesn't hurt to just flash it every time you flash a ROM, just to be safe.
Oh great, thanks for the explanation. Perfectly clear
Hi, i have un update on the Xiaomi.eu if i install it via ota will encrypt my data? Thanks
Enviado desde mi POCOPHONE F1 mediante Tapatalk
Hi,
Finally I made update to Oreo on my phone. Of course I had same problem as rest of us with force encryption. I could mount data partition only once, after data format. After reboot, phone encrypts data and I couldn't mount it. After few hours of reading ant testing I found working solution.
1. Unlock Bootloader
2. Flash Eliminater74 TWRP - V3.2.3 For H870 and boot to recovery
3. FORMAT data (option where You have to type "yes") and then reboot back to recovery. Check if data partition is visible. If yes go to step 4
4. Flash Universal DM-Verity, ForceEncrypt, Disk Quota Disablers
5. Flash Magisk17.1
Now after every reboot, data partition is correctly mounted and has no encryption. Tested only on H870 v20C. I also didn't test Backup & Recovery options, only installed couple of zip.
Hope this temporary solution will help until someone implement option to turn off force encryption in TWRP or some kernel.
Chamelleon said:
Hi,
Finally I made update to Oreo on my phone. Of course I had same problem as rest of us with force encryption. I could mount data partition only once, after data format. After reboot, phone encrypts data and I couldn't mount it. After few hours of reading ant testing I found working solution.
1. Unlock Bootloader
2. Flash Eliminater74 TWRP - V3.2.3 For H870 and boot to recovery
3. FORMAT data (option where You have to type "yes") and then reboot back to recovery. Check if data partition is visible. If yes go to step 4
4. Flash Universal DM-Verity, ForceEncrypt, Disk Quota Disablers
5. Flash Magisk17.1
Now after every reboot, data partition is correctly mounted and has no encryption. Tested only on H870 v20C. I also didn't test Backup & Recovery options, only installed couple of zip.
Hope this temporary solution will help until someone implement option to turn off force encryption in TWRP or some kernel.
Click to expand...
Click to collapse
I saw that dm-verity deal also and wondered how it would work on the h872 running oreo. I'm guessing it would but I'd have to go into that thread and read over the info again.
Sent from my LG-H872 using Tapatalk
It might be working. Yesterday checked backup and it seems to be working l.
Very good! I have done! Thank you very much!
isn't formatting data enough?
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.
Update May 23 2019
Now with new Twrp wzsx150 u dont need to follow this Tutorial to get full Backup to work because twrp can Auto decrypt your files
For all Who followed the guide already and want a encrypted device. Do a Format and dont use remove forceencrypt.
New twrp
https://mega.nz/#!TG4RwCrJ!9E0gOOoDaWjtSIS9GoB0pGvCc2BhRU7rSTNNJbAeUxc
---------------------------
Hello
Many people ask me to make a Tutorial HowTo have a full decrypt phone with full backup working.
Before we start u need to flash the newest Recovery from wzs150 Team https://mega.nz/#!WOZEBCpD!UlyCdDaP-UxuwvzLzDE4yzaqi5qMz-I8iOkseQ5gmP0
Steps to flash recovery should be already known or are available in other Threads on xda
So Now lets begin.
First of all you need to know you need to do format Data through the following process. So Backup your Data on your PC, TWRP NOT working
Lets Start.
1. Boot into TWRP
2. Format Data in Wipe Section (The one you need to type yes) i dont reboot TWRP after that
3. Flash the Rom u want
4. Go Back to the Start Screen of TWRP and Click "Advanced" and "RM Forceencrypt"
5. Uncheck "Remove DM Verity" and check "Remove Forceencrypt"
6. Now youre phone is full decrypted and Backup of all partitions are working
7. If u want Magisk flash it now
Notes:
Dont boot your phone before you did the "RM Forceencrypt" step or your decryption gets lost
If u update ur Rom you ALWAYS need to do Step 4 and 5
If u coming from another Rom and want to restore the Rom u need also to restore "Boot"
If u flashing now another Rom you dont need to do format data,wipe data is enough, but always RM Forceencrypt after Rom Flash
Have a nice day
Greetings from Germany
Nice, thx for that ! =)
Great tutorial thanks. Less frustrated flash rounds.
Verstuurd vanaf mijn MI 9 met Tapatalk
MangoMC said:
If u coming from another Rom and want to restore the Rom u need also to restore "Boot"
Click to expand...
Click to collapse
Was does it mean 'restore BOOT'?
Cheers
Toscha
toscha42 said:
Was does it mean 'restore BOOT'?
Cheers
Toscha
Click to expand...
Click to collapse
Boot is one of the Partitions u can Backup. Its where Ur Kernel is located
I dont uncheck "Remove DM Verity" and working too. I select both. Good guide, thanks.
Thanks for this!
Thanks for the step. I can backup now.
But the next time I update, always need to repeat "Remove Forceencrypt"; otherwise, phone cannot boot.
Assume this is needed until future update twrp version. a bit inconvenient, but ok.
Hello. I now use xiaomi.eu I don't want to format data.
I do a step 4 and 5 and can't backup. When I want to boot system nothing.....
I back to Twrp and make reverse step 5 and flash the same rom I have and system working fine. How to make backup without format data?
Wysłane z mojego MI 9 przy użyciu Tapatalka
Not possible. Maybe only wipe of data works but i didnt tested it. Twrp cant decrypt the data on your Phone it can only prevent the Phone to encrypt it
still no encryption support with twrp beta 10 people call formatting data "decrypt" or "unencrypt" all across board, so it adds to false expectations. would never turn off encryption to get, like, backup?
MangoMC said:
Update May 23 2019
Now with new Twrp wzsx150 u dont need to follow this Tutorial to get full Backup to work because twrp can Auto decrypt your files
For all Who followed the guide already and want a encrypted device. Do a Format and dont use remove forceencrypt.
New twrp
https://mega.nz/#!TG4RwCrJ!9E0gOOoDaWjtSIS9GoB0pGvCc2BhRU7rSTNNJbAeUxc
---------------------------
Hello
Many people ask me to make a Tutorial HowTo have a full decrypt phone with full backup working.
Before we start u need to flash the newest Recovery from wzs150 Team https://mega.nz/#!WOZEBCpD!UlyCdDaP-UxuwvzLzDE4yzaqi5qMz-I8iOkseQ5gmP0
Steps to flash recovery should be already known or are available in other Threads on xda
So Now lets begin.
First of all you need to know you need to do format Data through the following process. So Backup your Data on your PC, TWRP NOT working
Lets Start.
1. Boot into TWRP
2. Format Data in Wipe Section (The one you need to type yes) i dont reboot TWRP after that
3. Flash the Rom u want
4. Go Back to the Start Screen of TWRP and Click "Advanced" and "RM Forceencrypt"
5. Uncheck "Remove DM Verity" and check "Remove Forceencrypt"
6. Now youre phone is full decrypted and Backup of all partitions are working
7. If u want Magisk flash it now
Notes:
Dont boot your phone before you did the "RM Forceencrypt" step or your decryption gets lost
If u update ur Rom you ALWAYS need to do Step 4 and 5
If u coming from another Rom and want to restore the Rom u need also to restore "Boot"
If u flashing now another Rom you dont need to do format data,wipe data is enough, but always RM Forceencrypt after Rom Flash
Have a nice day
Greetings from Germany
Click to expand...
Click to collapse
Is the b17 still good if I want to decrypt ? b17 and follow the rest of the decryption steps you have mentioned ?, or shall I flash b10 if I want decryption ? cheers.
vtec303 said:
Is the b17 still good if I want to decrypt ? b17 and follow the rest of the decryption steps you have mentioned ?, or shall I flash b10 if I want decryption ? cheers.
Click to expand...
Click to collapse
U can use both to decrypt with my tutorial. B17 only can decrypt the Data Partition while its encrypted. So u can Backup All data with b17 without the need of remove forceencrypt
MangoMC said:
U can use both to decrypt with my tutorial. B17 only can decrypt the Data Partition while its encrypted. So u can Backup All data with b17 without the need of remove forceencrypt
Click to expand...
Click to collapse
OK cool, I get it, thanks for the quick reply, cheers
simcold said:
Hello. I now use xiaomi.eu I don't want to format data.
I do a step 4 and 5 and can't backup. When I want to boot system nothing.....
I back to Twrp and make reverse step 5 and flash the same rom I have and system working fine. How to make backup without format data?
Wysłane z mojego MI 9 przy użyciu Tapatalka
Click to expand...
Click to collapse
I've not ried it yet as I don't have the phone yet, but apparently this twrp (mi9-3.3.0-9.0-b17) supports encryption, you can use it to backup your encrypted data partition. Though, I'm probably too late and you've wiped already...
EDIT, just read the rest of the thread, seems I'm a bit late to the party! That twrp is already mentioned!!
I just installed B17 and backed up to SD. Seemed to work fine
picitup said:
I just installed B17 and backed up to SD. Seemed to work fine
Click to expand...
Click to collapse
Is that the twrp full rom backup you are talking about ?, backup has always worked for me its the restore which does't works and always ends up with an error, cheers
vtec303 said:
Is that the twrp full rom backup you are talking about ?, backup has always worked for me its the restore which does't works and always ends up with an error, cheers
Click to expand...
Click to collapse
Ahhh no. I tried to backup with earlier versions of TWRP and they failed with an error message. This version seemed to backup OK, but I've not tried a restore yet.
I'm just playing with Titanium backup so once I've got a good backup with that, I'll try TWRP B17 and report back.
Cheers
@vtec303 I just had a play and restore seems to work fine. My TWRP is:
recovery-mi9-3.3.0-9.0-b17.img by wzsx150.
Here's what I did:
Booted into TWRP and backed up Data, System and Boot to an OTG SD card
In TWRP performed a factory reset.
Booted into System, went through the Android setup (not wifi) and checked that all my 3rd party apps had disappeared, I had no SMS or calendar events.
Booted into TWRP and did a restore of all 3 partitions from the previous backup.
Booted into System and found all my 3rd party apps, SMS, Calendar and could browse the web so wifi was configured.
Hope this helps
Cheers
Just a bit extra....
As we know, TWRP doen't back up media data (photos music etc) but I was interested to spot that a factory reset using TWRP doesn't delete all that data either. Pretty handy for me as I'm testing out some backup packages and I don't have to restore all my media files lol.
Cheers