[TUTORIAL] HowTo Decrypt the Phone and have a Working Full Backup - Xiaomi Mi 9 Guides, News, & Discussion

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

Related

[TWRP][Android 6.0][3.1.0-0][c9lte][c9 pro][Indian][Root][decrypt] Work in Progress

TWRP 3.1.0-0 for Samsung Galaxy C9 pro (SM-C900F) indian variant
This recovery is tested only on indian variant but should work on other variants too.​
Code:
Flashing custom recovery and boot images will trip knox flag
and it can not be reverted. Your warranty will be void.
I am not responsible for any data loss or damage happens to device.
THIS PROCEDURE CAN CAUSE DATA LOSS . PLEASE MAKE A BACK UP BEFORE PROCEEDING.
This TWRP is built from source. It support back up of system,efs persist partitions.
As default samsung encrypts data and internal storage so by default you cannot mount data, system or internal storage.
So for removing encryption we have to format data and load decryption script given below.
Steps
1.Boot into Download mode
[Vol. Down + Home + Power]
2.Flash recovery.tar.md5 from odin [use latest 3.12 version and put tar.md5 in AP slot] and keep pressing Vol. Up + Home while flashing tar.md5 so that it will boot directly into recovery after reboot.
3. In recovery keep system read only.
4. go to backup menu and backup all partitions. Now reboot to normal OS
5. connect the phone to PC and copy the TWRP folder from storage to PC. (this is back up for restoring)
6. Back up your data, pictures, contacts, sms, whats up, telegram messages etc.
7. reboot to recovery [Vol up + Home + Power] and format data and in advanced wipe - format system,data,internal storage,cache,davlik from wipe menu.
8. connect phone to pc , now you can see internal storage.
Download & Copy
i) no-verity-no-encrypt_ashyx from https://forum.xda-developers.com/sa...wrp-3-0-2-1-samsung-galaxy-a9-pro-sm-t3426701
ii) SuperSu https://forum.xda-developers.com/showpost.php?p=55256620&postcount=1
to storage
Now copy your TWRP back up to storage.
9.Now from restore menu install the back up. > Go to install and select the above 2 zips for install.
10. after installing all this you have rooted phone with decrypted twrp . Now boot to os
Remember to make back up of this rooted configuration in TWRP so that you can always get back to this configuration when ever you want.
Download
https://forum.xda-developers.com/attachment.php?attachmentid=4104671&d=1491593451
Source
1. Manifest
https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-6.0
2. Device tree
https://github.com/k2wl/c9lte-twrp
3. Kernel
built from opensource.samsung.com
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=c900f
Credits
*Samsung for kernel source.
*Omni rom and TWRP team
*@jcadduono @ashyx for dm-verity and forced encryption patcher.
*LineageOS team
*@pawitp (for being an inspiration )
*@Chainfire for supersu
things i tested
1.back up and restore
2.format data
3. wipe all mounts from advance wipe
4.language settings
5.root by supersu
6.dm-verity and encryption removal
7.MTP after data format
8.adb sideload
9.reboot to recovery, system,download,power off
10.file manager
so i think all basic things working properly if you follow the steps i listed above.
Atlast... Feeling blessed..
Thank you K2wl for working on this phone.
Will flash this TWRP & Let you know the status.
Is this TWRP version same as the one in the other thread? Because I already tested the TWRP in the other thread & posted few issues. Are they rectified?
Please let us know.
:good::laugh:
---------- Post added at 01:21 AM ---------- Previous post was at 12:40 AM ----------
K2wl,
Any chances of porting Custom Roms on C9 Pro like Cynogen Mod 6.0 or Lineage OS.
Simple roms for this beast phone would be great.
Any plans for this from your side?
Just curious.. :good:
Can we install xposed with this
Pariki said:
Atlast... Feeling blessed..
Thank you K2wl for working on this phone.
Will flash this TWRP & Let you know the status.
Is this TWRP version same as the one in the other thread? Because I already tested the TWRP in the other thread & posted few issues. Are they rectified?
Please let us know.
:good::laugh:
---------- Post added at 01:21 AM ---------- Previous post was at 12:40 AM ----------
K2wl,
Any chances of porting Custom Roms on C9 Pro like Cynogen Mod 6.0 or Lineage OS.
Simple roms for this beast phone would be great.
Any plans for this from your side?
Just curious.. :good:
Click to expand...
Click to collapse
yes ..i am planning for lineage
and if you follow my instructions this twrp works good!!!
@rajdeep312 this is recovery and not a rom so you can install xposed in your os if you want to...(i personally does not use exposed)
k2wl said:
yes ..i am planning for lineage
and if you follow my instructions this twrp works good!!!
@rajdeep312 this is recovery and not a rom so you can install xposed in your os if you want to...(i personally does not use exposed)
Click to expand...
Click to collapse
Thanx man so everything working in this recovery or somthing broken
rajdeep312 said:
Thanx man so everything working in this recovery or somthing broken
Click to expand...
Click to collapse
see post 2
k2wl said:
things i tested
1.back up and restore
2.format data
3. wipe all mounts from advance wipe
4.language settings
5.root by supersu
6.dm-verity and encryption removal
7.MTP after data format
8.adb sideload
9.reboot to recovery, system,download,power off
10.file manager
so i think all basic things working properly if you follow the steps i listed above.
Click to expand...
Click to collapse
========================
Great. Will work on the phone tomorrow & check on the TWRP & Xposed framework..
Will post updates on the new recovery & for any issues.
Eagerly waiting for K2wl to work on Lineage OS.
Thanks K2wl. :good::laugh:
I am not able to format /data & an SD card more than 8 GB is needed to backup the system.
I was able to format system.
Pariki said:
I am not able to format /data & an SD card more than 8 GB is needed to backup the system.
I was able to format system.
Click to expand...
Click to collapse
use format data from advanced wipe.
type yes for formating data
after that go back to install and install no-verity-no-encrypt script above from internal storage.
if that does not solve your problem then copy the recovery log here.
Lineage OS..
Hi Karthik ( K2wl ),
Any update or tentative date by when we can expect Lineage OS..
Please let us know about this...
:good: :good:
Pariki said:
Hi Karthik ( K2wl ),
Any update or tentative date by when we can expect Lineage OS..
Please let us know about this...
:good: :good:
Click to expand...
Click to collapse
no tentative date ...i am working on it...
Great.... :good:
Eagerly waiting to test it out...:fingers-crossed:
After format everything and restore unable to mount data and unable to see internal storage
rajdeep312 said:
After format everything and restore unable to mount data and unable to see internal storage
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=71792618&postcount=10
see this post.
do this and reboot to recovery again
you should able to mount the internal storage
i am waiting for my c9p, may be china version.
can i change to india version so i can flash the above twrp?
tks.
amk said:
i am waiting for my c9p, may be china version.
can i change to india version so i can flash the above twrp?
tks.
Click to expand...
Click to collapse
i dont have china variant so i cant comment on that. but i will try to build china variant twrp.
Successfully installed Wanam Xposed..
I followed the instructions by K2wl & installed Wanam Xposed.
Format System, Data & Restoring backup worked fine.
Then installed
xposed-v87.1-sdk23-arm64-custom-build-by-wanam
XposedInstaller_3.1.1.apk
All good now.
Eagerly waiting for K2wl's Lineage OS now..
:good: :laugh:
Pariki said:
I followed the instructions by K2wl & installed Wanam Xposed.
Format System, Data & Restoring backup worked fine.
Then installed
xposed-v87.1-sdk23-arm64-custom-build-by-wanam
XposedInstaller_3.1.1.apk
All good now.
Eagerly waiting for K2wl's Lineage OS now.....but i am working on it..
:good: :laugh:
Click to expand...
Click to collapse
i know it is taking time as development on samsung is bit difficult..
Plz take your time. Will wait..
:good::good:

