[Q] Selling N4 with PA, what to wipe - Nexus 4 Q&A, Help & Troubleshooting

I have a custom ROM (PA 3.99) on my phone. I am meeting a guy tonight to sell it, and my new phone comes tomorrow. So I need the phone up until I meet the guy, so I will wipe after he agrees to buy. What all do I wipe to keep it working, but safely remove all my settings/pics/etc...? I'm on TWRP recovery.

RichAggie said:
I have a custom ROM (PA 3.99) on my phone. I am meeting a guy tonight to sell it, and my new phone comes tomorrow. So I need the phone up until I meet the guy, so I will wipe after he agrees to buy. What all do I wipe to keep it working, but safely remove all my settings/pics/etc...? I'm on TWRP recovery.
Click to expand...
Click to collapse
Backup (apps&data), all of your pictures and videos, and anything you wish to keep to your computer. Download the factory image of KitKat or whatever you want to put on the phone, do a full wipe and flash.
Sent with my Nexus® 10 minus 3

Berrydroidcafe said:
Backup (apps&data), all of your pictures and videos, and anything you wish to keep to your computer. Download the factory image of KitKat or whatever you want to put on the phone, do a full wipe and flash.
Sent with my Nexus® 10 minus 3
Click to expand...
Click to collapse
Advanced Wipe partitions list: Dalvik, System, Data, Internal Storage, Cache, usb-otg. Do I select them all to wipe?
Also, the Format Data menu says it wipes backups, pics/vids, media, and encryption. Do I do that too or is the above sufficient?

Wipe everything but system and otg
If you wipe system then there is no rom on the phone. Don't have a otg device plugged in so that's useless

albundy2010 said:
Wipe everything but system and otg
If you wipe system then there is no rom on the phone. Don't have a otg device plugged in so that's useless
Click to expand...
Click to collapse
OK thanks, that was what I was wondering - how I wipe everything but keep the rom zip to flash to. So doing it your way, after the wipe, I reboot to a new phone (running PA 3.99) with no flashing needed?

Doing it that way will be leave a clean install of that rom. It won't change the kernel though if you flashed a different one over the one that came with the ROM.
If you wanted that back you would just dirty flash that same rom overtop of it.
In a nutshell there are a bunch of partitions on the devices. I won't go over ALL but the main ones we use.
/ system is the ROM
/boot is mainly the kernel.
Wiping all the rest leaves it clean. All your data and media goes on those partitions / mount points /data / internal storage or emulated / whatever the heck it is.
Basically yeah wipe everything but system ( and boot if your recovery has that option)

Related

TWRP Question

