factory rest and recover data - Sony Xperia XZ1 Compact Questions & Answers

My phone is stuck in a bootloop but I can still get into TWRP. I have backed up data.img. Should I do a factor reset, root and recover the data? Will that work? Or is it better to do a dirty flash? I had been running stock rom.

cheeklitched said:
My phone is stuck in a bootloop but I can still get into TWRP. I have backed up data.img. Should I do a factor reset, root and recover the data? Will that work? Or is it better to do a dirty flash? I had been running stock rom.
Click to expand...
Click to collapse
No need to start a new thread.
https://forum.xda-developers.com/xp...ir-damaged-t4184613/post83835823#post83835823

Related

[Q] Clear all private data without unrooting?

I am going to be selling my Hero to someone who would like it rooted (as it is now).
His plan is to use it in WiFi mode only and won't be activating it with Sprint.
Is there a way to clear all my private data (logins, bookmarks, contacts, calendars, etc.) without unrooting?
Will he then be able to enter his google account info and gain access to the Market though WiFi?
Thanks!
Eph
The "Factory Reset" feature does the trick. But if you are really paranoid, you could wipe data, cache, dalvik and resintall the ROM from recovery.
Won't factory reset unroot me?
Will he still be able to access the net and the market via WiFi?
What ROM are you running?
andythegreenguy said:
What ROM are you running?
Click to expand...
Click to collapse
Nfinite's Stock.
cephraim said:
Nfinite's Stock.
Click to expand...
Click to collapse
Factory reset should bring the phone back to the state it was in when you first installed the rom. If you really want to be safe, boot into recovery, wipe everything and reflash the rom. You will still be rooted. Remember to either remove and keep your sd card or to format it to erase the data on it, THEN create a nandroid for whoever is buying the phone. Yes, they will be able to run the google setup via wifi if they choose to do so.
Weird.
After I do a factory reset (either from settings or from recovery), it stays in a boot loop. I have to pull the battery and restore the Nand.
What am I doing wrong?
Thanks,
Eph
Tried many different factory resets last night.
Tried from recovery mode and from settings>privacy.
In each case, I got stuck in boot loops.
Also tried to wipe data, cache, dalvik and resintall the ROM from recovery. Same thing - boot loop.
All I could do was pull the battery and do a nand restore.
Any ideas?
go here and download the ruu. http://forum.xda-developers.com/showthread.php?t=800586 . follow the instructions. this WILL take away root and will flash you black to stock. then, go here:http://forum.xda-developers.com/archive/index.php/t-743289.html and follow those instructions to re-root your phone. it is very easy. then flash your rom of choice again. that will erase your data AND get rid of your bootloop. idk why the othere way isnt working for u though
OR, you should try to take out your sdcard or format it before you reflash the nfinite's stock. i had this problem once because some of my data was on the card and so when it tried to boot it got stuck.
Thanks guys. I tried the factory reset a couple more times, and for some reason it booted.
Thanks again!

[Q] Factory reset but keep rom, HTC One

Trying to sell my rooted and flashed HTC One. I want to do a factory reset to erase my pictures, data, accounts, etc but I want to keep it rooted and flashed to the rom installed which is Android Revolution 31.0
What is the safest way to do this?
jpss90 said:
Trying to sell my rooted and flashed HTC One. I want to do a factory reset to erase my pictures, data, accounts, etc but I want to keep it rooted and flashed to the rom installed which is Android Revolution 31.0
What is the safest way to do this?
Click to expand...
Click to collapse
Do a full wipe in recovery and sideload the ARHD
jpss90 said:
Trying to sell my rooted and flashed HTC One. I want to do a factory reset to erase my pictures, data, accounts, etc but I want to keep it rooted and flashed to the rom installed which is Android Revolution 31.0
What is the safest way to do this?
Click to expand...
Click to collapse
Really easy. Just boot into your custom recovery whether it ne CWM or TWRP and do a factory reset and also wipe the system
ayo234 said:
Really easy. Just boot into your custom recovery whether it ne CWM or TWRP and do a factory reset and also wipe the system
Click to expand...
Click to collapse
Thank you Ayo and Guich! First post here in XDA and I can already tell it has a great community! Thank you again. I will try it tomorrow.
ayo234 said:
Really easy. Just boot into your custom recovery whether it ne CWM or TWRP and do a factory reset and also wipe the system
Click to expand...
Click to collapse
Thanks.
Will system wipe require me to reload the ROM again?