[i9300] CM13 stuck on "Preparing apps" after update

Hello everyone,
A friend of mine has a Galaxy S3 i9300 which I installed years ago CM13. I don't what update he installed but now the phone starts with the screen "Preparing X of Y apps" => when we think it's over (because the phone restarts at the end), well it does another "Preparing X of Y apps", and so on
I don't know what I should do : repair it by flashing the old zip (cm13-2016...-.zip) but maybe I have to "wipe cache" and "wipe dalvik" before?
Or maybe I have to wipe everything (wipe cache, wipe dalvik...) in order to flash LineageOS ? I'd like to follow this path anyway but how can I save the data of my friend such as SMS, Contacts.. ?
It has TWRP and I can mount the partitions and access them via PC
Thank you for your help
Go back to the older gapps.
shivadow said:
Go back to the older gapps.
Click to expand...
Click to collapse
That's what could cause the problem ? Do you have a link about which version of Gapps should I install ? I'm gonna try that by flashing them via TWRP
Should I do a wipe or anything else ?
The only thing you could wipe is cache without having to start over. I doubt that'll fix anything. You can try sourcing another copy of that version to see if the one you have is corrupt.. Otherwise it's probably going to be that it simply doesn't support your os.
shivadow said:
The only thing you could wipe is cache without having to start over. I doubt that'll fix anything. You can try sourcing another copy of that version to see if the one you have is corrupt.. Otherwise it's probably going to be that it simply doesn't support your os.
Click to expand...
Click to collapse
What apps did he install?
Some apps make the system crash. It's a bug that only happens in cm12/13 based roms. Try upgrading his phone to lineageos or install android 4.4
JCFB said:
What apps did he install?
Some apps make the system crash. It's a bug that only happens in cm12/13 based roms. Try upgrading his phone to lineageos or install android 4.4
Click to expand...
Click to collapse
If it's me I'd upgrade to LineageOS 14.1 directly But I was thinking about its data such as SMS, MMS...
I just did a Nandroid Backup using TWRP => is it possible after installing LineageOS 14.1 using clean method (after wiping data, cache and system I think ?) that I can retrieve the data by restoring TWRP backup ? (without the cm13 of course)
skype007 said:
If it's me I'd upgrade to LineageOS 14.1 directly But I was thinking about its data such as SMS, MMS...
I just did a Nandroid Backup using TWRP => is it possible after installing LineageOS 14.1 using clean method (after wiping data, cache and system I think ?) that I can retrieve the data by restoring TWRP backup ? (without the cm13 of course)
Click to expand...
Click to collapse
I am not sure, try restoring only the data partition over a clean lineage install. I don't like dirty flashing, but you have no solution other than try this. If it doesn't work it's time to start from zero.
I was almost forgetting, try flash cm13 zip, then restore data partition from twrp and if you can boot, do a Titanium backup of the data you want. Then do a clean install of lineage and try to restore the titanium backup
JCFB said:
I am not sure, try restoring only the data partition over a clean lineage install. I don't like dirty flashing, but you have no solution other than try this. If it doesn't work it's time to start from zero.
I was almost forgetting, try flash cm13 zip, then restore data partition from twrp and if you can boot, do a Titanium backup of the data you want. Then do a clean install of lineage and try to restore the titanium backup
Click to expand...
Click to collapse
I tried to flash old cm13 zip that I have (without gapps) => it boots
Then I tried via TWRP to restore only data partition => Stuck again with "Preparing apps" xP
What If I flash LineageOS 14.1 from scratch but use Titanium Backup to extract data from Nandroid backup ?
skype007 said:
I tried to flash old cm13 zip that I have (without gapps) => it boots
Then I tried via TWRP to restore only data partition => Stuck again with "Preparing apps" xP
What If I flash LineageOS 14.1 from scratch but use Titanium Backup to extract data from Nandroid backup ?
Click to expand...
Click to collapse
I think you need the Pro version of Titanium to do that. I don't know any alternative
After many attempts, I finally managed to make it work again
Here's what I do (maybe it could help other people)
Step 1: I restored the Nandroid backup I made via TWRP
=> At this point Cyanogenmod13 is back
Step 2: I found a Cyanogenmod14.1 zip file somewhere on internet (cm-14.1-20161225-NIGHTLY-i9300.zip)
=> I flashed it before/after wipe cache/dalvik
Step 3: I flashed Gapps for this version of Android thanks to open-gapps website
=> Last wipe cache/dalvik before Reboot
Step 4: Enjoy