There is option in the wipe section that says clear data, if I did clear the data, will I lose just only lost my internal storage data (games,apps,moives, etc) or I'll lost everything( The entire ROM)?
If you format data, you'll loose everything. It will wipe data/media which stores everything you've put on the device. This includes sd card because it is actually stored in data/media. Normally, Factory Reset is used when you want to change roms which have a different base. I recently formated data on my GNex because it had become corrupted & I want to start with an "out of the box" experience. Wipe Data, & it will wipe everything! If you do need to use that function, put a rom, gapps, & all other data you want to keep on a storage device & mount it within twrp to flash those items.
Suggest you go to Team Win's website & study the functions.
Sent from my Nexus 10 using Tapatalk 2
djd338 said:
If you format data, you'll loose everything. It will wipe data/media which stores everything you've put on the device. This includes sd card because it is actually stored in data/media. Normally, Factory Reset is used when you want to change roms which have a different base. I recently formated data on my GNex because it had become corrupted & I want to start with an "out of the box" experience. Wipe Data, & it will wipe everything! If you do need to use that function, put a rom, gapps, & all other data you want to keep on a storage device & mount it within twrp to flash those items.
Suggest you go to Team Win's website & study the functions.
Sent from my Nexus 10 using Tapatalk 2
Click to expand...
Click to collapse
Can I wipe system on my nexus 10? Cuase I heard that wiping system can damage the device?
AnchorChin said:
Can I wipe system on my nexus 10? Cuase I heard that wiping system can damage the device?
Click to expand...
Click to collapse
When attempting to wipe the system, always carry safety glasses. My ex-girlfriend tried this once and the device blew up in her face... I eventually had to get rid of the poor thing....
djd338 said:
If you format data, you'll loose everything...
Click to expand...
Click to collapse
What's the difference between format data, and wiping internal storage?
When they say wipe data, I have always done factory reset. It keeps your sdcard intact. To do a full wipe, I have run through the top row of wipes in the wipe option: cache, dalvik, factory reset, system. If I'm wrong here, please let me know.
Format data will completely wipe your data off the N10. For example, if you download a rom to flash then go and format data, that rom will not be there to flash
Sent from my Nexus 10
AW: TWRP Question
Hey, is there any way I can update OTA with the TWRP? I can not get it to work. Always boots into the recovery and then does not commence with the updating process.
Thank you
Cheers :beer:
Gesendet von meinem Nexus 10 mit Tapatalk 2
IRKONIK said:
Hey, is there any way I can update OTA with the TWRP? I can not get it to work. Always boots into the recovery and then does not commence with the updating process.
Thank you
Cheers :beer:
Gesendet von meinem Nexus 10 mit Tapatalk 2
Click to expand...
Click to collapse
Yes, using sideload within TWRP combined with adb sideload as originally listed by tcrews here
http://forum.xda-developers.com/showthread.php?t=2144385&page=3
This is how I applied the OTA and it worked flawlessly. My system was Stock 4.2.1, Rooted, Unlocked, TWRP.
I sideloaded the OTA like this:
1. make sure you have the latest SDK drivers for android installed on your computer.
2. download the OTA to your computer (I renamed it to JDQ39.zip to make typing easier)
3. install and run OTA RootKeeper on your tablet to protect your rooting.
4. connect to your computer, boot to TWRP recovery, select Advanced, Sideload, swipe to begin
5. on the computer enter "adb devices" to make sure you can see the nexus.
6. on the computer enter "adb sideload JDQ39.zip"
7. after all is done and the nexus reboots, restore Root with RootKeeper, and TWRP with GooManager.
8. verify all is well, then make a new Nandroid backup of your 4.2.2 system.
Good luck
AnchorChin said:
Can I wipe system on my nexus 10? Cuase I heard that wiping system can damage the device?
Click to expand...
Click to collapse
Most custom ROMs format it before installing (/system holds well, system files) for a clean working folder. No damage.
espionage724 said:
What's the difference between format data, and wiping internal storage?
Click to expand...
Click to collapse
Format data formats what would be user installed apps, saved settings; Wipe internal storage formats /data/media, which is another path for /sdcard, /storage/sdcard0 and so on.
Sent from my Nexus 10 using xda app-developers app
Kata i1 CWM Recovery & Custom ROM
Hi... is there anyone here knows to port CWM on Kata i1?

[Q] will my data be deleted if update my rom

