Related
I know what happens when you do a factory reset/wipe, but what exactly happens if I only wipe Dalvik Cache? (I'm about to flash a ROM, don't want to do a complete factory reset/wipe, but wondering if I can still help "eliminate ghosts" by wiping Dalvik Cache.)
Bump, is this just like a crazy question or something?
What exactly does wiping Dalvik cache do?
trunkstar1 said:
Bump, is this just like a crazy question or something?
What exactly does wiping Dalvik cache do?
Click to expand...
Click to collapse
dalvik is a virtual machine in android operating system that runs applications, which is similar java vm. dalvik builds some sort of cache of applications (i wouldn't go into details) to run them faster in dalvik cache space. you can clear them out, and android will rebuild the cache on the next boot. and the initial boot will take longer than usual once you wiped the dalvik cache because android needs to rebuild it.
So it's something that you can safely wipe on occasion right, just to clear up any bugs?
trunkstar1 said:
So it's something that you can safely wipe on occasion right, just to clear up any bugs?
Click to expand...
Click to collapse
when you flash a custom rom, usually the rom automatically wipes out dalvik cache to remove all that junk from the previous rom.. you do not need to wipe it regularly unless you flash apps or any other system modifications on top of the existing rom via clockworkmod recovery very often
But is there any "harm" in doing it? Any consequences other than a longer reboot time?
trunkstar1 said:
But is there any "harm" in doing it? Any consequences other than a longer reboot time?
Click to expand...
Click to collapse
Not at all. Apps will just be a little sluggish for a bit.
Sent from my SGH-T959 using XDA App
Using Kies to goto 2.2, does that wipes Dalvik cache? Koz I went to 2.2 from kies mini, then ODIN'd a Voodoo kernel and i never wiped it manually...
so should I?
many thanks
You are trying to not factory reset but any rom you will find will have a system, data, data_data and cache wipe built into it. You can try finding a Rom you like and remove the wipes from the update_script but those wipes are put there on purpose. Kies will wipe everything too.
or use root explorer go in to system and find dalvik cache and delete files =>
sir can i ask a question?
jaetm83 said:
dalvik is a virtual machine in android operating system that runs applications, which is similar java vm. dalvik builds some sort of cache of applications (i wouldn't go into details) to run them faster in dalvik cache space. you can clear them out, and android will rebuild the cache on the next boot. and the initial boot will take longer than usual once you wiped the dalvik cache because android needs to rebuild it.
Click to expand...
Click to collapse
is it normal to boot so long when i accidentally wipe dalvik cache? because im afraid and thinking my phone was brick what can i do to turn it back normal? wait to boot the system?
avie14 said:
is it normal to boot so long when i accidentally wipe dalvik cache? because im afraid and thinking my phone was brick what can i do to turn it back normal? wait to boot the system?
Click to expand...
Click to collapse
Yes it is normal for it to take longer than a normal bootup. It is rebuilding the Dalvik that was just wiped. #nosorcery
trunkstar1 said:
I know what happens when you do a factory reset/wipe, but what exactly happens if I only wipe Dalvik Cache? (I'm about to flash a ROM, don't want to do a complete factory reset/wipe, but wondering if I can still help "eliminate ghosts" by wiping Dalvik Cache.)
Click to expand...
Click to collapse
Thank you for this question, thank you guys now I know that wiping dalvik cache is not that bad at all.
I recently flashed aokp carbon rom on my galaxy sl.
But the performance is weak. Is there any general settings for all aokp rom which will increase performance ? In the rom control option i go to scrolling cache if i need best scrolling what should i set it to
Force enable
Default enable
Default disable
or Force disable ?
thank you guys sorry i am noob
Default enable should do. If that still doesn't improve scrolling, try force enable. Just try the options for yourself and see, that's the best way. You need to give more details about your issue. Elaborate on the 'weak' performance. Also, did you wipe cache & dalvik cache before installing the ROM?
Sent from my Desire HD using xda premium
No i was on cm9 before so i did not wipe anything. i directly installled. should i wipe dalvik cache and cache , factory reset ?
now i am on aokp so can i reinstall it again after wiping cche and dalvik cache ? will it mprove the perfomace ?
Change the kernel
sorry but there is only one kernel for ics any other suggestion ?
Yes. You should always wipe dalvik cache and cache when installing a new ROM. Even if it's just a version update of an already installed ROM. It's always better to wipe to avoid usual FC problems. Dalvik cache mainly. The only thing is that your phone will take around 5-6 minutes to boot the first time after you wipe dalvik cache, because it's rebuilding the cache. After that it'll boot normally every other time until you wipe dalvik cache again.
CM9 and AOKP are two different ROMs so when changing between them you should do a full wipe i.e. wipe everything (system, data, cache, dalvik cache and .android_secure folder on the SD card). Otherwise you'll get a lot of FCs. If you do a full wipe all your apps will be gone so you might want to take a Titanium Backup of them or just set them up again when they re-download automatically on the new ROM. Make sure to not restore data of any system apps using Titanium Backup in the new ROM. Once you install the AOKP ROM, upgrading to a newer version won't need a full wipe but only dalvik cache and cache wipe.
About the kernel, just use the one that came with your ROM.
Sent from my Desire HD using xda premium
wiping cache/dalvik are a must when flashing any new kernels
I was getting out of space on my internal phone, so I decided to clear wipe cache and dalvik cache through CWM, but I find i save a lot of space BUT some apps stop working, maybe they are lost. So was does this actually do? Why are the apps there, but can't work? :crying:
Ok, after rebooting they are actually working again, i didn't even lost any data (progress on games) but I am really concerned what does this really do??
rolo143 said:
I was getting out of space on my internal phone, so I decided to clear wipe cache and dalvik cache through CWM, but I find i save a lot of space BUT some apps stop working, maybe they are lost. So was does this actually do? Why are the apps there, but can't work? :crying:
Ok, after rebooting they are actually working again, i didn't even lost any data (progress on games) but I am really concerned what does this really do??
Click to expand...
Click to collapse
http://en.wikipedia.org/wiki/Dalvik_(software)
When you reboot, Dalvik cache and Cache are re-created. So no space saved this way.
Feanor88 said:
http://en.wikipedia.org/wiki/Dalvik_(software)
When you reboot, Dalvik cache and Cache are re-created. So no space saved this way.
Click to expand...
Click to collapse
I was wondering what wiping the Dalvik cache did, too. I installed an inverted app and someone told me I needed to wipe the Dalvik cache in order for it to remain in place after a reboot, so I did that. Now my phone says "Optimizing apps..." It must rbe e-creating the cache.
As far as I know, when a rom boots up for the first time Dalvik goes through each & every apk's & extract the Dex & put it in the cache. So probably it is a location of all apks. If dalvik cache is not wiped after a new rom is installed,dalvik cache will skip because it founds the dexed cache files attach to the directory. The result is "Force close" issues.
So wiping dalvik cache can be done without any problem many times within the same rom & that's why is shows "optiming apps" after a dalvik cache wipe.
saqib nazm said:
As far as I know, when a rom boots up for the first time Dalvik goes through each & every apk's & extract the Dex & put it in the cache. So probably it is a location of all apks. If dalvik cache is not wiped after a new rom is installed,dalvik cache will skip because it founds the dexed cache files attach to the directory. The result is "Force close" issues.
So wiping dalvik cache can be done without any problem many times within the same rom & that's why is shows "optiming apps" after a dalvik cache wipe.
Click to expand...
Click to collapse
Thanks! That's in line with my suspicion, except I didn't know when I posted my question that an apk file was nothing but a zip file that contains a dex (Dalvik executable) and a bunch of other files. Your explanation makes sense. I also noticed that if I install an individual app from a zip file using CWM Recovery, then it clears the relevant part of the Dalvik cache for me. That doesn't happen when I install an apk file directly using Root Explorer.
guys one line question i am performing "Wipe cache and dalvik-cache" will my phone internal memory be deleted ? thanks a ton
deepankarbu said:
guys one line question i am performing "Wipe cache and dalvik-cache" will my phone internal memory be deleted ? thanks a ton
Click to expand...
Click to collapse
Nop, it will not
Sent from my SK17i using xda premium
Phone didn't boot after wiping Dalvik Cache
Hi Geeks
i have an Xperia Arc S modded with Cyanogenmod JellyBean 4.1.2 Cooked ROM
i had alot of memory issues as applications keep closing whenever system runs out of memory, it is always obvious in the DSP application with the walkman in addition to visualizations inside the walkman
i searched for a solution and some told me that wiping the dalvik cache might solve the problem, so i gave it a try and rebooted in CWM recovery mode "built inside ROM" , cleared the Dalvik cache , and the phone keeps displaying the Xperia Logo without any further progress, as if it's in somekinda loop !
any idea what to do next without wiping my Data ? thank you all
BR
AMR
Koptanov said:
Hi Geeks
i have an Xperia Arc S modded with Cyanogenmod JellyBean 4.1.2 Cooked ROM
i had alot of memory issues as applications keep closing whenever system runs out of memory, it is always obvious in the DSP application with the walkman in addition to visualizations inside the walkman
i searched for a solution and some told me that wiping the dalvik cache might solve the problem, so i gave it a try and rebooted in CWM recovery mode "built inside ROM" , cleared the Dalvik cache , and the phone keeps displaying the Xperia Logo without any further progress, as if it's in somekinda loop !
any idea what to do next without wiping my Data ? thank you all
BR
AMR
Click to expand...
Click to collapse
Are you sure you only wiped the dalvik?
Sent from Myushi
clears app cache
rolo143 said:
I was getting out of space on my internal phone, so I decided to clear wipe cache and dalvik cache through CWM, but I find i save a lot of space BUT some apps stop working, maybe they are lost. So was does this actually do? Why are the apps there, but can't work? :crying:
Ok, after rebooting they are actually working again, i didn't even lost any data (progress on games) but I am really concerned what does this really do??
Click to expand...
Click to collapse
it clears the app running cache stored in os.
absolutely ..
XperienceD said:
Are you sure you only wiped the dalvik?
Sent from Myushi
Click to expand...
Click to collapse
Yes sir it's only the dalvik cache, both ways this ROM was pretty heavy and i'm not satisfied with the reboot every 2 or 3 hours of use, i will install xperia ultimate HD ROM, they say it's pretty stable and has no problems, and it has the sound enhancements i needed in the Jellybean cooked ROM
thanks for your reply
alcatel 918n
XperienceD said:
Are you sure you only wiped the dalvik?
Sent from Myushi
Click to expand...
Click to collapse
My phone also has those options built-in. If you did the dalvik only it should get back to where you have the icons. BUT, if you did something else aside from the dalvik, my guess would be goodbye data and hello to phone repairs. Please research first before you do anything on your phone. Your phone and my phone have very powerful built-in tools. It could brick the phone. I hope you did not wipe data and flash.
help! my phone's boot taking too long
i wiped /cache and dalvik cache and format /cache. it's taking took long. been waiting for almost 1 hour.
Lucky Patcher Dalvik-cache
I am getting out of space msg when using Lucky Patcher.....apk will be patched on boot......it says to clear dalvik cache to save space.....is this a good idea(will I loose any data from game etc?) or this a issue with lucky patcher?
Clearing Dalvik
Feanor88 said:
When you reboot, Dalvik cache and Cache are re-created. So no space saved this way.
Click to expand...
Click to collapse
Um, that would involve the re- "optimization" process at each boot. Depending on the number of apps you have installed, this process can take an hour.
Simply put, the Dalvik cache is where a virtual machine program (like VMware Player, Workstation or Fusion or MSVM) called "Dalvik" stores information the applications on your device request it to. This storage is for the purpose of making app load times shorter, but because it's all low-level stuff, it has to be loaded prior to the AndroidOS frontend...Fortunately, this cache only needs to be rebuilt when a flag has been set indicating the need, which is set whenever the cache is cleared. Note the distinction between "loading" and "rebuilding" this cache. "Load" is synonymous with "read" and "rebuild" means "write." So time-wise it is the distinction in effort between reading a book and writing one.
Typically I only clear it for troubleshooting reasons; if something is not working. The latest Cyanogenmod has a major problem where the desktop data is liable to randomly corrupt.
Typically, the only solution is a Dalvik wipe in CM or whatever. If you have recently installed a large number of apps(over twenty)then it might be best to clear the cache via recovery at the next cold boot, especially if your device does weird stuff like getting hot, discharging while plugged in to the OEM charger, widgets crash spontaneously, wallpapers are replaced by defaults, etc....Some of these symptoms can also indicate a virus or malware infection,(especially on custom ROMs or rooted devices) so diagnosis is differential.
But essentially there is no harm in re-building the Dalvik cache, other than the time taken to do so.
Koptanov said:
Yes sir it's only the dalvik cache, both ways this ROM was pretty heavy and i'm not satisfied with the reboot every 2 or 3 hours of use, i will install xperia ultimate HD ROM, they say it's pretty stable and has no problems, and it has the sound enhancements i needed in the Jellybean cooked ROM
thanks for your reply
Click to expand...
Click to collapse
CM has this new MAJOR stability issue, it seems. The random crashes and reboots will soon combine(if they haven't already)with the deletion of your desktop customizations and your widgets will begin vanishing forever. Not even a full wipe and rebuild will bring them back.
Been using AOKP on Nexus 7 2013 for a month now. It is based on CM, but it is way more stable.....haven't needed to re-boot in two weeks! Uptime, baby!
UPDATE 04/05/2014: Been running without rebooting for over a month, now. AOKP is definitely WAY more stable than any other ROM I've used.
Dalvik explained
Saqib Nazm said:
As far as I know, when a rom boots up for the first time Dalvik goes through each & every apk's & extract the Dex & put it in the cache. So probably it is a location of all apks. If dalvik cache is not wiped after a new rom is installed,dalvik cache will skip because it founds the dexed cache files attach to the directory. The result is "Force close" issues.
So wiping dalvik cache can be done without any problem many times within the same rom & that's why is shows "optiming apps" after a dalvik cache wipe.
Click to expand...
Click to collapse
There is a full explanation of the dalvik cache on wikipedia.
The wiki entry fully explains dalvik cache and the integral part it plays in your android system. In very simple terms, it is a cache that allows the system to talk to the exe of a program without the need to load the cache on each and every start. The dalvik is is loaded once, and then never again (unless you wipe the dalvik cache, in which case, it is rebuilt upon reboot). There is no affect on any given program when the dalvik cache is wiped, other than starting slower the first time it is started after the wipe.
Related (I think) - Samsung Galaxy S5 running CM 12.1 latest nightly (6-14). I started on CM 12.0 nightlies in March or April and transitioned to 12.1 within a day or two acter it showed up. That was a relatively noticeable transition requiring new gapps and a factory reset as I recall. I read somewhere that wiping cache and dalvik cache was unnecessary between one 12.0 nightly to another and between one 12.1 nightly to another, so I typically have not performed the cache and dalvik wipe during nightly upgrades, of which I've probably done 30 or 40 since I started on 12.0. After each nightly update flash, when I ask TWRP to reboot the system, without wipes, all my 160 or so apps are optimized, taking some time, before the noot is compete. This morning out of curiosity, after the nee ROM was flashed, I chose the option in TWRP to wipe the cache and dalvik cache before I askefasked TWRP to reboot the system. The wipe process took at least as long to complete as a typical optimization, and when I rebooted, I still got the lengthy optimization. So I'm tbinking either there's no relationship berween app optimization and wiping the caches, or CM and/or TWRP automatically wipes the caches whether I do or not.
---------- Post added at 12:58 PM ---------- Previous post was at 12:54 PM ----------
Please forgive typos in my previous post - SwiftKey or something is making proofreading and editing difficult today.
Not the exact answer, but may interests u.
Koptanov said:
Hi Geeks
i have an Xperia Arc S modded with Cyanogenmod JellyBean 4.1.2 Cooked ROM
i had alot of memory issues as applications keep closing whenever system runs out of memory, it is always obvious in the DSP application with the walkman in addition to visualizations inside the walkman
AMR
Click to expand...
Click to collapse
Hi, I do not have the exact answer. But I wanted to share my own observation. When I wipe dalvik caches through CWM recovery, I find my phone taking a long time to finish booting every time. Sometimes I thought it would not boot up, I removed the battery and tried to swith on and my phone boots up. I do not know why it happens, may be I had installed a large no of apps.
I've got Nexus 5 with bootloader unlocked , after few weeks security patch arrived and after the phone switched off and showed error symbol and when I entered recovery mode it showed that error in system/bin.sh files need some help here
Hey guys I installed this ROM http://forum.xda-developers.com/showthread.php?t=2005845
But for some reason I dont have the Null bar under settings. Nor can I seem to find a way to open STweaks. It is installed under application settings, but I cannot find how to open it.
Any advice? I cannot post in the thread because I am a new user
Thank you in advance
I did full wipe, clear dalvik and all that. Format system, wipe cache, everything. Tried all settings. 5-6 reinstalls. Same result.
Any advice?
You can try superwipe zip.
It will wipe your internal SD for a super clean install.
Glebun said:
You can try superwipe zip.
It will wipe your internal SD for a super clean install.
Click to expand...
Click to collapse
I fixed it, my CWM Recovery was V5 something. Updated it, clean install, all works now
Awesome ROM btw
Hey guys,
I have had some issues with my current ROM. I want to change the ROM. I am looking to switch to OMEGA.
How would I do this, I currently have AROMA rom. Should I do a factory reset the just reboot into recovery mode and install that way? Or will just installing the ROM from zip work? Or if I do a factory reset do I need to root it again with Odin, or will I not need to root it?
Also for wiping the phone should I wipe my SD card? Or no?
Thank you I searched and found half answers for most of this.
You have to format /system partition and /data partition in order to get a clean ROM, otherwise you may run into some unforeseeable problems.
Don't have to wipe sdcard
Most ROM except stock are pre-rooted.
Sent from my GT-I9300 using xda premium
qtwrk said:
You have to format /system partition and /data partition in order to get a clean ROM, otherwise you may run into some unforeseeable problems.
Don't have to wipe sdcard
Most ROM except stock are pre-rooted.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Ok just to double check what your saying.
I should do a wipe using the built in android factory reset.
Then just install the ROM using the recovery boot.
I will not have to use ODIN or any other soft ware. Just factory reset and install rom.
AW: [Q] Switching ROM and wiping
I'd factory reset in recovery, wipe cache and dalvik, format system and then flash the new ROM from your external sdcard
Please report if that way worked for you
But be sure to backup your apps with titanium backup
|| Typed with my S4 Octa-Beast or my Note 10.1 ||
ch0ka said:
I'd factory reset in recovery, wipe cache and dalvik, format system and then flash the new ROM from your external sdcard
Please report if that way worked for you
But be sure to backup your apps with titanium backup
|| Typed with my S4 Octa-Beast or my Note 10.1 ||
Click to expand...
Click to collapse
Not to sound like a noob... but how do i wipe Cache and Dalvik? also what is dalvik?
Thank you, I will do it today hopefully.
Not sure which ROM I want to switch to. Any recommendations? I am thinking OMEGA.
morinr said:
Not to sound like a noob... but how do i wipe Cache and Dalvik? also what is dalvik?
Thank you, I will do it today hopefully.
Not sure which ROM I want to switch to. Any recommendations? I am thinking OMEGA.
Click to expand...
Click to collapse
He's talking about wiping in recovery.
Dalvik, is kinda Java virtual machine on android, it does concerns you...
About ROM, I suggest you try them out all, and then you will find your Mr.Right, or Ms.Right
Sent from my GT-I9300 using xda premium
morinr said:
Not to sound like a noob... but how do i wipe Cache and Dalvik? also what is dalvik?
Thank you, I will do it today hopefully.
Not sure which ROM I want to switch to. Any recommendations? I am thinking OMEGA.
Click to expand...
Click to collapse
1.boot into recovery, (make a backup , always be safe)
2.wipe data/factory rest
3.wipe cache partition
4.use volume rockers go into advanced , wipe dalvik cache , go back
5.go into mounts and storage , format/system (BE SURE YOU HAVE A ROM ON YOUR SD CARD), go back
6.Install zip from sd card , Choose zip from sd card , Choose rom and Click yes!
7
Nobody can tell you which rom is better .. All roms are amazing because of the work put into them try them out one by one.. you're not going to lose anything..
Ok cool. I installed OMEGA and I like that rom. I did a factory reset and wiped the Dalvik cache and cache. Will look around a bit more but so far so good....
however same issue with the phone. But now when the call ends it says process com.android.phone has stopped. Then i hit ok and phone is ok. It doesn't automatically restart then go really slow.
No idea about this, I searched however couldn't find a answer. Lots of phones and versions of android had this issue.
Any ideas would be great guys.
morinr said:
Ok cool. I installed OMEGA and I like that rom. I did a factory reset and wiped the Dalvik cache and cache. Will look around a bit more but so far so good....
however same issue with the phone. But now when the call ends it says process com.android.phone has stopped. Then i hit ok and phone is ok. It doesn't automatically restart then go really slow.
No idea about this, I searched however couldn't find a answer. Lots of phones and versions of android had this issue.
Any ideas would be great guys.
Click to expand...
Click to collapse
You need to go into mounts and storage in recovery and format system and data before you flash, as already explained
slaphead20 said:
You need to go into mounts and storage in recovery and format system and data before you flash, as already explained
Click to expand...
Click to collapse
Is that different from what I did?
I booted into recovery. Did a factory reset. Wiped Cache and the Dalvik Cache. Then I installed the rom, did I do this wrong?
morinr said:
Is that different from what I did?
I booted into recovery. Did a factory reset. Wiped Cache and the Dalvik Cache. Then I installed the rom, did I do this wrong?
Click to expand...
Click to collapse
Factory reset wipe data, but not system, you need to format system and data
slaphead20 said:
Factory reset wipe data, but not system, you need to format system and data
Click to expand...
Click to collapse
I just booted into recover did system format and data. However I still have the same issue. After phone call freezes for a second, vibrates then says com.android.phone has stopped working.
Follow exactly what I ve typed in the previous post... exactly that.. and which version of omega have you Downloaded
??
Hit thanks if I've helped
Sent from my GT-I9300 using xda app-developers app
why not you backup your current rom first then try to flash a new rom without wipe data. if you not facing any issue on the new rom, then it's ok.
if you facing any issue, you must flash again the new rom with wipe all data. if you not happy with both, then you restore back what you are backup before.:fingers-crossed:
galaxys3lover said:
Follow exactly what I ve typed in the previous post... exactly that.. and which version of omega have you Downloaded
??
Hit thanks if I've helped
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Yes I did. I factory reset. wiped cache and dalvik as well as formatting in the advanced options. I currently have Omega 44.2 installed. But I had the iphone app crashing with AROMA 30.1 and 30.4
Is there away to uninstall the phone app and then re install that cleanly?
I did this and still have the phone crashing issue.
Settings/apps/all/phone/wipe app data, likewise do same with contacts, reboot, see if that solves it
slaphead20 said:
Settings/apps/all/phone/wipe app data, likewise do same with contacts, reboot, see if that solves it
Click to expand...
Click to collapse
I clearned the cache, should I clear the whole app? If it uninstalls how do i re install the phone app?
morinr said:
I clearned the cache, should I clear the whole app? If it uninstalls how do i re install the phone app?
Click to expand...
Click to collapse
Lol....I didn't say wipe the cache,I didn't say uninstall it.....I said wipe data
slaphead20 said:
Lol....I didn't say wipe the cache,I didn't say uninstall it.....I said wipe data
Click to expand...
Click to collapse
There is no white data. only buttons available are force stop and clear data. If I press clear data it says all data will be deleted permanently including all files, settings accounts, databases. I assumed the files were the actual app.
I went to settings. Applciation manager and chose Phone.
......hit clear data then, do that for phone and contacts storage, the data bases get rebuilt the only thing you will have to set up again is which contacts to display and any ringtone options etc you may have chosen
---------- Post added at 08:05 AM ---------- Previous post was at 08:04 AM ----------
slaphead20 said:
......hit clear data then, do that for phone and contacts storage, the data bases get rebuilt the only thing you will have to set up again is which contacts to display and any ringtone options etc you may have chosen
Click to expand...
Click to collapse
Data is just that.....Data.....it is not the apk