Does a TWRP format data wipe files and accounts without the possibility of restoration? - General Questions and Answers

I'm giving away my old tablet that has custom rom and TWRP recovery and I was wondering if there's a possibility of restoring my files after performing format date? And if format date also remove my device account and password?
Thanks in advance

Aserar said:
I'm giving away my old tablet that has custom rom and TWRP recovery and I was wondering if there's a possibility of restoring my files after performing format date? And if format date also remove my device account and password?
Thanks in advance
Click to expand...
Click to collapse
After formating data has a little probability to rescue files. You can wipe to factory reset also if have doubts. Start tablet and not settings. The "new" user is save with not password.
Look in the internal storage if have any file.
For more confirmation you can make same process about Wipes again to repass new data files to old. It's overlap the informations into files for u not have any doubt.
Good luck

Related

[Q] Factory reset doesn't delete data/restore system?

Aside from the pee-stain at the bottom of the phone I did notice one thing. When you do a factory reset (and select/check that deleting userdata is okay) it does not:
• delete sdcard data
• remove user settings for apps/wifi
• restore modified system files (hosts, etc...)
• root remains as well
Is there actually a way to do a proper reset and have it restore things as it should? In line with that how do I securely erase the data if possible so in given it to a family or it ends up on some truck with Avast that the data can't be restored?
Thanks!
windraker said:
Aside from the pee-stain at the bottom of the phone I did notice one thing. When you do a factory reset (and select/check that deleting userdata is okay) it does not:
• delete sdcard data
• remove user settings for apps/wifi
• restore modified system files (hosts, etc...)
• root remains as well
Is there actually a way to do a proper reset and have it restore things as it should? In line with that how do I securely erase the data if possible so in given it to a family or it ends up on some truck with Avast that the data can't be restored?
Thanks!
Click to expand...
Click to collapse
WTF? Factory reset does not actually factory reset..? This seems like a huge bug with CM11... Especially the part about the lack of deletion in the SD card and user settings.
an_xda said:
WTF? Factory reset does not actually factory reset..? This seems like a huge bug with CM11... Especially the part about the lack of deletion in the SD card and user settings.
Click to expand...
Click to collapse
Nope. I had rooted the phone and while I think I lost root; the modified hosts file I changed (http://winhelp2002.mvps.org/hosts.htm) was still there as well as the entire SD card contents. It remembered my home wifi as well because I looked in settings and it showed my home one as "out of range"
Not sure if it's a bug or by design as I haven't tried flashing the stock image yet.
For a complete factory reset that will erase everything. Everything! You can do a factory reset from the boot loader. (Restart or power on phone and hold down the volume down button, scroll to factory reset, push power button) or from TRWP data reset, it makes you confirm and type "yes"
I reset my phone through the boot loader on accident a couple times and wanted to kick my dog.
Sent from my HTC One using XDA Free mobile app
You guys do know that factory resetting only formats the data partition excluding the /data/media directory. This is not a bug. It wouldn't need to do anything to the system partition of you don't root. And it's not able to restore the system partition without a system image and where are you going to store that? In the system partition? All user settings including apps and WiFi settings are stored on the data partition will actually be wiped unless when you log into your Google account you select restore from backup. There's no reason you would want to delete storage too when factory resetting unless you want to sell the phone and you can delete that in so many ways since it's your storage.
Sent from my TouchPad using XDA Premium 4 mobile app
cannonofcourse said:
For a complete factory reset that will erase everything. Everything! You can do a factory reset from the boot loader. (Restart or power on phone and hold down the volume down button, scroll to factory reset, push power button) or from TRWP data reset, it makes you confirm and type "yes"
I reset my phone through the boot loader on accident a couple times and wanted to kick my dog.
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
The Jack of Clubs said:
You guys do know that factory resetting only formats the data partition excluding the /data/media directory. This is not a bug. It wouldn't need to do anything to the system partition of you don't root. And it's not able to restore the system partition without a system image and where are you going to store that? In the system partition? All user settings including apps and WiFi settings are stored on the data partition will actually be wiped unless when you log into your Google account you select restore from backup. There's no reason you would want to delete storage too when factory resetting unless you want to sell the phone and you can delete that in so many ways since it's your storage.
Sent from my TouchPad using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you both Tried that and worked. Wanted to restore the hosts file to stock but couldn't find the original again. (didn't think to extract factory rom files on cyangen site)
The solution is in their FAQ.
so wait... if i factory reset from twrp... will my internal sd.. i.e. music.. and other files also get deleted?
abhimanyu bajaj said:
so wait... if i factory reset from twrp... will my internal sd.. i.e. music.. and other files also get deleted?
Click to expand...
Click to collapse
No.
Transmitted via Bacon
timmaaa said:
No.
Transmitted via Bacon
Click to expand...
Click to collapse
and if i flash a new rom... will it be deleted?
abhimanyu bajaj said:
and if i flash a new rom... will it be deleted?
Click to expand...
Click to collapse
Just flashing the ROM by itself will not wipe data or internal storage, but you may encounter bugs (it's called dirty flashing). The best way to get a bug-less ROM is to clean flash which means wiping every partition. The only one that should be OK is internal so you don't have to wipe that one when clean flashing.
abhimanyu bajaj said:
and if i flash a new rom... will it be deleted?
Click to expand...
Click to collapse
No, flashing a ROM doesn't wipe user data. When flashing a new ROM it's best to wipe system, data, cache, and dalvik cache, but it isn't necessary to wipe (internal storage) user data.
Newbie XDA member
I change my phone original bootanimation and then i get No Command when i factor reset .. Nothing Happend how do just restore my (/system) /system/media bootanimation.zip ... other way to fix this thing i have pc >?

Generl Question about backup and wipe

Hey everybody,
i have bean looking for information about back up and wipe for oneplus one for hours now but i failed to get the answers that i need.
so my questions are:
What is th best way to back up everyrhing on my phone when i am flashing a new room, and by everything i mean apps and their data, pics , music, sms , call logs......etc
My second question, what are the different types of wipe do and what do i need to wipe when flashing a new rom and will it erase everything on my phone ncluding pics and music? and what is exactly considered as internal storage and what does it erase.
Thanks in advance.
monmon238 said:
Hey everybody,
i have bean looking for information about back up and wipe for oneplus one for hours now but i failed to get the answers that i need.
so my questions are:
What is th best way to back up everyrhing on my phone when i am flashing a new room, and by everything i mean apps and their data, pics , music, sms , call logs......etc
My second question, what are the different types of wipe do and what do i need to wipe when flashing a new rom and will it erase everything on my phone ncluding pics and music? and what is exactly considered as internal storage and what does it erase.
Thanks in advance.
Click to expand...
Click to collapse
The best way to backup your apps is by using Titanium Backup. It'll backup all of your apps and their data, you need the pro version to backup call logs and messages but it's well worth it because the pro version also allows batch restore (without batch restore you need to individually press ok for each app that you're restoring). Titanium is by far the most important root app that's available. You don't need to backup your personal data (music, photos) on your internal storage because you don't wipe the internal storage when flashing a ROM.
When flashing a new ROM you need to perform what's called a full wipe, this is wiping system, data, cache, and dalvik cache. Using TWRP recovery (the best recovery) you enter the wipe menu from the main menu, then select advanced wipe, and then you can select the previously mentioned partitions to wipe. This does not wipe your internal storage (the user-accessible virtual sd card where all of your personal data resides), wiping the internal storage is never necessary when flashing a ROM.
If you're just updating the same ROM (flashing a newer version/build) you don't need to worry about wiping, you can just flash the zip and reboot. Only ever do this when updating the ROM you're currently using though, never when flashing a different ROM.
Transmitted via Bacon

Does factory reset in twrp delete the backups?

So I'm on twrp recovery (rooted Oneplus 3T) and i do a lot of moding which often results in bootloops, so I resort to my backups made in twrp. I was wondering if I'm doing a clean flash of a new rom and it fails, do i still have the backups?
Factory reset wipes only Data , Cache , and Dalvik.
If you select Advanced Wipe and then wipe the Internal Storage or select the option Format Data from the Wipe menu then you will lose your backups (and all your personal data too ) as they are located in Internal Storage/TWRP/Backups.
kenny3fcb said:
Factory reset wipes only Data , Cache , and Dalvik.
If you select Advanced Wipe and then wipe the Internal Storage or select the option Format Data from the Wipe menu then you will lose your backups (and all your personal data too ) as they are located in Internal Storage/TWRP/Backups.
Click to expand...
Click to collapse
What if you selected Factory Reset from Android Settings? Does that delete the TWRP directory (folder) and its contents as well (which contains the Nandroid backups)?
Cifer17 said:
So I'm on twrp recovery (rooted Oneplus 3T) and i do a lot of moding which often results in bootloops, so I resort to my backups made in twrp. I was wondering if I'm doing a clean flash of a new rom and it fails, do i still have the backups?
Click to expand...
Click to collapse
Save your data in laptop and boot your phone
zetret said:
What if you selected Factory Reset from Android Settings? Does that delete the TWRP directory (folder) and its contents as well (which contains the Nandroid backups)?
Click to expand...
Click to collapse
Yes, if your TWRP backups are stored in internal sdcard, factory reset from settings will wipe the internal sdcard and remove your TWRP folder and the backups contained in that folder.
BUT...
If your backups are stored on external sdcard, they will not be wiped by factory reset from settings, they also would not be wiped by factory reset from TWRP.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Yes, if your TWRP backups are stored in internal sdcard, factory reset from settings will wipe the internal sdcard and remove your TWRP folder and the backups contained in that folder.
BUT...
If your backups are stored on external sdcard, they will not be wiped by factory reset from settings, they also would not be wiped by factory reset from TWRP.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
DryreL said:
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
Click to expand...
Click to collapse
I know that, you probably meant to quote the person I responded to.
DryreL said:
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
Click to expand...
Click to collapse
Or, you could just factory reset in TWRP, factory reset from within TWRP does not wipe data/media, otherwise known as user storage partition where the TWRP folder is stored, therefore, any TWRP backups stored in the TWRP folder in your internal sdcard will not be wiped by the factory reset process from within TWRP.
However, factory reset in TWRP does wipe data/data partition, where user settings and user installed apps are stored. If your ROMs are also stored in the data/media(user storage partition), they will not be wiped by the factory reset process from within TWRP either.
Edit

[Resolved] [HELP] [TWRP] Unable to find "Format data" button

Hi guys,
First : thanks a lot for all your help on this forum.
I'm trying to install a custom ROM on my new LG G6 H870 phone using TWRP 3.1 and i'm facing an issue : I can't find the "Format Data" button in the Wipe menu. I need that button to remove the "Encryption Unsuccessful" screen after flashing.
What did I missed ? Can't see any thread talking about this....
Is the option "Repair or Change File System" / "Change File System" / "Ext4" doing exactly the same ? It does not remove the "Encryption Unsuccessful" screen...
Should I try to reinstall TWRP ?
Thanks a lot for your help.
Ok, the twrp image I used seems to be broken... I downloaded it again from the official webiste, now everything works.
I re-flashed twrp using fastboost, everything worked well. I have now the Format data button...
Thanks
Format data button
Hello,
Could you please help me to understand the real function of Format data button in Wipe section ?
Cause I saw in a thread that it is needed to root android phone but does-it also delete all data in the phone (pictures videos etc...) ? And if so, is it possible to recover these files after formatting ?
Thank you !
infostar said:
Hello,
Could you please help me to understand the real function of Format data button in Wipe section ?
Cause I saw in a thread that it is needed to root android phone but does-it also delete all data in the phone (pictures videos etc...) ? And if so, is it possible to recover these files after formatting ?
Thank you !
Click to expand...
Click to collapse
Yes, everything that you have stored on the device will be removed during the format.
Can it be recovered after? Maybe, maybe not, typically, if just deleted, it can be mostly recovered fairly easily, but when formatting instead of deleting, it is usually difficult to recover anything, if anything can even be recovered at all.
When stored information is simply deleted, it can be recovered because it isn't actually gone, it is still there, it is just "tagged" to be ignored by the system as if it isn't there, then, the next time the device needs to write new data, it overwrites the "tagged" data. When you "recover" deleted data, you are basically just removing the "tag" so that the "deleted" data is no longer marked to be ignored/overwritten.
But, when you format, it does not delete the data(it is not "tagged"), it is removed and then overwritten to make the space "blank".
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Yes, everything that you have stored on the device will be removed during the format.
Can it be recovered after? Maybe, maybe not, typically, if just deleted, it can be mostly recovered fairly easily, but when formatting instead of deleting, it is usually difficult to recover anything, if anything can even be recovered at all.
When stored information is simply deleted, it can be recovered because it isn't actually gone, it is still there, it is just "tagged" to be ignored by the system as if it isn't there, then, the next time the device needs to write new data, it overwrites the "tagged" data. When you "recover" deleted data, you are basically just removing the "tag" so that the "deleted" data is no longer marked to be ignored/overwritten.
But, when you format, it does not delete the data(it is not "tagged"), it is removed and then overwritten to make the space "blank".
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Thanks a lot for the details, I will try my best to restore my phone after this because it bootlooped yesterday ...... So, I'm thinking of getting an image of the system with ADB sideload on recovery mode before flashing the original firmware....
Is it a bad idea ?
infostar said:
Thanks a lot for the details, I will try my best to restore my phone after this because it bootlooped yesterday ...... So, I'm thinking of getting an image of the system with ADB sideload on recovery mode before flashing the original firmware....
Is it a bad idea ?
Click to expand...
Click to collapse
You don't necessarily need to pull a system.img, backing up your data via adb then restoring the data after getting the bootloop fixed, should work.
If you can get adb to connect with the device properly, then, yes, I would pull an adb backup of your apps, data and personal settings. Then wipe or reflash the device then restore the apps, data and settings from the adb backup. Are you familiar with adb backup?
Sent from my SM-S767VL using Tapatalk
Droidriven said:
You don't necessarily need to pull a system.img, backing up your data via adb then restoring the data after getting the bootloop fixed, should work.
If you can get adb to connect with the device properly, then, yes, I would pull an adb backup of your apps, data and personal settings. Then wipe or reflash the device then restore the apps, data and settings from the adb backup. Are you familiar with adb backup?
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
No, I'm not familiar with it but I read a lot of XDA threads and I will give it a shot. ISo, I'll try an ADB backup. If it's not working, it won't big a big deal, I will reflash it to have my phone back.
Thanks

Stuck in recovery after rom update

Hello,
I just updated the rom Evolution X 11 on my Xiaomi Mi 9T Pro after using an older version for about half a year.
Now my phone does not boot anymore, its stuck in recovery (TWRP). Also all data seems to be encrypted and TWRP is not asking for a password.
Is there a way to get my phone to boot again or at least backup my data before I do a full wipe?
You should always do a full twrp backup before messing with roms.
The best solution would be to backup the "Data" and "Internal Storage" partitions. Data contains all apps, their appdata and settings, while internal storage contains all of your own files (photos, videos etc.). After you back these up, wipe your phone (system, data, cache, dalvik) and flash the version of evolution x you were using previously. Now restore data and internal storage and your device should be back to normal.
If you get a bootloop while booting after restoring data and internal storage, then wipe the device again and this time flash evolution x, but only restore internal storage. This way, it should boot and you will be able to recover your files, though your apps will be gone.
If you only restore internal storage then it will no doubt boot up and you will have access to your files, but since you'll have already backed up the important stuff (data + internal storage), you might as well try restoring data as well, as there is no harm, and if the phone boots correctly after restoring both partitions, your phone will be as it was before your updated your rom.
This happened a while back to me with my J5, the issue was that I made a full TWRP backup, then began to test other roms. After I was done, I tried to restore my backup, but it would constantly fail. I sat down for a while, confused and sad about how my TWRP backup had failed me. I tried every solution I could think of, eventually this solution I've mentioned in the above paragraph came to my mind. Thank god for putting it into my mind, otherwise I would've lost a lot of stuff (mainly whatsapp chats which werent backed up, and a lot of apps which I took the time to pain-stakingly configure in the best way for my device).
Anyways, enough of my story, hope this helps you out! If it does, message back here and let us know, and also mark my post as the solution if it was able to help you, so that anyone else who stumbles upon this thread can be saved too!
Cheers!
PhotonIce said:
You should always do a full twrp backup before messing with roms.
The best solution would be to backup the "Data" and "Internal Storage" partitions. Data contains all apps, their appdata and settings, while internal storage contains all of your own files (photos, videos etc.). After you back these up, wipe your phone (system, data, cache, dalvik) and flash the version of evolution x you were using previously. Now restore data and internal storage and your device should be back to normal.
If you get a bootloop while booting after restoring data and internal storage, then wipe the device again and this time flash evolution x, but only restore internal storage. This way, it should boot and you will be able to recover your files, though your apps will be gone.
If you only restore internal storage then it will no doubt boot up and you will have access to your files, but since you'll have already backed up the important stuff (data + internal storage), you might as well try restoring data as well, as there is no harm, and if the phone boots correctly after restoring both partitions, your phone will be as it was before your updated your rom.
This happened a while back to me with my J5, the issue was that I made a full TWRP backup, then began to test other roms. After I was done, I tried to restore my backup, but it would constantly fail. I sat down for a while, confused and sad about how my TWRP backup had failed me. I tried every solution I could think of, eventually this solution I've mentioned in the above paragraph came to my mind. Thank god for putting it into my mind, otherwise I would've lost a lot of stuff (mainly whatsapp chats which werent backed up, and a lot of apps which I took the time to pain-stakingly configure in the best way for my device).
Anyways, enough of my story, hope this helps you out! If it does, message back here and let us know, and also mark my post as the solution if it was able to help you, so that anyone else who stumbles upon this thread can be saved too!
Cheers!
Click to expand...
Click to collapse
Thank you for your help but backing up the data and internal storage doesnt seem possible right now because all the data is encrypted in TWRP...
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
PhotonIce said:
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
Click to expand...
Click to collapse
That sounds like a good idea. I found the old version on my PC.
Now I just need a way to install it... because twrp cant read the file. I tried with adb sideload but that results in an error for some reason. Flashing Magisk for example with adb sideload is possible.
Edit: Got it to work by using a tool called "Large Address Aware". Now waiting for the results...
PhotonIce said:
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
Click to expand...
Click to collapse
This did not help unfortunately... Im still in the same recovery-bootloop and my data is still encrypted.
It's probably still bootlooping as the data partition got modified when you flashed the newer version of evolutionx, and now it will not work with the old one. You can try wiping system+data+cach+dalvik and then flashing any rom of your choice. This will give you access to your internal storage (photos, media etc), but it will remove your apps and their settings. Whatsapp images are stored in the internal storage so you won't need to worry about those.
Again, this is risky, as it may not work (I don't know much about encryption), or you might still not be able to access your files after flashing the new rom. Proceed at your own risk.
PhotonIce said:
It's probably still bootlooping as the data partition got modified when you flashed the newer version of evolutionx, and now it will not work with the old one. You can try wiping system+data+cach+dalvik and then flashing any rom of your choice. This will give you access to your internal storage (photos, media etc), but it will remove your apps and their settings. Whatsapp images are stored in the internal storage so you won't need to worry about those.
Again, this is risky, as it may not work (I don't know much about encryption), or you might still not be able to access your files after flashing the new rom. Proceed at your own risk.
Click to expand...
Click to collapse
Thank you for still helping me out but I already did a full reset yesterday. I did not lose much except for the time setting it all up again.
I still dont really get the point of encrypting all your data if you cant decrypt it even if you know the password...

Categories

Resources