hey im using paranoid android 3.56 and i want to update it to 3.60 will i loose my data if i do so and also im using nexus 4
yes u will loose
but u can take backup also
rasroh said:
yes u will loose
but u can take backup also
Click to expand...
Click to collapse
how to i backup my entire phone data to my pc
sum93 said:
hey im using paranoid android 3.56 and i want to update it to 3.60 will i loose my data if i do so and also im using nexus 4
Click to expand...
Click to collapse
No. You will not lose your data if you dirty flash the new rom. That means, if you just clear cache andd dalvik cache before flashing the new rom, your data wont be deleted. As you are upgrading from one version of the same rom to another, this will function as well as a clean flash.
A clean flash implies you will have to clear data too in the recovery along with cache and dalvik cache. As I said before, this isnt needed when upgrading from one version of a rom to another of the same. However, if you are shifting from one rom to a different one, clean flash is recommended.
So in conclusion, these are the steps you will have to follow to upgrade to the new rom -
1. Download the new upgraded version of the rom and gapps(if not included in the rom). Also take backups (titanium or/and nandroid as required)
2. Boot into recovery.
3. Clean cache.
4. Clean dalvik cache.
5. Flash new rom.
6. Flash gapps.(if not included in the rom)
7. Clean cache and dalvik again.
8. Reboot to system.
Thus, no data wipe required. Your data and applications will be safe.
Sent from my GT-N7100 or the Nexus 10, heaven knows.
Those who help noobs go to heaven. True story.
---------- Post added at 05:27 PM ---------- Previous post was at 05:24 PM ----------
rasroh said:
yes u will loose
but u can take backup also
Click to expand...
Click to collapse
Please do research some on the topic before giving any advice
Most roms do not ask for a clean flash when upgrading the rom, so he won't lose his data. Unless oyherwise recommended by the developer, he doesnt have to clear his data when going from one version of a rom to a new one.
Sent from my GT-N7100 or the Nexus 10, heaven knows.
Those who help noobs go to heaven. True story.
use a backup app like titanium, helium etc
sum93 said:
hey im using paranoid android 3.56 and i want to update it to 3.60 will i loose my data if i do so and also im using nexus 4
Click to expand...
Click to collapse
If you're just updating a rom you wont lose any data. All you have to do is flash the new rom on top of the old one and that's it. No need to wipe anything.
If you are upgrading from one version of a rom to a higher version of the same rom, you can usually dirty flash (flash on top without wiping) without losing any data.
Also even if you did "wipe date", it won't touch your /data/media which is basically where your /sdcard stuff lives (it will just wipe your apps, settings, etc data, so a backup via recovery is usually advised anyways).
On a related note: what does it take to wipe all of your data off your phone? Basically, to get the Nexus 4 back to brand-new, out-of-the-box fresh? Is there an easy way to do it or do you have to manually wipe different locations and if the latter, what locations must you wipe?
Johmama said:
On a related note: what does it take to wipe all of your data off your phone? Basically, to get the Nexus 4 back to brand-new, out-of-the-box fresh? Is there an easy way to do it or do you have to manually wipe different locations and if the latter, what locations must you wipe?
Click to expand...
Click to collapse
If you are on a stock rom, a simple "format data" from recovery would do the trick as it would wipe /data and /data/media. As the stock rom on /system never changes unless you rooted and added stuff to it. (fastboot can do this too from the bootloader with fastboot erase userdata).
Alternatively, you can just unpack the factory firmware and flash the *.img to their respective partitions (boot[kernel], system, userdata, etc) from this list https://developers.google.com/android/nexus/images#occamjdq39 (PS: I wouldn't bother touching the bootloader as most people never changed it other than to maybe unlock it).
Nutshell version: All your user-specific stuff lies under /data (settings, downloaded apps, media, etc)

Did I screw myself? I think my phone is dead - Any help would be appreciated

