Files carrying over from previous rom - Nexus 4 Q&A, Help & Troubleshooting

After flashing MIUI on my N4 and going back to a nandroid of a previous AOKP rom, I am getting a "Unfortunately, System UI has stopped" message over and over. Also, I noticed that after going to another rom (either nandroid or clean flash), there are some files left from the previous rom (e.g., flashed Carbon then went back to nandroid of AOKP and had a PIE remnant, which I know is not present on AOKP). I'm figuring this has something to do with things not getting completely wiped (all this is after complete wipe in TWRP between flashes).
Anyone have any advice on how to get a complete wipe between flashes?
Thanks in advance

Wipe cache, wipe system, wipe dalvik cache and factory reset. Do all those in recovery mode.
Sent from my Nexus 4 using Tapatalk 2

scream4cheese said:
Wipe cache, wipe system, wipe dalvik cache and factory reset. Do all those in recovery mode.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
I did all those. Although, if I remember correctly, there's no option to wipe system in TWRP. Not sure. But I did wipe everything I could in TWRP recovery.
Thanks though.
Sent from my Nexus 4 using Tapatalk 2

It's there under advanced wipe.
Wayne Tech Nexus

This happens to me to for some reason even if I do wipe system. The wallpaper from my previous ROM almost always gets carried over for some reason
Sent from my Nexus 4 using Tapatalk 4 Beta

justin11141 said:
This happens to me to for some reason even if I do wipe system. The wallpaper from my previous ROM almost always gets carried over for some reason
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
This happens if you have it set for your apps and settings to be restored by Google. I never advice this
Wayne Tech Nexus

zelendel said:
This happens if you have it set for your apps and settings to be restored by Google. I never advice this
Wayne Tech Nexus
Click to expand...
Click to collapse
Oh wow well that makes sense.
Sent from my Nexus 4 using Tapatalk 4 Beta

scream4cheese said:
Wipe cache, wipe system, wipe dalvik cache and factory reset. Do all those in recovery mode.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
After this flash ROM, then skip set up wizard and go to settings > backup and reset and do a factory reset from there. It will reboot. Then everything from the other ROM should be gone.
Hit thanks if I helped

fireboypr said:
After this flash ROM, then skip set up wizard and go to settings > backup and reset and do a factory reset from there. It will reboot. Then everything from the other ROM should be gone.
Hit thanks if I helped
Click to expand...
Click to collapse
But will I have a ROM to go back to? I mean if I do a factory reset after flashing the ROM that doesn't erase the ROM?
Oh, and what if you're trying to restore a nandroid?
Sent from my Nexus 4 using Tapatalk 2

scott62185 said:
But will I have a ROM to go back to? I mean if I do a factory reset after flashing the ROM that doesn't erase the ROM?
Oh, and what if you're trying to restore a nandroid?
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Doing that after a rom flash can cause issues. That is why I always suggest to doing a full and proper wipe before flashing. Though it does seem that MIUI for some reason doesn't always properly remove files when this is done.
Wayne Tech Nexus

zelendel said:
Doing that after a rom flash can cause issues. That is why I always suggest to doing a full and proper wipe before flashing. Though it does seem that MIUI for some reason doesn't always properly remove files when this is done.
Wayne Tech Nexus
Click to expand...
Click to collapse
Hmmm, so what do you suggest?
Sent from my Nexus 4 using Tapatalk 2

scott62185 said:
But will I have a ROM to go back to? I mean if I do a factory reset after flashing the ROM that doesn't erase the ROM?
Oh, and what if you're trying to restore a nandroid?
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
What? A factory reset clears out user data and restores the ROM back to the way it is after a fresh install. It doesn't touch the system partition.
You do know that titanium can restore app data from a nandroid, right?
The noobness is strong with this one.

