What is the proper sop to flash a new rom and kernel what should I be wiping? Thanks
Sent from my Galaxy Nexus using Tapatalk
For best results always do a full wipe in recovery (wipe data, cache and dalvik cache) then flash the ROM or kernel. This is really important if you are changing from one ROM to another. Updating one ROM to a new version of the same ROM does not require any wiping but sometimes the ROM developer recommends a full wipe.
Dalvik cache wipes are also optional but important if going one kerenl to a completely different one.
samizad said:
For best results always do a full wipe in recovery (wipe data, cache and dalvik cache) then flash the ROM or kernel. This is really important if you are changing from one ROM to another. Updating one ROM to a new version of the same ROM does not require any wiping but sometimes the ROM developer recommends a full wipe.
Dalvik cache wipes are also optional but important if going one kerenl to a completely different one.
Click to expand...
Click to collapse
If I may, the marked text above is misleading; no need whatsoever to be wiping data before flashing a kernel.
Vangelis13 said:
If I may, the marked text above is misleading; no need whatsoever to be wiping data before flashing a kernel.
Click to expand...
Click to collapse
actually, to avoid funny weird things and numerous user inflicted problems..
I would almost enforce wipe so ppl can post proper bug reports..
s2d4 said:
actually, to avoid funny weird things and numerous user inflicted problems..
I would almost enforce wipe so ppl can post proper bug reports..
Click to expand...
Click to collapse
Factory reset for a kernel? Nah, come on. If you're flashing a totally different kernel than the one you have, yes, wipe cache & dalvik. But at most that.
Vangelis13 said:
Factory reset for a kernel? Nah, come on. If you're flashing a totally different kernel than the one you have, yes, wipe cache & dalvik. But at most that.
Click to expand...
Click to collapse
o, i was just following what he way saying with sentiments..
yes, kernel isn't required but depending on the kernel dev, some do leave boot up scripts behind though and not just init.d scripts from past experiences.
Related
not sure if i worded this correctly but basically what im getting at is say im flashing a new rom i know i would have to do a full wipe.now if im flashing a kernel it would just be a cache and dalvik wipe anything missing please help me get informed as to the wiping procedure for different files
djnarcotics said:
not sure if i worded this correctly but basically what im getting at is say im flashing a new rom i know i would have to do a full wipe.now if im flashing a kernel it would just be a cache and dalvik wipe anything missing please help me get informed as to the wiping procedure for different files
Click to expand...
Click to collapse
nope your spot on. when flashing rom wipe it all or run caulkins format all. If flashing kernel wipe cache and dalvik and your good to go!
EDIT: BTW always nandroid backup first
What is the benefit of wiping cache and dalvik before flashing a kernel?
DarkManX4lf said:
What is the benefit of wiping cache and dalvik before flashing a kernel?
Click to expand...
Click to collapse
Well, basically the cache and dalvik cache are used to hold optimizations for applications and components of the operating system. Building these caches then speeds up the system for later uses.
By clearing the cache and dalvik, you are allowing the OS to re-perform these optimizations when you make changes to the critical components of the OS. If you did not do that, then updates to a rom or kernel may conflict with previous files in the cache.
Kinda like how a browser caches in a web page but if the website changes and the cache is not updated, you may still see the old parts of the website instead of the new.
hope that makes sense
DarkManX4lf said:
What is the benefit of wiping cache and dalvik before flashing a kernel?
Click to expand...
Click to collapse
Wadester answers that question I believe. Plus Devs say to do it lol
Wadester via androidforums said:
It's my understand the Dalvik cache is a place where the Android OS re-compiles the executable programs the first time to optimize them. It only needs to do it once which explains the "cache" part -- unless you make a major change like replace the kernel. If you do that, you want to manually clear the Dalvik cache to force Android to recompile the apps for the the new kernel.
I also believe the main data Cache is used by the Android OS at runtime to write temporary files for specific reasons. You want to clear this out when you try a new ROM so it doesn't re-used that cached data.
Manually clearning both caches out allows the new ROM to be installed in a "cleaner" environment.
FYI - there is also a Battery "cache" of sorts where the OS keeps battery statistics. You want to clear this every once in a while -- especially if you're experiencing fast battery drains or change batteries.
Click to expand...
Click to collapse
ok so how come certain files like themed markets require wiping and some themed keyboards dont ?
bump............
When you name an OS after food you always have the risk of marshmallow fluff. lol
All the answers are correct. Just add the fact that optizations are based on things like address resolutions ( @symlinks) . So if you don't rebuild the optimized areas you'll get null or void pointers. Usually resulting in address exceptions and stack issues. WTF dynamic assignments place responsibilities on the OS which android due to size and speed constraints places on the dev.
SO kiss : if you change where software resides, then you got to change the pointers to it. Always wipe Dalvic and cache when flashing kernels and anything which alters those areas.
Unpack your zips and look inside to see what gets changed and base your decisions on that.
Sorry for the Noob question guys, but I am a noob and still haven't flashed my first ROM yet. I am rooted so that's a start, and thanks to this forum the steps to root your device were simple and easy to follow.
I have been researching the different ROM's available for the T989 and the instructions on all of the ROM's say the same thing:
1. Download ROM and place it on your sdcard
2. Boot into clockwork recovery
3. Wipe data then wipe cache
4. Flash ROM
5. Wipe Dalvik then fix permissions
How do you wipe the cache, wipe dalvik and fix permissions? Thanks.
Under the main menu of recovery;
Option 3 should be wipe data
Option 4 should be wipe cache partition
To wipe the dalvik and fix permissions;
this is found under the advanced option in the main menu.
click that and the dalvik is option 2 and permissions is option 8.
Hope that helps.
MRpeabodyia said:
Under the main menu of recovery;
Option 3 should be wipe data
Option 4 should be wipe cache partition
To wipe the dalvik and fix permissions;
this is found under the advanced option in the main menu.
click that and the dalvik is option 2 and permissions is option 8.
Hope that helps.
Click to expand...
Click to collapse
That helps a lot actually. Thank you.
Typically are all ROMs installed in the same manner/order? Meaning wipe data, wipe cache, wipe dalvik, fix permissions and then flash ROM? Or does it depend on what ROM you are installing as to the order in which you perform these tasks?
To be honest I don't flash a lot of roms, but mostly read a lot. That is how I have done it in the past. I would never say anything is exactly the same for all roms. It would depend on whether or not you are flashing a new version of a rom, ie Eaglesblood 1.5 to eaglesblood 1.6, or putting an entirely new rom on, ie eaglesblood 1.5 to Juggernaut.
My advice is to read everything for the rom you are going to try twice, maybe even three times. You should do exactly what the dev says and you should be good to go.
Don't rush into flashing a new rom weekly until you've read quite a bit.
MRpeabodyia said:
To be honest I don't flash a lot of roms, but mostly read a lot. That is how I have done it in the past. I would never say anything is exactly the same for all roms. It would depend on whether or not you are flashing a new version of a rom, ie Eaglesblood 1.5 to eaglesblood 1.6, or putting an entirely new rom on, ie eaglesblood 1.5 to Juggernaut.
My advice is to read everything for the rom you are going to try twice, maybe even three times. You should do exactly what the dev says and you should be good to go.
Don't rush into flashing a new rom weekly until you've read quite a bit.
Click to expand...
Click to collapse
Thanks, I think I will research the ROM's currently available and choose the one that best suits my needs and stick with that for the time being. If something new or more interesting comes up I will upgrade.
Thank you again for your informative responses. It has been a big help.
I want to update my Unofficial CM10 +3.x Kernel to the latest update from Hashcode.
UNOFFICIAL CM10 + 3.x Kernel for Kindle Fire [09/16 CHARGING+]
When you do an update like this, do you wipe everything like I did when I first flashed the ROM? I mean, when I installed, I wiped system, factory reset, cache and dalvik cache. Then I flashed the ROM and then I flashed gapps.
So now I just want to update the OS, what do I need to wipe? And will I need to flash gapps again?
CAn't ask this in the development thread 'cause my n00b hat it still too shiney.
Thanks!
A question like this doesn't belong in the development thread because it isn't development related.
If you're going from one ROM to a different one, you need to wipe System and Factory Reset (data and cache).
If the ROM is simply an update of an existing ROM, generally all you need to wipe is data and cache. There are always exceptions to this so it's always a good idea to make a backup in case things turn sour.
After installation of the ROM you have the option to wipe cache and dalvik. It isn't required but not wiping them has been known to cause some bugginess.
soupmagnet said:
A question like this doesn't belong in the development thread because it isn't development related.
If you're going from one ROM to a different one, you need to wipe System and Factory Reset (data and cache).
If the ROM is simply an update of an existing ROM, generally all you need to wipe is data and cache. There are always exceptions to this so it's always a good idea to make a backup in case things turn sour.
After installation of the ROM you have the option to wipe cache and dalvik. It isn't required but not wiping them has been known to cause some bugginess.
Click to expand...
Click to collapse
Thank you once again, soupmagnet. Yeah this is just an update to my current ROM. So .... I won't need to flash gapps again?
I'm slowly figuring this stuff out. hehehe... When I was 30 I picked this stuff up quick. Turning 60 on Thursday and stuff tends to need a little more pondering lately. hahaha
Anywho.... thanks
Oh, yeah. You need to flash Gapps if you wipe system.
soupmagnet said:
Oh, yeah. You need to flash Gapps if you wipe system.
Click to expand...
Click to collapse
OK, see, now you're messin' with the old man here... hehehe
On one hand I'm hearing if I am only updating my current ROM, I just wipe data and cache.
Then you tell me I have to flash gapps if I wipe System.
But prior you said I only need to wipe system if I'm going from one ROM to a different ROM.
So.... I'm just updating my current ROM. I wipe data and cache, flash the updated ROM, wipe dalvik.... done...
no flash gapps, right?
I need to look at TWRP again to see exactly how it presents the choices. Don't be hatin' on the old guy for bein' dumb now.
OK, booted to TWRP. When I select Wipe my choices are : Cache, Dalvik Cache, Factory Reset, System and then External Storage. So... in your first answer to me when you said to go to a different ROM I should wipe "System and Factory Reset (data and cache)" it appears you are telling me that "System and Factory Reset" is another way of referring to "data and cache". Is that correct?
Gapps go in the /system/app folder so if you wipe the system partition, Gapps will go along with it.
soupmagnet said:
Gapps go in the /system/app folder so if you wipe the system partition, Gapps will go along with it.
Click to expand...
Click to collapse
GAaaahhh..... I just wiped System and watched as it processed /system
and then I wiped Factory Reset and watched as it processed /data and /cache
So I guess that answers my confusion.
I been having this issue every few hours and its pissng me off it reboots the soft key and wallpaper
I use Franco kernel with paranoid android
It happens at random ....any help?
Try factory resetting if you dirty flashed
Will the next nexus have a longer screen?
what's dirty flashing?
Dirty flashing is to flash a ROM w/o wiping cache/dalvick.
You could try and uninstall Systemui with ADB, then push the original Systemui.apk from the ROM zip to system/app
You probably dirty flashed, factory resetting may fix your problem, it usually does.
Will the next nexus have a longer screen?
wrong, dirty flashing is when you don't wipe data/factory reset, which by cwm standarts, already wipes cache.
and fyi, wiping caches is not needed, since each rom is hash signed, and so are cache/dalvik cache, which means everytime you flash a new rom, it has to rebuild caches, since hash signatures don't match.
@OP, read efrant's android/nexus 101, then comeback and give us dmesg and logcat, or it didn't happen.
most likely a rom problem (framework). why didn't you post at PA's thread? wipe data, reflash the rom, no franco kernel this time, if it still happens report it on the thread. simple.
// rant
cant you just read and learn how people do it? why do people go and flash everything they think need?
sent from my i9250
bk201doesntexist said:
wrong, dirty flashing is when you don't wipe data/factory reset, which by cwm standarts, already wipes cache.
and fyi, wiping caches is not needed, since each rom is hash signed, and so are cache/dalvik cache, which means everytime you flash a new rom, it has to rebuild caches, since hash signatures don't match.
@OP, read efrant's android/nexus 101, then comeback and give us dmesg and logcat, or it didn't happen.
most likely a rom problem (framework). why didn't you post at PA's thread? wipe data, reflash the rom, no franco kernel this time, if it still happens report it on the thread. simple.
// rant
cant you just read and learn how people do it? why do people go and flash everything they think need?
sent from my i9250
Click to expand...
Click to collapse
Ahh, excuse me. I was thinking of data wipe when I wrote that, but it never made it into the post.
CDeviant said:
Ahh, excuse me. I was thinking of data wipe when I wrote that, but it never made it into the post.
Click to expand...
Click to collapse
no need to apologize man. back on topic guys.
sent from my i9250
well i read a few threads and i reflashed the rom again this time i full wied , wiped dalvik , cache then flashed the rom and wiped , dalvik , cache after flashing but this error still happens
Do you use any custom nav key or mods that edits the SystemUI.apk? I had a headache because of that once.
kyokeun1234 said:
Do you use any custom nav key or mods that edits the SystemUI.apk? I had a headache because of that once.
Click to expand...
Click to collapse
nope i only flashed
PA
franco kernel
some beats mod thingy
this error pops up every hour / now and then it's very random and it closes the notification , softkeys and wallapaper for like 10seconds then they'll recover ...my clock ain't working right too...but nevermind
tohno said:
well i read a few threads and i reflashed the rom again this time i full wied , wiped dalvik , cache then flashed the rom and wiped , dalvik , cache after flashing but this error still happens
Click to expand...
Click to collapse
what did i say?
bk201doesntexist said:
@OP, read efrant's android/nexus 101, then comeback and give us dmesg and logcat, or it didn't happen.
most likely a rom problem (framework). why didn't you post at PA's thread? wipe data, reflash the rom, no franco kernel this time, if it still happens report it on the thread. simple.
Click to expand...
Click to collapse
wipe cache and dalwik cache... usually fixes things or else reflash the rom without wiping data. may be system files are corrupted
Just looking for a noob clarification. I am clear that when you flash a new ROM one should do a super wipe or with TWRP factory reset, system wipe (and I guess internal memory wipe) and afterwards cache wipe and davlik cache wipe, and fix permissions.
But my question is if one is applying a patch, like the agps patch, or some rotation patch, customized keyboard, and the like, does one also need to do all the post-wiping and permission fix? And more precisely, is it safe to install several zips at once, or should one install wipe, let it sit for 10 minutes, and repeat for each patch installation?
Thanks.
Superwipe will clear your ROM, so you probably shouldn't do that after the GPS patch.
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
No you don't have to do a full wipe for a patch installation ...you only do it for Roms but sometimes there are patches which make you wipe data for specific apps(the one the patch changed )but if the dev didn't say anything you don't wipe
Sent from my HTC One V using xda premium
Usually when you go from one ROM to another you want to clear cache, dalvik-cache, clear data (factory reset). This will give you a fresh new slate. While a lot of ROM suggest the same process, you really need to read each of their documentation. then read 3x more. The one time that you don't may be an expensive lesson if you are unlucky. For most patches or radio flashes you don't need to do anything. Again read the documentation and then reread 3x more. Always do a nandroid backup.
for me, everytime i flash something...i would always wipe cache and dalvik. it sometimes remove unwanted errors.
ClaireH said:
for me, everytime i flash something...i would always wipe cache and dalvik. it sometimes remove unwanted errors.
Click to expand...
Click to collapse
Same here, plus a fix permissions for good measure.
TDJ put out a cache only wipe script as well. If you are using CWM you can use those. No need to on TWRP.
rahilkalim said:
Same here, plus a fix permissions for good measure.
TDJ put out a cache only wipe script as well. If you are using CWM you can use those. No need to on TWRP.
Click to expand...
Click to collapse
I like Derek's cache wipe because it does cache, dalvik, and fixes permission all in one swipe