Whole Story:
I'm on a i337m Canadian S4 - Comes with Bootloader unlocked.
Last night I clicked "Format Data" by mistake in the newest TWRP - Lost everything - Could not do anything - flashing Roms did not work, so I downloaded a complete Restore of 4.2.2 from Sammobile and Odin 3.0.7 and was going to flash it back to stock.
About 1/2 way through the flash, something failed regarding a partition - Now my phone will not do anything other than display the below screen. It does not load a recovery, it does not go into download mode. Kies does not detect the phone anymore.
What can I do? Anything?
I'm so depressed over this.
bigystyle84 said:
Whole Story:
I'm on a i337m Canadian S4 - Comes with Bootloader unlocked.
Last night I clicked "Format Data" by mistake in the newest TWRP - Lost everything - Could not do anything - flashing Roms did not work, so I downloaded a complete Restore of 4.2.2 from Sammobile and Odin 3.0.7 and was going to flash it back to stock.
About 1/2 way through the flash, something failed regarding a partition - Now my phone will not do anything other than display the below screen. It does not load a recovery, it does not go into download mode. Kies does not detect the phone anymore.
What can I do? Anything?
I'm so depressed over this.
Click to expand...
Click to collapse
Format data will do nothing other than restore to factory settings, it should boot straight after.
winwiz said:
Format data will do nothing other than restore to factory settings, it should boot straight after.
Click to expand...
Click to collapse
From what I've read, Format Data using the newest version of TWRP deletes everything, causing everything not to work and is some sort of bug.
The ODIN Flash then failed after too.
I have the i337M Canadian version with the S600 Qualcomm
I've flashed via Odin dozens of times before with my previous Note II / S3 - never had one fail.
bigystyle84 said:
From what I've read, Format Data using the newest version of TWRP deletes everything, causing everything not to work and is some sort of bug.
The ODIN Flash then failed after too.
I have the i337M Canadian version with the S600 Qualcomm
I've flashed via Odin dozens of times before with my previous Note II / S3 - never had one fail.
Click to expand...
Click to collapse
Does adb detect the phone?
kingzain900 said:
Does adb detect the phone?
Click to expand...
Click to collapse
I'm not sure - I can see when I get home.
Can a cable cause this? I am not using the Cable that came with the phone - That wasn't included when I bought it. I'm using a Sony Cable from a Xperia T I used to own.
Why did the Odin flash fail to begin with?
Why did Format Data in TWRP cause all this to happen?
bigystyle84 said:
I'm not sure - I can see when I get home.
Can a cable cause this? I am not using the Cable that came with the phone - That wasn't included when I bought it. I'm using a Sony Cable from a Xperia T I used to own.
Why did the Odin flash fail to begin with?
Why did Format Data in TWRP cause all this to happen?
Click to expand...
Click to collapse
You can also ask Does god exist and what is the meaning of life.
Haha. I don't know. Such rethorical questions.
The cable matters because the other cable might not push enough current. Not sure. About the rest I have no idea. TWRP has a bug that's for sure. I don't use it. Check what adb says.
RESOLVED!!!
Tried my Laptop running Windows 7, and switched the cable. Also tried ODIN 1.85 instead of 3.07
Finally! This version of ODIN recongizes my phone.
3rd Attempt at flashing the firmware worked. The first TWO times failed.
Once it flashed, it froze, but factory rest has me back to Stock.
Now - to avoid that format Data button in TWRP, think I'll be giving CWM a try for the first time in years. Need me some Google Edition.
bigystyle84 said:
RESOLVED!!!
Tried my Laptop running Windows 7, and switched the cable. Also tried ODIN 1.85 instead of 3.07
Finally! This version of ODIN recongizes my phone.
3rd Attempt at flashing the firmware worked. The first TWO times failed.
Once it flashed, it froze, but factory rest has me back to Stock.
Now - to avoid that format Data button in TWRP, think I'll be giving CWM a try for the first time in years. Need me some Google Edition.
Click to expand...
Click to collapse
Wiping data, opposed to Formatting data.
TWRP FAQ
What to Wipe in TWRP
If you are switching ROMs (changing from one ROM to a completely different one) then you should perform a factory reset. A factory reset wipes data and cache (which includes dalvik cache). A factory reset will also wipe sd-ext and android_secure if your device has those items. 99% of the time, this is all that you need to wipe and you only need to do it once, not three times as some people would lead you to believe.
If you're installing a nightly update, then oftentimes you don't need to wipe anything at all. However, if you encounter strange behavior, then you may want to consider performing a factory reset. Of course, if the ROM maker recommends that you do a factory reset during an update, then it's a good idea to follow their recommendation.
The vast majority of ROMs wipe system as part of the zip install. This means that in most cases you do not need to wipe system... ever.
At this point, cache (not dalvik cache) is primarily used for recovery. It's used to store the recovery log and for storing OTA (Over The Air) updates. You probably don't need to wipe cache, and cache is already wiped as part of a factory reset.
In most ROMs, dalvik cache is stored in the data partition, so if you do a factory reset, you've also wiped dalvik cache. In a few custom ROMs, especially on older devices with small data partitions, the ROM maker may have moved dalvik to the cache partition to provide you with more room for apps. Since we wipe cache with a factory reset, again, you probably don't need to wipe dalvik. There are a few situations where you may need to wipe dalvik cache when installing updates, but you will know that it's needed when you are greeted with force closes when trying to open some apps.
Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android_secure, and/or an option for formatting data. There's almost no reason that you would ever need to use these items. These options are there for convenience. For instance, if you're getting ready to sell your device, then it's a good idea to wipe everything on the device so that the new owner doesn't get your private data. Note that these wipe options may not be completely destructive. If you store especially sensitive information on your device or are really concerned about your private data, then you may need to look into other options to ensure that your data is fully destroyed.
norml said:
Wiping data, opposed to Formatting data.
TWRP FAQ
What to Wipe in TWRP
If you are switching ROMs (changing from one ROM to a completely different one) then you should perform a factory reset. A factory reset wipes data and cache (which includes dalvik cache). A factory reset will also wipe sd-ext and android_secure if your device has those items. 99% of the time, this is all that you need to wipe and you only need to do it once, not three times as some people would lead you to believe.
If you're installing a nightly update, then oftentimes you don't need to wipe anything at all. However, if you encounter strange behavior, then you may want to consider performing a factory reset. Of course, if the ROM maker recommends that you do a factory reset during an update, then it's a good idea to follow their recommendation.
The vast majority of ROMs wipe system as part of the zip install. This means that in most cases you do not need to wipe system... ever.
At this point, cache (not dalvik cache) is primarily used for recovery. It's used to store the recovery log and for storing OTA (Over The Air) updates. You probably don't need to wipe cache, and cache is already wiped as part of a factory reset.
In most ROMs, dalvik cache is stored in the data partition, so if you do a factory reset, you've also wiped dalvik cache. In a few custom ROMs, especially on older devices with small data partitions, the ROM maker may have moved dalvik to the cache partition to provide you with more room for apps. Since we wipe cache with a factory reset, again, you probably don't need to wipe dalvik. There are a few situations where you may need to wipe dalvik cache when installing updates, but you will know that it's needed when you are greeted with force closes when trying to open some apps.
Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android_secure, and/or an option for formatting data. There's almost no reason that you would ever need to use these items. These options are there for convenience. For instance, if you're getting ready to sell your device, then it's a good idea to wipe everything on the device so that the new owner doesn't get your private data. Note that these wipe options may not be completely destructive. If you store especially sensitive information on your device or are really concerned about your private data, then you may need to look into other options to ensure that your data is fully destroyed.
Click to expand...
Click to collapse
Thanks - I realize this and am installing TWRP as we speak. (I just prefer it)
I was actually reading the Complete Guide in the general section and saw under CWM install that you need to format data between switching Roms.. I never actually did this ever with previous phones. Completely my fault for reading the CWM part, not the TWRP part, right under neath. I thought the Format Data was something S4 specific since this is my 2nd day with the device.
I'm now rooted with TWRP back on.