estallings15 said:
What? A factory reset clears out user data and restores the ROM back to the way it is after a fresh install. It doesn't touch the system partition.
You do know that titanium can restore app data from a nandroid, right?
The noobness is strong with this one.
Click to expand...
Click to collapse
I never thought about the rom being left intact after a factory reset because I only do a full wipe when flashing a whole new rom (I've never wiped after flashing a new rom, only before). And yeah, I use Titanium Backup.

justin11141 said:
This happens to me to for some reason even if I do wipe system. The wallpaper from my previous ROM almost always gets carried over for some reason
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Google's built in backup can do that. Many custom ROM's custom settings can be restored as well if there are provisions in the ROM that allow that data to be backed up to the Google servers. Many of the custom settings I use on CM are restored by this mechanism in the rare event of a wipe. With "App Data" being able to be synced with Google's servers we'll see much more of this as well; I think it's great.
These are "non-essential" settings that won't/shouldn't affect stability, etc...
Example: http://review.cyanogenmod.org/#/c/45135/

Related

COMPLETELY wipe nexus 7

I've been running into storage issues with my nexus 7 and would just like to completely wipe all data on my device and act like its day one again. What method would COMPLETELY wipe all data?
I'm currently rooted and running kaos Droid 3.7.3. Would a basic factory reset do the trick? I know I've had to do one before flashing this rom... but I still had left over data. The storage on my device doesn't add up to what is actually on there.
Sent from my SGH-I997 using xda app-developers app
I guess you could format the whole thing if you want to COMPLETELY wipe it.
Do a factory install from https://developers.google.com/android/nexus/images#nakasi This will wipe everything.
Sent from my Nexus 7
Fastboot erase user data.
Should delete everything data related on the device.
Sent From My Toro+ via White Tapatalk
Here you go:
http://forum.xda-developers.com/showthread.php?t=1809195
It will return you to stock AND wipe EVERYTHING on your N7.
theandroidrooter88 said:
Here you go:
http://forum.xda-developers.com/showthread.php?t=1809195
It will return you to stock AND wipe EVERYTHING on your N7.
Click to expand...
Click to collapse
Don't use a toolkit first learn how to use fast boot http://forum.xda-developers.com/showthread.php?t=1907796
Sent from my BAKED Nexus
BillGoss said:
Do a factory install from https://developers.google.com/android/nexus/images#nakasi This will wipe everything.
Sent from my Nexus 7
Click to expand...
Click to collapse
he don't need that flash only to wipe the storage.there are less time consuming method
ÜBER™ said:
Fastboot erase user data.
Should delete everything data related on the device.
Sent From My Toro+ via White Tapatalk
Click to expand...
Click to collapse
THIS like uber sad(but with userdata,not user data)..or at least a format data\internal in TWRP recovery that erase also data\media.i'm in the same boat with my gnex,and did this some hours ago
This is a old thread but i stumbled upon it today. I learned a lot from this and can now flash manually. Everything went pretty smooth.

[Help] Just formated everything

As the title says... i just formated my ****ing whole system
wanted to change roms and used this crazy complete cleanup script
didnt know that it would format EVERYTHING
so now im standing here with a phone with only a twrp recovery... no system no backups ... nothing
i somehow need to push a rom to my device and install it
problem is im totally blank when it comes to these adb shell things
could someone give me an advice how to get a file to my phone?
nexus toolkit doesnt work
So, assuming you can mount to your computer, download a ROM. Try the chemistry ROM? Or the stock rooted one. Whichever. Got to recovery, find the ROM and install it.
This is assuming you can mount with twrp. (Its in mounts)
In front of a live studio audience
If it won't mount, use adb to push the zip(s) to your internal storage.
it does not mount... and i somehow cant get adb to work
Try adb side load in twrp
Edit: its in the advanced menu.
Sent from my Nexus 4 using xda premium
ok did it
extracted system and user data from factory image and pushed it
managed to reebot
MoooN said:
ok did it
extracted system and user data from factory image and pushed it
managed to reebot
Click to expand...
Click to collapse
How did you get it to mount?
Sent from my Nexus 4 using xda premium
Don't use a wipe script next time...
Even better, don't wipe at all. Just do a proper backup and dirtyflash.
Sent from my Nexus 4 using XDA Premium HD app
HerrKuk said:
Don't use a wipe script next time...
Even better, don't wipe at all. Just do a proper backup and dirtyflash.
Sent from my Nexus 4 using XDA Premium HD app
Click to expand...
Click to collapse
Wow. Worst advice ever.
Next time, do a factory reset and wipe system. That'll do you and keep you from having those little issues that are caused by doing dirty flashes. Sometimes they work just fine. Others, they give you hell. It's one thing if you're upgrading between builds of the same ROM. Even then, though, it's a risk.
estallings15 said:
Wow. Worst advice ever.
Next time, do a factory reset and wipe system. That'll do you and keep you from having those little issues that are caused by doing dirty flashes. Sometimes they work just fine. Others, they give you hell. It's one thing if you're upgrading between builds of the same ROM. Even then, though, it's a risk.
Click to expand...
Click to collapse
Yeah, wiping solved OPs problem...
Oh... Wait a second..
Sent from my Nexus 4 using XDA Premium HD app
HerrKuk said:
Yeah, wiping solved OPs problem...
Oh... Wait a second..
Sent from my Nexus 4 using XDA Premium HD app
Click to expand...
Click to collapse
That's like saying never ever drive because if you steer into a pole, it's bad. Don't steer into things and it's fine. If the OP learns to correctly wipe, this won't be an issue ever again.
Don't wipe system....
Factory Reset/Cache/Dalvik -> Flash ROM.
Sent from my Trinity powered Nexus 4
I wipe cache, dalvik, factory reset, then wipe system every time I change Roms. I've done this for years on every android I've had and never had a problem. Don't wipe internal storage though.
Sent from my Nexus 4 using xda premium
309041291a said:
Don't wipe system....
Factory Reset/Cache/Dalvik -> Flash ROM.
Sent from my Trinity powered Nexus 4
Click to expand...
Click to collapse
Always wipe system. That's where the most often overlooked errors come from.
Originally Posted by 309041291a<br />
Don't wipe system....<br />
<br />
Factory Reset/Cache/Dalvik -> Flash ROM.<br />
<br />
Sent from my Trinity powered Nexus 4
Click to expand...
Click to collapse
<br />
<br />
Always wipe system. That's where the most often overlooked errors come from.
Click to expand...
Click to collapse
K well I've wiped system twice and I've lost everything on my SD.....
Sent from my Trinity powered Nexus 4
309041291a said:
K well I've wiped system twice and I've lost everything on my SD.....
Sent from my Trinity powered Nexus 4
Click to expand...
Click to collapse
On what? If I wipe data on TWRP I lose everything on SD. Wiping system wipes the system partition. There are many reasons I don't use CWM, poor backup locations and inefficient menu layouts are among them. If wiping system wipes the SD, I'll add that to the list.
TWRP all the way! Way better than CWM in my opinion.
Sent from my Nexus 4 using xda premium
lyall29 said:
TWRP all the way! Way better than CWM in my opinion.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Agreed. I would sacrifice an infant to get 4EXT Recovery Touch on thus baby. It has a "Format all partitions (except SD card)" option that is amazeballs.
ive done this before. to fix it you need to download the stock google nexus 4 image. google has taken it down from its webste but there are people here in the forums who have uploaded it to help and have other people download it.
now download and install the nexus 4 root tool kit
to fix your phone your are going to put your phone into fastboot mode and connect it to your pc.
then open up the nexus 4 root tool kit program.
next find the google nexus 4 toolkit folder and go into it. (mine saved in my local disk C)
go into the "put google factory image here" folder and drop the google factory image in there.
once thats done go back into the nexus 4 root toolkit program and press number 9 (download, Extract + flash Facotry image"
since you already downloaded it and put it in the factory image folder you're going to click option number 2 (flash google image)
then type yes and let it do its thing
make sure that the factory image that you download is in a .tgz or .tar file or else it wont work
I hope that helps!!!!

[Q] Switching ROMs

I have a quick question. When switching ROMs should I also in addition to factory reset, also perform a system/wipe to wipe the already installed custom ROM? Thanks.
It is generally unnecessary, but not a bad idea to do so. Most devs have their updater script format /system, but you'll find the occasional one that omits that one line.
Sent from my Nexus 7 using Tapatalk HD
Alright. So I shouldn't worry about performing system wipe?
Sent from my Nexus 7 using xda app-developers app
tsmith9191 said:
Alright. So I shouldn't worry about performing system wipe?
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I think it's better to wipe the system. As I've faced many kind of froblem because of a dirty flash. And I've seen many bug reports on several ROM thread and it just came out that it's not the ROM but the dirty flash is causing the problem. It will probably take 1-2hr to get back to the previous position so what's the big didfference??
____________________________________________
Please press the thanks button if you find this helpful.
ashik992 said:
I think it's better to wipe the system. As I've faced many kind of froblem because of a dirty flash. And I've seen many bug reports on several ROM thread and it just came out that it's not the ROM but the dirty flash is causing the problem. It will probably take 1-2hr to get back to the previous position so what's the big didfference??
____________________________________________
Please press the thanks button if you find this helpful.
Click to expand...
Click to collapse
OK. So when switching ROMs I should perform factory restore, wipe all caches, as well as system/wipe to erase the ROM currently installed. I have done it that way before but I always get nervous when I wipe system, cause now it has no ROM installed at all and I don't want anything to happen in that case. But thanks for the quick reply
Sent from my Nexus 7 using xda app-developers app
tsmith9191 said:
OK. So when switching ROMs I should perform factory restore, wipe all caches, as well as system/wipe to erase the ROM currently installed. I have done it that way before but I always get nervous when I wipe system, cause now it has no ROM installed at all and I don't want anything to happen in that case. But thanks for the quick reply
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
What could happen?? Hardbrick?? A little chance..... Here's what I think when I do something risky. Just Think like I don't have any device if I can get this device back it's bonus for me.
You can always flash a rom whatever it has one or not untill your device can be booted into fastboot. So don't be afraid if something bad(!?) happens and you can boot into fastboot mode. Once I even had no boot just the fastboot it took less than 5 min to get a system on it.
And dirty flash is always an option. I myself had and seen many people having problems with it.
_________________________________________
Don't just say thank, there is a button for thnking.
Clean is always the best! But always make a backup before the wipe process!
Wipe:
/system
/userdata
/.android-secure
/dalvik-cache
/cache

[Solved]Factory Data Reset.

Here's the deal. I want to factory reset my nexus so I can remove the unlock pin. Question is I can't seem to really get an answer. If I do the factory data reset from the menu will I lose my data from the emulated SD card. According to the picture. I will, but I looked this up and according to some website and other xda members. I won't. Since I've only had this phone for about a month now and this is the first phone that I've had with a SD slot. I honestly don't know what will happen if I hit that reset button.
Sent from my Nexus 4 using xda premium
Back up your storage to a computer and see what happens. They only way I've been able to erase my data was formatting in recovery or locking then unlocking the bootloader.
Sent from a neXus device
FeintDoxx said:
Here's the deal. I want to factory reset my nexus so I can remove the unlock pin. Question is I can't seem to really get an answer. If I do the factory data reset from the menu will I lose my data from the emulated SD card. According to the picture. I will, but I looked this up and according to some website and other xda members. I won't. Since I've only had this phone for about a month now and this is the first phone that I've had with a SD slot. I honestly don't know what will happen if I hit that reset button.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Yes a factory reset will wipe all user data on the phone if done from settings/backup and restore/reset device. Backup files first.
The nexus 4 doesn't have an SD card slot. You will lose all data unless you've made a backup in recovery or on your computer. And yes, it will wipe the /sdcard folder.
Holcomb227 said:
The nexus 4 doesn't have an SD card slot. You will lose all data unless you've made a backup in recovery or on your computer. And yes, it will wipe the /sdcard folder.
Click to expand...
Click to collapse
I know sorry meant without just didn't notice it and yeah I figured so. Guess I'll have to wait a bit before I do a reset then.
Sent from my Nexus 4 using xda premium
But you know, i have done factory resets, wiped dalvic nd cache and unlocking bootloader but evrytime i so that, the files in my internal sd card were all still there and never was deleted.
So im quite confused as well..
Sent from my Nexus 4 using xda premium
vinz_bangiz said:
But you know, i have done factory resets, wiped dalvic nd cache and unlocking bootloader but evrytime i so that, the files in my internal sd card were all still there and never was deleted.
So im quite confused as well..
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
If you factory reset in stock recovery it wipes the lot
vinz_bangiz said:
But you know, i have done factory resets, wiped dalvic nd cache and unlocking bootloader but evrytime i so that, the files in my internal sd card were all still there and never was deleted.
So im quite confused as well..
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Yeah this is what I mean. I keep on getting different answers.
But I'll just back things up on a PC and then attempt to factory reset.
EddyOS said:
If you factory reset in stock recovery it wipes the lot
Click to expand...
Click to collapse
Sent from my Nexus 4 using xda premium
Doing a factory reset in stock recovery will wipe everything
Doing a factory reset in custom recovery will not wipe SD context
Unlocking the bootloader and rebooting will wipe everything
Unlocking the bootloader and flashing a custom recovery then wipe cache and reboot will not wipe SD context
Sent from my Nexus 4
spaceman860 said:
Doing a factory reset in stock recovery will wipe everything
Doing a factory reset in custom recovery will not wipe SD context
Unlocking the bootloader and rebooting will wipe everything
Unlocking the bootloader and flashing a custom recovery then wipe cache and reboot will not wipe SD context
Sent from my Nexus 4
Click to expand...
Click to collapse
Thanks. Although.not really sure which one of these I can use to reset my unlock pin.
Sent from my Nexus 4 using xda premium
Just go to security settings and choose a different lock style !!! Unless you have forgot your pin ??
What recovery are you using ?
I have no issues doing.........
Go to settings and backup and reset option, choose the factory data reset.
Now this will wipe your user data and reset your ROM to how it was originally. This does NOT touch your emulated sdcard partition. Basically it resets the ROM and removes all user apps etc.
You can always use TB to back up all user apps 1st then just restore again after. ( obviously you will have to install TB again before you can restore but all data will remain on your " sdcard".
Hope this helps.
Mmmmm actually I am using twrp so maybe I got mistaken as I don't know how it handles on a stock recovery as it does boot into twrp briefly when I do this.
I've done this many times and never lost my sdcard files though.
Sent from my Nexus 4 using Tapatalk 4 Beta
Do you have an exchange account connected to your phone? Like an outlook email from work or something? A pw is required if you have that connected.
Sent from my Nexus 4 using xda app-developers app
Teo032 said:
Do you have an exchange account connected to your phone? Like an outlook email from work or something? A pw is required if you have that connected.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I have my other gmail synced on the stock email app. Uhm I'll try to delete my accounts but as you see in the last page. The picture I posted. "No Pin" is greyed out. Its odd. Never had this happen to me.
Sent from my Nexus 4 using xda premium
slymobi said:
Just go to security settings and choose a different lock style !!! Unless you have forgot your pin ??
What recovery are you using ?
I have no issues doing.........
Go to settings and backup and reset option, choose the factory data reset.
Now this will wipe your user data and reset your ROM to how it was originally. This does NOT touch your emulated sdcard partition. Basically it resets the ROM and removes all user apps etc.
You can always use TB to back up all user apps 1st then just restore again after. ( obviously you will have to install TB again before you can restore but all data will remain on your " sdcard".
Hope this helps.
Mmmmm actually I am using twrp so maybe I got mistaken as I don't know how it handles on a stock recovery as it does boot into twrp briefly when I do this.
I've done this many times and never lost my sdcard files though.
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I have CWM Touch Recovery. Never tried TWRP.
Sent from my Nexus 4 using xda premium
Well I'm not sure how the system handles a factory data reset with cwm but I know for sure that using the factory data reset from phone settings does not wipe your internal "SD card" when using twrp. Now be aware I'm not referring to any wipes from recovery,its the wipe from the phone settings in backup and reset.
Sent from my Nexus 4 using Tapatalk 4 Beta
slymobi said:
Well I'm not sure how the system handles a factory data reset with cwm but I know for sure that using the factory data reset from phone settings does not wipe your internal "SD card" when using twrp. Now be aware I'm not referring to any wipes from recovery,its the wipe from the phone settings in backup and reset.
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Okay thanks guys for all the help! I think this thread is done. I flashed TWRP recovery and I Factory Reset in there and it wiped everything that I needed. I got rid of the lock screen and I also found out that TWRP is a pretty amazing recovery. In the end I kept all my data. Just restored apps by Titanium BackUp. Thanks!:thumbup:
Sent from my Nexus 4 using xda premium

Correct way to wipe data from the Nexus?

I've just sold my Nexus 7. I sold it as is, rooted already. Now I just want to wipe my data and any apps or app data I've left on it. I've done this before but I always mix up the options and end up wiping everything off the tablet. I believe I've got TWRP on there. Which option is the best for me? Thanks for the help.
buffnutz1 said:
I've just sold my Nexus 7. I sold it as is, rooted already. Now I just want to wipe my data and any apps or app data I've left on it. I've done this before but I always mix up the options and end up wiping everything off the tablet. I believe I've got TWRP on there. Which option is the best for me? Thanks for the help.
Click to expand...
Click to collapse
Go to twrp and factory reset. (Wipe dalvik, data, cache, and android secure)
Sent from my Nexus 4 using XDA Premium 4 mobile app

Categories

Resources