Removing Data Encryption

I have TWRP installed, but when I wipe data, encryption still is active. TWRP is essentially useless if it can't access /data to do a complete backup/restore. Can someone post steps of how to remove encryption?
You need to install a file called TREBLE-Disable-Forceencrypt using TWRP. Here is the link : https://androidfilehost.com/?fid=1322778262904004415
Make sure to FORMAT DATA in TWRP (not a simple /data wipe, a format, where you need to type yes) and then flash your new system and after that this zip.
_cab13_ said:
You need to install a file called TREBLE-Disable-Forceencrypt using TWRP. Here is the link : https://androidfilehost.com/?fid=1322778262904004415
Make sure to FORMAT DATA in TWRP (not a simple /data wipe, a format, where you need to type yes) and then flash your new system and after that this zip.
Click to expand...
Click to collapse
Thanks cab13, that did the trick. Appreciate it. I backed up, and then deleted the /data partition, and TWRP warned "No OS"! Restored my backup, so all is working in both directions with TWRP. Thank You!
No big deal Enjoy your phone.
I've created a thread for the Umidigi One Max modding, check it out : https://forum.xda-developers.com/android/development/umidigi-one-max-custom-rom-modding-t3942521/

TWRP extractfork 255 error and Force Encryption

i have two huge problems like i mention in thread title. Whenever i restore my TWRP backup it gives error and says "Extractfork 255 error" and nothing in internet solved my issue.
My other and biggest problem is phone info says "encrypted" how to disable force encrypt?
Not even a single answer??
You can only disable force encrypt by flashing "patch no fde" file available on most rom threads.
But you will have to format data which will wipe your whole phone and flash the file before rebooting.
The reason your getting the other error is most likely twrp can't decrypt your data seeing as force encrypt is enabled.
And don't expect an answer, nobody here on xda is entitled to get questions answered. Alot of this information could have been accessed online if you just researched yourself instead of waiting over a week for a reply. It's not hard to type into a search engine
You haven't provided much information. Which TWRP version, what are you trying to restore, which steps have you tried and failed, what do you see in the TWRP logs etc. We do not have a crystal ball to guess the answers.
To decrypt the data, flash verity disabler and format data partition from TWRP. https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Edit: garylawwd was a bit faster in reply
garylawwd said:
You can only disable force encrypt by flashing "patch no fde" file available on most rom threads.
But you will have to format data which will wipe your whole phone and flash the file before rebooting.
The reason your getting the other error is most likely twrp can't decrypt your data seeing as force encrypt is enabled.
And don't expect an answer, nobody here on xda is entitled to get questions answered. Alot of this information could have been accessed online if you just researched yourself instead of waiting over a week for a reply. It's not hard to type into a search engine
Click to expand...
Click to collapse
Of course i did search of course i didnt sit and wait for a response but as you can clearly see i flashed no fde patch even though it say succesfull but it always getting encrypted by itself again. Thanks for reply by the way
_mysiak_ said:
You haven't provided much information. Which TWRP version, what are you trying to restore, which steps have you tried and failed, what do you see in the TWRP logs etc. We do not have a crystal ball to guess the answers.
To decrypt the data, flash verity disabler and format data partition from TWRP. https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Edit: garylawwd was a bit faster in reply
Click to expand...
Click to collapse
Correct me if im wrong but we have just 1 really working twrp and its 3.3.1.2 by Nikesh and im using it. I was really thinking its very simple question. i didnt get why it looks like so complicated ) i tried to restore my nandroid backup and all of sections are succesfull exept /data partition. when it comes to /data partition it gives "extracttark error 255 ". Im still confused why you didnt get my question
sasukeob said:
Of course i did search of course i didnt sit and wait for a response but as you can clearly see i flashed no fde patch even though it say succesfull but it always getting encrypted by itself again. Thanks for reply by the way
Click to expand...
Click to collapse
What you mean that you flashed patch no fde because no where have you mentioned that you had flashed anything. You won't be able to restore the backup now because your data is encrypted and this twrp can't restore encrypted data.
You need to format data and then flash patch no fde like both of us already said. Then you can make a backup that you can restore later. You can't do anything about your encrypted data now
sasukeob said:
Correct me if im wrong but we have just 1 really working twrp and its 3.3.1.2 by Nikesh and im using it. I was really thinking its very simple question. i didnt get why it looks like so complicated ) i tried to restore my nandroid backup and all of sections are succesfull exept /data partition. when it comes to /data partition it gives "extracttark error 255 ". Im still confused why you didnt get my question
Click to expand...
Click to collapse
You are right, the answer to your question is very simple and obvious, I don't get why do you find it so complicated that you must ask here in such a nice manner.
---------- Post added at 07:18 PM ---------- Previous post was at 07:10 PM ----------
garylawwd said:
What you mean that you flashed patch no fde because no where have you mentioned that you had flashed anything. You won't be able to restore the backup now because your data is encrypted and this twrp can't restore encrypted data.
You need to format data and then flash patch no fde like both of us already said. Then you can make a backup that you can restore later. You can't do anything about your encrypted data now
Click to expand...
Click to collapse
From what I read, once you enter the correct password in TWRP and it can read data correctly, backup of /data is unencrypted. After the restore, data gets encrypted by system upon the first boot. This can be verified easily with Titanium backup app, which can read and use TWRP backups. At least that's the theory, but I'm too lazy to verify it
If you perform data backup with incorrect password (or TWRP doesn't support decryption), then your backup remains encrypted and is useless as you said.
_mysiak_ said:
You are right, the answer to your question is very simple and obvious, I don't get why do you find it so complicated that you must ask here in such a nice manner.
---------- Post added at 07:18 PM ---------- Previous post was at 07:10 PM ----------
From what I read, once you enter the correct password in TWRP and it can read data correctly, backup of /data is unencrypted. After the restore, data gets encrypted by system upon the first boot. This can be verified easily with Titanium backup app, which can read and use TWRP backups. At least that's the theory, but I'm too lazy to verify it
If you perform data backup with incorrect password (or TWRP doesn't support decryption), then your backup remains encrypted and is useless as you said.
Click to expand...
Click to collapse
Ya I apologise this twrp does in fact support data decryption it must have been the older version that didn't support it.
Without twrp logs I doubt there is anything we can do.
But like you suggested it may very well be a password error..but we will never know :silly:
i dont understand what im doing wrong. I installed havocos flashed no fde patch. i tried 3 times installed rom and tried. still encrypted
_mysiak_ said:
You haven't provided much information. Which TWRP version, what are you trying to restore, which steps have you tried and failed, what do you see in the TWRP logs etc. We do not have a crystal ball to guess the answers.
To decrypt the data, flash verity disabler and format data partition from TWRP. https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Edit: garylawwd was a bit faster in reply
Click to expand...
Click to collapse
gary thanks for reply but i flashed it and it caused bootloop
sasukeob said:
gary thanks for reply but i flashed it and it caused bootloop
Click to expand...
Click to collapse
Tell us what actions exactly did you do, step by step, in chronological order.
_mysiak_ said:
Tell us what actions exactly did you do, step by step, in chronological order.
Click to expand...
Click to collapse
Ok. I have twrp 3.3.2.0 by nikesh installed. i format data and wipe dalvik cache and data. and i tried to restore my twrp backup. It restoring good but when it comes to restoring /data partition. it gives "Extracttrakfork Error 255" in red characters. I format data flashed nofde.zip but device encrypts itself again. So i tried to instal HavocOs and flash gapps and flash nofde patch. Havocos install succesfull but gapps flash gives error " Unmounting /vendor update process ended with error 25" :/
i flashed Orangefox recovery problem is still same :/
sasukeob said:
Ok. I have twrp 3.3.2.0 by nikesh installed. i format data and wipe dalvik cache and data. and i tried to restore my twrp backup. It restoring good but when it comes to restoring /data partition. it gives "Extracttrakfork Error 255" in red characters. I format data flashed nofde.zip but device encrypts itself again. So i tried to instal HavocOs and flash gapps and flash nofde patch. Havocos install succesfull but gapps flash gives error " Unmounting /vendor update process ended with error 25" :/
i flashed Orangefox recovery problem is still same :/
Click to expand...
Click to collapse
Oh boy, you're doing too many things at once First of all, what do you want to achieve? Restore stock data? Install custom ROM? Just fooling around?
Data restore -
Are you sure that your data backup is decrypted and functional? Try to restore data from nandroid backup in Titanium backup or simply open the twrp backup files (they are tar archives) and check if you see individual files or just garbage.
You mentioned that you tried "everything", but you haven't mentioned this workaround https://forum.xda-developers.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632
Provide full twrp.log after failed restore.
Data encryption -
Have you followed steps described here? https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Provide full twrp.log after zip installation.
Custom ROM -
Find support in the specific ROM topic (and provide twrp.log after failed installation).
_mysiak_ said:
Oh boy, you're doing too many things at once First of all, what do you want to achieve? Restore stock data? Install custom ROM? Just fooling around?
Data restore -
Are you sure that your data backup is decrypted and functional? Try to restore data from nandroid backup in Titanium backup or simply open the twrp backup files (they are tar archives) and check if you see individual files or just garbage.
You mentioned that you tried "everything", but you haven't mentioned this workaround https://forum.xda-developers.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632
Provide full twrp.log after failed restore.
Data encryption -
Have you followed steps described here? https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Provide full twrp.log after zip installation.
Custom ROM -
Find support in the specific ROM topic (and provide twrp.log after failed installation).
Click to expand...
Click to collapse
I dont know how i did but after 1 month of try and fail im not quite sure but it seems i succeed now @_mysiak_ I really appreciate bc you spend time for replying my thread. Thank you so much man When you need help about anything just pm me i will try to help you bc you spend your time for me
my only problem is dm-verity now i guess. i dont know how to solve it but i will try

Full Backup (incl. Data partition) via TWRP?

Hi, I'm looking for an overall guide how to do a full backup (from XZ1 #1) and restore (on XZ1 #2) of a currently running ROM which includes also all data.
My XZ1 has an unlocked bootloader and TWRP installed. But last time I tried, I was not able to create a backup of the data partition in TWRP!?
torben5247 said:
Thank you for this fine version of twrp.
I am getting this error when making a full backup (ticked all partitions)
"error backing up system image, cleaning up folder"
I am running stock 47.2.A. 10.45 and j4nn kernel. Ric is off (i can write in system) and twrp are flashed.
i press "cancel" when asking for a password.
Normally the twrp just backup everything without any issues, so i must do something wrong??
Kind regards torben5247
Click to expand...
Click to collapse
Did you find a solution?
SGH-i200 said:
Did you find a solution?
Click to expand...
Click to collapse
I can't remember.... sorry.
But I have used twrp with a password. So it works
torben5247 said:
I have used twrp with a password. So it works
Click to expand...
Click to collapse
That is good news! There is at least one TWRP version which is able to do a full backup including encrypted DATA partition, right? Or do I have to delete all fingerprints and locks before backupping?

Categories

Resources