[Q] Question about TWRP backups before I wipe.

I have never had a device without a removable SD and am used to having the contents of my SD protected when I wipe and then flush, i mean flash (hah). When I wipe with TWRP, will I lose my pix, audio, etc as they are not on a separate partition?
docslate said:
I have never had a device without a removable SD and am used to having the contents of my SD protected when I wipe and then flush, i mean flash (hah). When I wipe with TWRP, will I lose my pix, audio, etc as they are not on a separate partition?
Click to expand...
Click to collapse
If you lost your pix, audio, etc that would really really suck. I don't think I would flash new ROMs daily. So of course the contents of internal SD are protected. UNLESS you choose to wipe internal storage in TWRP so don't mess with those advced options. They call it a factory reset in TWRP but its not like the phone option to factory reset which does wipe internal storage.
Your app data is lost. Just back up with titanium backup. After flashing new ROM install only TB, then restore apps and data (no system apps!) and you're done!
And make sure you have a backup! If anything does go wrong just restore it.
alright so lets say i download a rom and put it on my internal, then i boot into twrp do i just factory reset or what? i dont understand what to wipe to keep internal intact sorrry im a noob
in TWRP do a factory reset and install the new rom (and gapps if its CM rom) and you are golden.
stuck on team win screen
ok I need some serious help my battery is about to die! I rooted my phone last night and this morning I installed twrp 2632 and then rebooted and the phone now will not boot past the twrp screen then I got a call to go to a hospice home and that took several hours in the meantime my phone will not do anything just drain battery! any help would be greatly appreciated! thanks
tdevaughn said:
in TWRP do a factory reset and install the new rom (and gapps if its CM rom) and you are golden.
Click to expand...
Click to collapse