[Q] Flash stock ROM by Odin dont erase all user data?

I was surprised that after flashing stock ROM by ODIN, phone was not cleaned from the user data.
I mean: account settings, applications installed by user, etc.
I know that flashing dont erase data from internal/external SD card, but why all data was still exist?
Only Wipe Data / Factory Reset will erase all user data?
Btw, Merry Xmas
darcik said:
I was surprised that after flashing stock ROM by ODIN, phone was not cleaned from the user data.
I mean: account settings, applications installed by user, etc.
I know that flashing dont erase data from internal/external SD card, but why all data was still exist?
Only Wipe Data / Factory Reset will erase all user data?
Btw, Merry Xmas
Click to expand...
Click to collapse
Nope, factory reset will not erase all user data. Go into setting/storage and delete from there (not sure cause I didn't have the device now). If you want to erase using odin, tick the repartition box while flashing the firmware. This is the easiest way I think.
Odin flash doesn't wipe user apps and their data, but it may cause bugs if you come from another ROM...
E.g : if u soft bricked on stock JB, just odin flash is necessary.
for other ROMs, it may or may not lag.
I will describe my way.
I tried to install CM 10.2
I did factory reset, next steps follow procedure.
When I did first start, unfortunately keyboard stop working, so my cyjanogen install failed and I decided back to old system using backup.
After restore and start, phone required settings like on first start after factory reset.
Lol, big surprise.
Ok, I entered necessary information but after reset -
again same like after factory reset
I tried from another backup with same result.
Hmm, big mess.
So I flash stock ROM by Odin.
And new surprise - phone with fresh system and all my own settings and applications from last restore.
Two disappointments:
1. Restore from backup does not cause a return to the initial state.
2. Flash ROM by Odin don't make factory state of phone.
I have question, if format partitions: system and data and next restore backup will do real state phone on this backup?
GT-I9070 ==> Tapatalk space
darcik said:
I will describe my way.
I tried to install CM 10.2
I did factory reset, next steps follow procedure.
When I did first start, unfortunately keyboard stop working, so my cyjanogen install failed and I decided back to old system using backup.
After restore and start, phone required settings like on first start after factory reset.
Lol, big surprise.
Ok, I entered necessary information but after reset -
again same like after factory reset
I tried from another backup with same result.
Hmm, big mess.
So I flash stock ROM by Odin.
And new surprise - phone with fresh system and all my own settings and applications from last restore.
Two disappointments:
1. Restore from backup does not cause a return to the initial state.
2. Flash ROM by Odin don't make factory state of phone.
I have question, if format partitions: system and data and next restore backup will do real state phone on this backup?
GT-I9070 ==> Tapatalk space
Click to expand...
Click to collapse
1. Almost every restore from backup for me it returned phone on state when backup was made. Only if my backup was bad (did not have enough place on sd for backup or something corrupted it).
2. Flashing stock ROM by Odin do not touch data partition (or folder whatever it is). So if you want to erase that, you need to make factory reset. It is like that on every Samsung Android device - I am not sure for other, never used.
When you come back from any CM10.2, Omni 4.3 and CM11 based ROM - first flash stock with Odin, do factory reset - and after that restore backup (ofcourse first root, install CoCore kernel for CWM before restore - you can't use restore in stock recovery).
Tnx for answers.
This is weird that format system partition not enough to get rid of the CM
But I checked this again and exactly after refresh ROM by Odin - restore my settings and data works fine.
Hmm imo this is mess in whole Android system
darcik said:
Tnx for answers.
This is weird that format system partition not enough to get rid of the CM
But I checked this again and exactly after refresh ROM by Odin - restore my settings and data works fine.
Hmm imo this is mess in whole Android system
Click to expand...
Click to collapse
Explanation for that, TeamJanica used preload partition for swap, and it is patitioned in other format than the one stock ROM use. That partition is not used on CM for files, but it has it's use on stock based ROM.
shut_down said:
Explanation for that, TeamJanica used preload partition for swap, and it is patitioned in other format than the one stock ROM use. That partition is not used on CM for files, but it has it's use on stock based ROM.
Click to expand...
Click to collapse
Tnx for explanation :good:
Is there somewhere a description of the organization of the file system, partitions in our device?
darcik said:
Tnx for explanation :good:
Is there somewhere a description of the organization of the file system, partitions in our device?
Click to expand...
Click to collapse
I think there is in some of the first posts of developer thread. I will try to find it and post if I get it.
Maybe this http://forum.xda-developers.com/showpost.php?p=30694671&postcount=288
shut_down said:
I think there is in some of the first posts of developer thread. I will try to find it and post if I get it.
Maybe this http://forum.xda-developers.com/showpost.php?p=30694671&postcount=288
Click to expand...
Click to collapse
Tnx, as usual you are very helpfull
How I missed this topic?
darcik said:
Tnx, as usual you are very helpfull
How I missed this topic?
Click to expand...
Click to collapse
It is made 25th August 2012. Maybe because of that.
Heeeelp pleeeease
Ive got a problem with frp protection my daughter forgot everything so i restored to factory and used odin 3 v13.3 and correct firmware to flash it but when odin says pass the phone erases itself of the flashed firmware it’s a galaxy s7 edge any help would be grateful im pulling my hair out now .
j7 nxt stock frimware flash failed
i accidentally wiped vendor,syastem and all and now i can only install custom gsi roms.
While flashing stock frimware it stuck at set partition adn cannot install stock frimware please helpe to get this fixed?
gauravsapkotanp said:
j7 nxt stock frimware flash failed
i accidentally wiped vendor,syastem and all and now i can only install custom gsi roms.
While flashing stock frimware it stuck at set partition adn cannot install stock frimware please helpe to get this fixed?
Click to expand...
Click to collapse
supposedly you have downloaded the stock FW, flash via Odin with re-partition ticked. if it fails, extract the PIT file from CSC_OMC_OXM_XXX save it in a location and load it at the pit session via Odin the re-flash again with re-partition ticked.

[Q] Twrp flashing order check?

I'm trying to flash chroma rom onto phone with leankernel/hells core and verizon 5.1 radio. May someone confirm this is the correct order? I'm currently on latest chroma with franco kernel. (i don't like dirty flashing )
1. Wipe everything but internal sd
2. Flash latest chroma
3. Flash latest leankernel/hellscore
4. Flash Gapps
5. Flash verizon radio 5.1
Should i also include Supersu in the steps?
Also, if my internal memory is getting a bit cluttered from apps and other random stuff, is there a way I can reset my phone to a rooted, bootloader unlocked, unencrypted state without doing a full reset to stock then doing everything over?
Raymondlikesroot said:
I'm trying to flash chroma rom onto phone with leankernel and verizon 5.1 radio. May someone confirm this is the correct order? I'm currently on latest chroma with franco kernel. (i don't like dirty flashing )
1. Wipe everything but internal sd
2. Flash latest chroma
3. Flash latest leankernel
4. Flash Gapps
5. Flash verizon radio 5.1
Should i also include Supersu in the steps?
Also, if my internal memory is getting a bit cluttered from apps and other random stuff, is there a way I can reset my phone to a rooted, bootloader unlocked, unencrypted state without doing a full reset to stock then doing everything over?
Click to expand...
Click to collapse
first off, why would you have to go back to stock???
secondly, the radio can be flashed at any time, no order involved in that.
thirdly, when you wipe data(everything but the SD storage), thats a factory reset. so, wipe data/system, flash chroma, flash the gapps, flash SuperSU(for root), then flash your kernel and reboot.
As long as you flash ROM first, doesn't matter about the order
simms22 said:
first off, why would you have to go back to stock???
secondly, the radio can be flashed at any time, no order involved in that.
thirdly, when you wipe data(everything but the SD storage), thats a factory reset. so, wipe data/system, flash chroma, flash the gapps, flash SuperSU(for root), then flash your kernel and reboot.
Click to expand...
Click to collapse
Sorry, a clean sd card is simply one of those weird things I like(It might be ocd or something xD). When i had my s4, i would do a full reset to stock every time I flashed a rom because I didn't want any residual files left over. That being said, is there any simpler process to reset or clean the internal memory between flashing roms besides stock reset? What I'm talking about is some way to set or "reset" the nexus 6 to a unlocked, rooted, unencrypted, and twrped state but otherwise stock.
Raymondlikesroot said:
Sorry, a clean sd card is simply one of those weird things I like(It might be ocd or something xD). When i had my s4, i would do a full reset to stock every time I flashed a rom because I didn't want any residual files left over. That being said, is there any simpler process to reset or clean the internal memory between flashing roms besides stock reset? What I'm talking about is some way to set or "reset" the nexus 6 to a unlocked, rooted, unencrypted, and twrped state but otherwise stock.
Click to expand...
Click to collapse
Make a backup in TWRP of your device when it's in that state. Then flash that backup whenever you want to return to that state.
Raymondlikesroot said:
Sorry, a clean sd card is simply one of those weird things I like(It might be ocd or something xD). When i had my s4, i would do a full reset to stock every time I flashed a rom because I didn't want any residual files left over. That being said, is there any simpler process to reset or clean the internal memory between flashing roms besides stock reset? What I'm talking about is some way to set or "reset" the nexus 6 to a unlocked, rooted, unencrypted, and twrped state but otherwise stock.
Click to expand...
Click to collapse
just do a full wipe in twrp, itll clean out your storage. but move all the files that you want to save to your computer or they will be gone.
Evolution_Tech said:
Make a backup in TWRP of your device when it's in that state. Then flash that backup whenever you want to return to that state.
Click to expand...
Click to collapse
Wouldnt I have to full wipe beforehand?
simms22 said:
just do a full wipe in twrp, itll clean out your storage. but move all the files that you want to save to your computer or they will be gone.
Click to expand...
Click to collapse
After I full wipe, I can use mtp to transfer the rom and gapps in twrp right? Or do I have to use adb ?
Raymondlikesroot said:
After I full wipe, I can use mtp to transfer the rom and gapps in twrp right? Or do I have to use adb ?
Click to expand...
Click to collapse
Either
danarama said:
Either
Click to expand...
Click to collapse
Thanks! I would give you a thanks but I'm limited to 8 per day lol
Raymondlikesroot said:
Thanks! I would give you a thanks but I'm limited to 8 per day lol
Click to expand...
Click to collapse
No worries. I'm not bothered about them. Really they're to be used in development threads to prevent flooding them with useless "thanks".posts

Having issues trying to flash anything. Would appreciate some help from a pro.

So I am trying to flash the nougat CM, but it keeps on failing. My moto x is currently on the 6.0 brazil firmware that was leaked almost a year ago. I flashed that firmware and then flashed US radios. That is where my device currently stands. After failing to flash CM 14 I tried to flash CM 13 so that maybe I could take that path to CM 14. However, that has failed as well. So then I tried to flash official 6.0 from motorola to at least get back onto 1097 firmware. No go. I am literally unable to flash anything. I have flashed the most current version of TWRP via fastboot, but thats about as far as I'm able to get. The bootloader is also unlocked. I would really appreciate somebodies time to help me out with this if they could. Thank you.
I assume you are at least doing the default wipe with twrp (data, dalvick and cache)? You may need to wipe even more though. What exactly is happening when you try to flash the zip with twrp?
And after full wipe (cache, dalvik, data AND system), make a factory reset of your phone. (Wipe->Swipe to Factory Reset)
After all try flashing again and you will have no problems.
zstricky said:
I assume you are at least doing the default wipe with twrp (data, dalvick and cache)? You may need to wipe even more though. What exactly is happening when you try to flash the zip with twrp?
Click to expand...
Click to collapse
Yes I have wiped. It says "error 7" when trying to flash CM 14 when I tried flashing the stock moto 1097 firmware it said something about signed Android version from Google or something.
Jim_C30 said:
And after full wipe as zstricky said, make a factory reset of your phone. (Wipe->Swipe to Factory Reset)
After all try flashing again and you will have no problems.
Click to expand...
Click to collapse
I have factory reset a couple times. Still no go.
I think I'll find the thread that had a guide on how to flash the Brazilian firmware that I'm on and see if there's an accompanying guide on reverting back and go from there. Worse case I brick it. Time for a new phone anyway. Lol.

Categories

Resources