factory reset on custom rom - OnePlus 2 Q&A, Help & Troubleshooting

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.

Related

wiping data?

i wanna download some cool roms and it ask me to wipe data, cache and dalvick. when i do this.... will it erase all of my music, vids, and pics off my sd card? i have the phone plugged in boot mode... all i have to do is cleck yes to wipe data. i hope this doesnt make me lose everything
I'm no expert but have flashed a few roms. You shouldn't lose what's on your SD. I wipe cache and dalvik all the time even when not flashing a ROM. I've never lost anything. You would if you were partitioning your SD.
Hope it helps, good luck and have fun.
Sent from my SHOOTER juiced EVO using xda premium
No when you wipe dalvick cache and cache you won't lose anything on your SD card just make sure you fully understand how to flash a rom first time I did it I messed my phone up do a lot of research first lol and good luck
Sent from my PC36100 using Tapatalk
MPH33 said:
i wanna download some cool roms and it ask me to wipe data, cache and dalvick. when i do this.... will it erase all of my music, vids, and pics off my sd card? i have the phone plugged in boot mode... all i have to do is cleck yes to wipe data. i hope this doesnt make me lose everything
Click to expand...
Click to collapse
Before you start wiping and what not make sure to do a backup. Also use Titanium Backup to back all your apps you downloaded the paid ones's or all the ones you downloaded. For contacts make sure to export them to your sdcard just in case. what recovery do you have? Should use Amon RA the best one for the EVO
Now when you're installing a new rom This for the Amon ra recovery but its almost the same for clockworkmod.
Wipe all user data/system
Wipe cache
wipe Dalvik cache
Wipe android secure (optional)
Wipe system
Wipe data
Wipe boot
Wipe rotate settings
BUT DO NOT WIPE SDCARD goodluck with your new root
Have a question here that's semi-related. I have been playing around with some different ROM's here the past few days. I noticed some of them are utilizing my SD card. When I do my usual wipe, it's leaving a few Widgets, etc in place. I know it's the SD card, because when I repartition the SD card, I finally got rid of everything that wouldn't wipe. What wipe/clear was I missing here, or is the only way to clear these apps/widges from the previous ROM is to do a SD card repartition each time?
Edit :
Just to be clear on the wipes/clears I've been doing :
wipe data/factory reset (Doesn't this cover most everything?)
wipe cache
wipe Dalvik cache
I also tried Clear Storage from hboot, but that didn't seem to help either...
jreed012 said:
Have a question here that's semi-related. I have been playing around with some different ROM's here the past few days. I noticed some of them are utilizing my SD card. When I do my usual wipe, it's leaving a few Widgets, etc in place. I know it's the SD card, because when I repartition the SD card, I finally got rid of everything that wouldn't wipe. What wipe/clear was I missing here, or is the only way to clear these apps/widges from the previous ROM is to do a SD card repartition each time?
Edit :
Just to be clear on the wipes/clears I've been doing :
wipe data/factory reset (Doesn't this cover most everything?)
wipe cache
wipe Dalvik cache
I also tried Clear Storage from hboot, but that didn't seem to help either...
Click to expand...
Click to collapse
Wipe in this order and I can assure things will work for you
Factory wipe(data-cache),wipe dalvik, wipe boot, and wipe system
Sent from my PC36100 using xda premium
...So, what ROM are we developing here? ...I'm not good at flaming...
@MPH33, you want to make sure and post questions in the Q&A section in the future.
My two cents here, is:
I always wipe my sdcard as well as what the others have said. I know you don't want to "lose" all your stuff on there, but really all you have to do is create a folder on your computer with the important stuff, like pics, music, backups. I use recovery to partition the sdcard, much faster than formatting on the PC.
The phone creates other temp folders on the sdcard that I am not sure what impact they will have on another ROM but I like to get rid of them.
jreed012 said:
Have a question here that's semi-related. I have been playing around with some different ROM's here the past few days. I noticed some of them are utilizing my SD card. When I do my usual wipe, it's leaving a few Widgets, etc in place. I know it's the SD card, because when I repartition the SD card, I finally got rid of everything that wouldn't wipe. What wipe/clear was I missing here, or is the only way to clear these apps/widges from the previous ROM is to do a SD card repartition each time?
Edit :
Just to be clear on the wipes/clears I've been doing :
wipe data/factory reset (Doesn't this cover most everything?)
wipe cache
wipe Dalvik cache
I also tried Clear Storage from hboot, but that didn't seem to help either...
Click to expand...
Click to collapse
the fact that you say you get rid of the left over bits when you repartition tells me that it's an apps2sd issue. Some roms use the sd-ext and some don't. In both CWM and Amon-ra you will find options to wipe the sd-ext. Add that into what you're already wiping and you shouldn't be troubled with leftover bits anymore. (and just to be sure, also add in .android-secure to the list of what gets wiped)
Wiping data/factory reset will wipe android secure and sd extension. So id just do what jaredthegreat said and run vr_superwipe script also.
It works same way as when your done using the toilet.
Sent from my PC36100 using XDA App

[Q] Dumb Question: Where should I place the ROM + Gapps before flashing?

In my previous phone (which had an SD card) I placed both, the ROM and Gapps in the SD before wiping data. But in the nexus, if I wipe data, won't I lose the ROM and Gapps zip no matter where I place it in the internal memory?
Well, it obviously won't but just to make sure, where do I put it? Anywhere? I don't wanna wipe data only to realise it wiped everything and I can't go back to stock or something
sixaxis94 said:
In my previous phone (which had an SD card) I placed both, the ROM and Gapps in the SD before wiping data. But in the nexus, if I wipe data, won't I lose the ROM and Gapps zip no matter where I place it in the internal memory?
Well, it obviously won't but just to make sure, where do I put it? Anywhere? I don't wanna wipe data only to realise it wiped everything and I can't go back to stock or something
Click to expand...
Click to collapse
Firstly, what recovery are you using? Wipe Data in CWM and Wipe Data in TWRP do different things :/
Connor Baker
I'm used to CWM but the MSkip's toolkit recommended TWRP so I installed that.
They do different things??
sixaxis94 said:
I'm used to CWM but the MSkip's toolkit recommended TWRP so I installed that.
They do different things??
Click to expand...
Click to collapse
It doesn't matter what recover you have. They have the same functionality. TWRP is widely used by many users.
Sent from my Nexus 4 using Tapatalk 2
scream4cheese said:
It doesn't matter what recover you have. They have the same functionality. TWRP is widely used by many users.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Okay.. But where do I put the two files?
scream4cheese said:
It doesn't matter what recover you have. They have the same functionality. TWRP is widely used by many users.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
sixaxis94 said:
Okay.. But where do I put the two files?
Click to expand...
Click to collapse
Same funtionality, but wiping data do completely different things. On CWM, wiping data means factory reset without touching the sdcard. In TWRP, wiping data means... well, see the screenshot. It's a complete factory reset, and also wipes the sdcard (so files, ROM zips and the such are all gone).
You can put the two files on your sdcard. Just put them someplace you can find them. I usually leave my zips on the root of my sdcard.
Connor Baker
Connor Baker said:
Same funtionality, but wiping data do completely different things. On CWM, wiping data means factory reset without touching the sdcard. In TWRP, wiping data means... well, see the screenshot. It's a complete factory reset, and also wipes the sdcard (so files, ROM zips and the such are all gone).
You can put the two files on your sdcard. Just put them someplace you can find them. I usually leave my zips on the root of my sdcard.
Connor Baker
Click to expand...
Click to collapse
Just for the sake of clarity, when you say SD card you mean internal memory obviously right?
So how do I wipe data in twrp?
sixaxis94 said:
Just for the sake of clarity, when you say SD card you mean internal memory obviously right?
So how do I wipe data in twrp?
Click to expand...
Click to collapse
Get ready for more pictures
So to wipe, go to wipe (1st photo), then do factory reset (2nd photo), and I usually do the advanced wipe after the factory reset (2nd-3rd photo). An example of what I do for my phone's roms is the 4th photo. I have the folder with the things I want to flash, and I have a backup ROM. The backup rom is incase I do a full wipe (factory reset, and wipe /system), and the zip file is bad and cannot install. So be careful, and make sure you have a good zip file before you wipe system. Once system is wiped, the Android OS is basically gone, so you can't boot into it and copy over a working ROM.
Best of luck,
Connor Baker
Connor Baker said:
Get ready for more pictures
So to wipe, go to wipe (1st photo), then do factory reset (2nd photo), and I usually do the advanced wipe after the factory reset (2nd-3rd photo). An example of what I do for my phone's roms is the 4th photo. I have the folder with the things I want to flash, and I have a backup ROM. The backup rom is incase I do a full wipe (factory reset, and wipe /system), and the zip file is bad and cannot install. So be careful, and make sure you have a good zip file before you wipe system. Once system is wiped, the Android OS is basically gone, so you can't boot into it and copy over a working ROM.
Best of luck,
Connor Baker
Click to expand...
Click to collapse
Sweet! Thanks for clearing that out.. Appreciate it

What do I wipe in TWRP when installing a custom ROM?

Excuse my ignorance but I've been out of the game for 3 years and not familiar with TWRP as I used to use Clockwork Recovery. What do I need to wipe when preparing to install a custom ROM? Do I just hit factory reset in TWRP or do I advance wipe?
Sent from my SM-G900F using Tapatalk
Wipe everything other than the partition you have the custom ROM on, so if your custom ROM is on external SD, wipe and format the whole internal
When upgrading from the same custom ROM to a newer version, you only need to wipe System and Caches
*Detection* said:
Wipe everything other than the partition you have the custom ROM on, so if your custom ROM is on external SD, wipe and format the whole internal
When upgrading from the same custom ROM to a newer version, you only need to wipe System and Caches
Click to expand...
Click to collapse
It lets me wipe:
- Davik cache
- Cache
- System
- Internal Storage
- Data
So I should wipe everything but system or?
Sent from my SM-G900F using Tapatalk
You need to wipe everything, sometimes internal storage, sometimes not. I wipe everything including internal storage though, as a lot of unneeded files are kept there. Just transfer what you want to keep to your pc or external card.
metalfan78 said:
You need to wipe everything, sometimes internal storage, sometimes not. I wipe everything including internal storage though, as a lot of unneeded files are kept there. Just transfer what you want to keep to your pc or external card.
Click to expand...
Click to collapse
Thanks [emoji1]
Sent from my SM-G900F using Tapatalk

Full wipe / clean install problems

Hey guys. I have TWRP 2.8.7.2 installed. I've been using Pure Nexus + Elemental X exclusively since December. This never seemed to be a problem before, but my last few flashes have resulted in sticky data. I go into TWRP, advanced wipe and wipe: DALVIK, System, data, Cache. Then, I delete Android from the internal storage and any other app directories that linger. Then I install the ROM, GApps, and kernel. Then, when I first boot my email shows up in the Google account setup. I thought "maybe it's saved on the sim card." But then I notice that when I reinstall apps, that they retain their data and my user data (for example, I don't even need to log into Runkeeper).
So somehow, despite performing a full wipe and clean install my user data is being saved. I know it's not part of internal storage so wiping that would only result in me having to copy my ROM files, music, photos, etc back over. So, where is this user data being saved and why isn't it being wiped?
Any help would be appreciated.
jserio said:
Hey guys. I have TWRP 2.8.7.2 installed. I've been using Pure Nexus + Elemental X exclusively since December. This never seemed to be a problem before, but my last few flashes have resulted in sticky data. I go into TWRP, advanced wipe and wipe: DALVIK, System, data, Cache. Then, I delete Android from the internal storage and any other app directories that linger. Then I install the ROM, GApps, and kernel. Then, when I first boot my email shows up in the Google account setup. I thought "maybe it's saved on the sim card." But then I notice that when I reinstall apps, that they retain their data and my user data (for example, I don't even need to log into Runkeeper).
So somehow, despite performing a full wipe and clean install my user data is being saved. I know it's not part of internal storage so wiping that would only result in me having to copy my ROM files, music, photos, etc back over. So, where is this user data being saved and why isn't it being wiped?
Any help would be appreciated.
Click to expand...
Click to collapse
I'm not sure why this is happening, it's definitely word. But is there a reason you're wiping like this when updating the ROM? You really don't need to, you can just dirty flash the ROM zip when updating.
Heisenberg said:
I'm not sure why this is happening, it's definitely word. But is there a reason you're wiping like this when updating the ROM? You really don't need to, you can just dirty flash the ROM zip when updating.
Click to expand...
Click to collapse
I don't like to dirty wipe. I guess it's the OCD in me that likes to start clean every time. I wonder if it's a bug in TWRP or something.
jserio said:
I don't like to dirty wipe. I guess it's the OCD in me that likes to start clean every time. I wonder if it's a bug in TWRP or something.
Click to expand...
Click to collapse
I used to do the same thing, until I realised I was just wasting time for no benefit. I don't think it's a TWRP issue, I was using that same build for ages with no problems. You could try updating to the latest TWRP though.
Try with "rm - fr" instead of regular wipe in options, maybe this works.
Are you doing a Factory Reset in TWRP to actually wipe the rom away? You list system, cache, and data (internal storage) but not Factory Reset.
Alternatively, are your apps reinstalling after signing into your account at Setup Wizard?
Sent from my Nexus 5X using Tapatalk
Try wiping system 2x. I had to do this on my S6. After wiping the first time and going back to the advance menu, System would then show up as 2 different partitions, System Read and System Write. I had to wipe the 2 in order to do a clean install. Although this is not the case for the 6P, I have made it a habit to do so. If that fails, you will need to adb the factory image.
Sent from my Nexus 6P using Tapatalk
SlimSnoopOS said:
Are you doing a Factory Reset in TWRP to actually wipe the rom away? You list system, cache, and data (internal storage) but not Factory Reset.
Alternatively, are your apps reinstalling after signing into your account at Setup Wizard?
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
He's already performing a factory reset by wiping the partitions individually.
Heisenberg said:
He's already performing a factory reset by wiping the partitions individually.
Click to expand...
Click to collapse
That's what you would think, but why is this happening?
FWIW, I always TWRP factory reset, then wipe all the partitions he mentioned again by itself and have never seen this behavior on any version of TWRP.
farfromovin said:
That's what you would think, but why is this happening?
FWIW, I always TWRP factory reset, then wipe all the partitions he mentioned again by itself and have never seen this behavior on any version of TWRP.
Click to expand...
Click to collapse
I have no explanation for what's happening, I really don't know. I only ever use the advanced wipe menu, it's pointless performing the factory reset too.

Wipe internal storage

Hello,
I would like to ask if i can do a full wipe. I mean with internal storage.
My pohone is already going slowly, storage is full of trashes and i want to clean it.
I have USB OTG from i install roms, kernels etc.
So my idea is.
Boot recovery -> wipe system, data, cache, davlik, internal storage.
Than instal boostack, rom and gapps.
Will it works? Im afraid of brick or damage my G2.
May i do it like i wrotte?
bk2601 said:
Hello,
I would like to ask if i can do a full wipe. I mean with internal storage.
My pohone is already going slowly, storage is full of trashes and i want to clean it.
I have USB OTG from i install roms, kernels etc.
So my idea is.
Boot recovery -> wipe system, data, cache, davlik, internal storage.
Than instal boostack, rom and gapps.
Will it works? Im afraid of brick or damage my G2.
May i do it like i wrotte?
Click to expand...
Click to collapse
Internal storage is what you have on your SD card like music, pictures, videos and folders. It's what you see when you connect USB to PC. If you wipe it nothing bad will happen. But you also mentioned you want to wipe system, if you do that you won't have anything to boot with so make sure you flash another system after wiping.

Categories

Resources