factory reset on custom rom

I haven't been able to find an answer upon searching and haven't come across this in my time reading forum posts.
So if I go to settings - backup and reset and do a factory reset from there.
I will lose all my data on internal storage, yes. But will the Android system boot into the same rom with Gapps and all just without any data at all? Allowing me to set it up as a new phone completely.
I'm on official Resurrection remix.
Edit - here's what I did. Thanks @Sam Nakamura
1. Clean flashed the ROM I wanted to use. (wipe everything except internal storage)
2. Booted into the ROM and set up Google account.
3. Booted into twrp and wiped internal storage.
4. Rebooted into system.
Everything is good as new. Setting it up from scratch now.
Isn't better doing it from recovery?
fabrquila said:
Isn't better doing it from recovery?
Click to expand...
Click to collapse
Trying to find out how. Want to delete all data including internal storage.
Want to lose all apps, files. Basically exactly as a new phone, just with a custom ROM.
pranayysharma29 said:
Trying to find out how. Want to delete all data including internal storage.
Want to lose all apps, files. Basically exactly as a new phone, just with a custom ROM.
Click to expand...
Click to collapse
Just use wipe data/factory reset function in TWRP and use the advanced wipe options.
fabrquila said:
Just use wipe data/factory reset function in TWRP and use the advanced wipe options.
Click to expand...
Click to collapse
And check everything, swipe to delete and reboot? But that way I won't have any rom or Gapps installed, will i?
pranayysharma29 said:
And check everything, swipe to delete and reboot? But that way I won't have any rom or Gapps installed, will i?
Click to expand...
Click to collapse
Not if you don't wipe system partition, where ROM and Gapps are located. Just if something goes wrong, you should have a way to flash these zips. You can use TWRP to transfer them.
Basically I'm not sure which partitions to wipe. As I don't know what is contained in which partition. Which is what I'm trying to understand
How to use twrp to transfer them? I lost you at that.
pranayysharma29 said:
Basically I'm not sure which partitions to wipe. As I don't know what is contained in which partition. Which is what I'm trying to understand
How to use twrp to transfer them? I lost you at that.
Click to expand...
Click to collapse
Wipe data, cache, dalvik, and internal storage partitions. Don't wipe system.
Data contains your apps. Cache works as cache for apps and dalvik has a similar function afaik. Internal storage stands for the internal memory, where files that you download, transfer or receive, are located.
I'm trying to say that you should have a backup of ROM and gapps just in case something bad happens, which I don't think. If that happens, just boot the phone in TWRP and plug it to a computer. Then transfer zip files of ROM and Gapps to internal storage, and then flash them. Voilá, clean ROM and full operative Gapps.
Sorry for taking so much to reply, I didn't see notifications in the forum.
fabrquila said:
Wipe data, cache, dalvik, and internal storage partitions. Don't wipe system.
Data contains your apps. Cache works as cache for apps and dalvik has a similar function afaik. Internal storage stands for the internal memory, where files that you download, transfer or receive, are located.
I'm trying to say that you should have a backup of ROM and gapps just in case something bad happens, which I don't think. If that happens, just boot the phone in TWRP and plug it to a computer. Then transfer zip files of ROM and Gapps to internal storage, and then flash them. Voilá, clean ROM and full operative Gapps.
Click to expand...
Click to collapse
Thanks for the explanation about the partitions.
I managed to achieve what I set out for.
Did a clean flash of my ROM. Then went on to wipe internal storage in twrp. Now have a new rom and everything. But clean slate for internal storage.

Categories

Resources