dalvik cache - G1 Q&A, Help & Troubleshooting

ok so i searched dalvik cache and I cant find anything... the only thing I know about it is that it takes up space on your phone memory even though your apps are on the sd card... so how do you delete the dalvik cache?...I would need to do this regularly after it takes up a lot of space... I would prefer not to wipe.

dalvik cache is the the stuff that your apps store while you're running it and is pretty vital to the function of your phone. I suspect restarting your phone will clear it, though I have no idea as I use apps2sd and have no need to watch my internal memory. Sorry.

dalvik-cache contains uncompressed (consider an apk a neat lil zip file) versions of the dex files (the exe of dalvik) so that they run on your phone. You delete it, it'll just reindex them on next reboot.
Are you using an apps2sd where your apps are on the sd card or just installing from SD?

TheDudeOfLife said:
dalvik-cache contains uncompressed (consider an apk a neat lil zip file) versions of the dex files (the exe of dalvik) so that they run on your phone. You delete it, it'll just reindex them on next reboot.
Are you using an apps2sd where your apps are on the sd card or just installing from SD?
Click to expand...
Click to collapse
umm im using a hero ROM so i believe that my apps are on the sd...is it really worth it to bother deleting my dalvik cache or should I just leave it alone until it gets really big??

Noobyflasher said:
umm im using a hero ROM so i believe that my apps are on the sd...is it really worth it to bother deleting my dalvik cache or should I just leave it alone until it gets really big??
Click to expand...
Click to collapse
Leave it.... If things get buggy then you can rm -r it so the system could start fresh and rebuild anything the could have been damaged. As far as deleting it altogether - like Dude said- not going to happen, system will rebuild it, most likely the same size, may be few bytes off.
Look into your other chaches (browser, market, street, tunewiki, maps, whatever else you're using), this is where you can gain some memory back. Also consider nuking whatever you downloaded, or it came with the rom but you do not use it and have no intention of using it.
Good luck.

Related

Installation error Insufficient storage available

Is anyone else having issues with Market on the ADP 1.51 (CRB43) builds?
When I attempted to download an update to an existing app (GV) it downloads but when it tried to install "Installation error Insufficient storage available"
I have apps2sd and I've removed the stock ringtones from the build giving me only 89% of used space in /system directory and I have about 600mb free on my ext2 partition. Insufficient storage my a$$!
Anyone else have issues with this "Insufficient storage" error?
Do you have the cache etc all running off the SD? Apps is only one step, where it installs the apps to the SD. However unless the cache and so is moved, its like having firefox installed on one drive, but storing your browsing stuff on your main drive still. So youll run out of room unless its all on the SD.
Mysticales said:
Do you have the cache etc all running off the SD? Apps is only one step, where it installs the apps to the SD. However unless the cache and so is moved, its like having firefox installed on one drive, but storing your browsing stuff on your main drive still. So youll run out of room unless its all on the SD.
Click to expand...
Click to collapse
Yeah. Cache is also on SD. Just to be certain, I cleared the cache. Same issue.
I'm assuming your using the app to put things on the sd. I used lucids script to do it to mine. I wonder if something did not get linked over. Tried using a file manager to see what's on the internal?
Mysticales said:
I'm assuming your using the app to put things on the sd. I used lucids script to do it to mine. I wonder if something did not get linked over. Tried using a file manager to see what's on the internal?
Click to expand...
Click to collapse
After clearing the cache and discovering that it didn't work (just for the heck of it I also cleared the cache directory on SD) I tried a wipe and everything downloads again. I fastboot flash my data.img and I'm back to the same issues. Not sure what the problem is but I'm considering a wipe. I already backed everything up by backup pro. I just loathing the fact that Market will loose all the apps that I had installed already (they will all say FREE instead of INSTALLED or UPDATE AVAILABLE). Is there a file for market that marks what has been downloaded/installed?
The tip Id recommend. Try Lucids script for moving the data and cache before doing anything. Since if your ready to wipe, cant hurt to try and see if it does it.
Next do the pre tip I did personally. I used atrackdog, Hit menu and do export, it saves to a .txt file. Open that file and you will know which apps YOU had on there vs everything in the my downloads.
I wish I could help more as far as cache and why its not working fully. Ive had my share of struggles and always lucked out.. which is why I hope the 1st option works for you.
Mysticales said:
The tip Id recommend. Try Lucids script for moving the data and cache before doing anything. Since if your ready to wipe, cant hurt to try and see if it does it.
Next do the pre tip I did personally. I used atrackdog, Hit menu and do export, it saves to a .txt file. Open that file and you will know which apps YOU had on there vs everything in the my downloads.
I wish I could help more as far as cache and why its not working fully. Ive had my share of struggles and always lucked out.. which is why I hope the 1st option works for you.
Click to expand...
Click to collapse
Here is the answer!! i have the same problem, i tried to get out the sd card, and it worked(app installs succcesfully)!!
THE PROBLEM IS: EXT2 PARTITION (android do that.. wrong) the ext partition was causing the problem in the installation
1. download minitool partition wizard(or use a working partition tool)!
2. in recovery(volume down and boot phone into recovery) a, go into usb mode(mount and storage/usb mode) (if you have old recovery, download the 4.0...... i cant remember but the newest what you can find)
you have seen 2 partition and its crap!
3. creat 1 partition FAT32 PRIMARY! and format the SD card! (with all storage) this is all you need on your droid!!!(and your music, pictures and apps too)
4. after that, take rom on the SD and install it.
AND APP INSTALLATIoN WORKS!
Not the same phone but for what it's worth this does not appear to be hardware specific. This problem for me was caused by the Google app sync. As soon as it got too many apps in the install queue, it breaks and thinks the drive is full. I was able to fix it by going into recovery and clearing the cache again on my LG P999.

Clear Davlik-cache??

I am running a rom that stores Davlik on the device. Is it possible to clear the cache if it gets mighty large?
(I'm sure its possible, "How do I do it?" is probably the correct question)
Alt+W from recovery console.
prettyboy85712 said:
Alt+W from recovery console.
Click to expand...
Click to collapse
Won't this also clear out your data?
glock30 said:
Won't this also clear out your data?
Click to expand...
Click to collapse
not if you open up a command prompt on your PC and type "format c:" first
(hint: do do that)
prettyboy85712 said:
Alt+W from recovery console.
Click to expand...
Click to collapse
Nice try.
If you have one of the fancier recovery images you can go to console from there and just delete it from the command line. Alternatively if you have a linux install, pull the SD, put it in a card reader, mount it in Linux then delete it there.
If you have one of the fancier recovery images you can go to console from there and just delete it from the command line. Alternatively if you have a linux install, pull the SD, put it in a card reader, mount it in Linux then delete it there.
bittermormon said:
Nice try.
Click to expand...
Click to collapse
Just a joke. Seriously the browser takes up a majority of the cache. Just clear it.
prettyboy85712 said:
Just a joke. Seriously the browser takes up a majority of the cache. Just clear it.
Click to expand...
Click to collapse
Dalvik cache is not the same as application cache. Dalvik cache contains the optimized class files for the applications, not data.
JanetPanic said:
Dalvik cache is not the same as application cache. Dalvik cache contains the optimized class files for the applications, not data.
Click to expand...
Click to collapse
Thanks for the clarification. I did not know that.
JanetPanic said:
If you have one of the fancier recovery images you can go to console from there and just delete it from the command line. Alternatively if you have a linux install, pull the SD, put it in a card reader, mount it in Linux then delete it there.
Click to expand...
Click to collapse
so to clarify, are you recommending doing a
Code:
"rm *"
in /data/dalvik-cache?
bittermormon said:
so to clarify, are you recommending doing a
Code:
"rm *"
in /data/dalvik-cache?
Click to expand...
Click to collapse
I do this after every ROM upgrade... I have added it to Gscript... Make sure you reboot afterwards so the system can rebuild the files...
Vermithrax
Can someone explain what davlik cache is? It was my understanding that they were essentially uncompressed apk's, if that was the case even if you had A2SD and DC on internal the internal memory would eventually fill up anyway. Or are the cache files only created when an app is opened and deleted afterwords or when the phone is shut down? Some clarification would be nice
AdrianK said:
Can someone explain what davlik cache is? It was my understanding that they were essentially uncompressed apk's, if that was the case even if you had A2SD and DC on internal the internal memory would eventually fill up anyway. Or are the cache files only created when an app is opened and deleted afterwords or when the phone is shut down? Some clarification would be nice
Click to expand...
Click to collapse
just think of them as optimization files
the reason it takes forever on first boot after flashing a rom is because of dex opt, which is basically building the davlik cache if i understand it correctly (correct me if im wrong someone )
B-man007 said:
just think of them as optimization files
the reason it takes forever on first boot after flashing a rom is because of dex opt, which is basically building the davlik cache if i understand it correctly (correct me if im wrong someone )
Click to expand...
Click to collapse
They seem pretty big though, almost the same size as the apk's. Wont they eventually fill up the internal space even if we have A2SD?
AdrianK said:
They seem pretty big though, almost the same size as the apk's. Wont they eventually fill up the internal space even if we have A2SD?
Click to expand...
Click to collapse
well i have about 130 apps (some of which are 14mb)
I still have ~50mb of free space. i think cyan's mod moves davlik-cache to the sd card
in regards to not using apps2sd, isn't the data folder its own partition? (i remember reading about the resizing of the partitions that haykuro's SPL did) if so, the internal mem free would show whats on the system partition.
[i am running on 2 hours on sleep and 5 hours into my 15hour shift for today.....so i cant think straight and i could be wrong)

[Q] Changed SD, cache left on phone

Hi people,
I have a Nexus One with Cyanogenmod 7, and I recently got an error saying that the SD card is blank or has f*cked filesystem (Sandisk SDHC 8GB). I managed to format the motherf*cker but now I still have cache left on the phone from the apps I had on my SD card.
On phone, with only some basic apps.
Available : 31.98 MB
Total Space: 196 MB
So how can I clear that cache, or leftovers from the apps I had on the SD ?
Thank's in advance.
Well, any of the apps that you had moved to the sdcard will still require removing from your phone. Using Froyo's app2sd moves only a portion of the app to the sdcard, so parts of it still remain along with the dalvik cache and the data for that app. So go into Settings -> Applications -> Manage and remove the apps that you no longer want (or were originally stored on the sdcard).
Oh, you're right, I found the apps that were on the SD and I can delete them from there. It's kinda silly, I've tried all sorts of different things but I didn't look in that section.
Thanks alot mate !
No problem. Glad you got it working.
I uninstalled everything that had leftovers on the phone but that only gave me about 12 mb space on the phone, so now I have 45 mb free out of 192. Is this normal ?
Thank you.
Were you running any app2sdext or just using the Froyo method of putting apps on there?
If you run
Code:
su
cd /data
du -hd 1
It will show you the size of each folder. If you go into those folders and run that command again, it will show you the sizes of those as well. If you change the command slightly to
Code:
du -hd 1 | grep M
It will only show you things that have a capital M in it (which is what is used to designate MB, so it will weed out some of the smaller folders).
This might give you an idea of what is taking up your space. I assume you have already sorted your apps by size in Settings -> Applications -> Manage?
I was using the App2SD free app from the market.
I ran the commands you said and this is what I've got (only high values here) :
31.1M ./data
94.6M ./dalvik-cache
28.7M ./app
Sent from my Nexus One using XDA Premium App
I would wipe your dalvik cache (can be done in the advanced section of recovery). You might be able to manually do it yourself, but it is easier in the recovery). There are probably caches from previous programs that haven't been erased. Android will regenerate any caches that it needs when it boots back up.
Seems like wiping dalvik's cache did the trick, now I've got over 100mb free on the phone.
Thank you very much brother.
If you are in need of more space on your phone, I can highly recommend using an app2sdext option. This can make the phone think it has much more internal memory. I am using a 1GB partition on my sdcard to store all my apps and dalvik cache. I use S2E which is an extremely easy app that is on the market. All you have to do is partition your sdcard (which does require it to be wiped again) and install this app. Then you just check what you want moved over to this new partition, the phone will reboot, and you will now have space to have everything installed that you want.

[q] help! Can't clear phone data

Ok, long story short, I have 113MB of 'system data' in my /datadata folder (66% full), and I want it gone.
But I can't get rid of it... I've tried a full clean install, I've tried manually formatting /datadata from CWM, and I've also tried formatting boot, cache, data, datadata, and system from CWM followed by a fresh install (Kang 12/17).
My wife has the same phone and ROM and she only has 26% full in /datadata. I can't - for the life of me - figure out how to completely clean /datadata.
One thing I noticed in terminal emulator is that the data in /data and /datadata is about equal to what is listed in /system. However, formatting /system did not clear it out.
Please help as this is driving me insane!
Isn't datadata based on your apps? Like dalvik? I think ur wife just has less apps.
mbc663 said:
Isn't datadata based on your apps? Like dalvik? I think ur wife just has less apps.
Click to expand...
Click to collapse
I thought so to, but even with no apps (nothing but what comes with the ROM) I have 3x what she has... and she has what comes with the ROM plus all her other apps.
If it does have to do exclusively with the apps, I'm more than willing to do everything step by step to figure out which app(s) cause my issue, but in order to do that I need to be able to clear the folder of everything except what true system data is necessary and start from square 1.
/datadata is apps settings and data. A little more info might help...
b-eock said:
/datadata is apps settings and data. A little more info might help...
Click to expand...
Click to collapse
What kind of info do you need, and I'll try and supply it. I'm trying to do a clean install so that all of those app settings and data are starting from scratch. Factory resets didn't do it, formatting the folders through CWM didn't do it...
I must be missing something... but I can't figure out what it is.
Some basic background:
Most recently on the 12/17 Kang (CM7.2 RC0) with the glitch v13 (2.6.35.13) kernel and Gapps 08/28
For the just completed testing I only flashed Gapps (08/28) and the 12/17 Kang so I could see if anything I did worked on clearing /datadata.
Other than that, the only modification I've done to my phone is the modem is KG3 i9000.
Have u tried Titanium Backup Pro app ??
4-2ndtwin said:
Have u tried Titanium Backup Pro app ??
Click to expand...
Click to collapse
I haven't... I have the free version currently. Would the pro version do all of this stuff?
The free version should do for deleting data and removing apps.
Sent by XDA Premium App
I'll go out out on a limb here but try backing up your sd card and formatting it?
mbc663 said:
I'll go out out on a limb here but try backing up your sd card and formatting it?
Click to expand...
Click to collapse
I had thought of that too... once formatted and I reinstall the ROM and stuff, is it easy enough to just copy those folders back on the phone? That was the one thing I was worried about... and thus I hadn't tried yet.
Formatting always makes me nervous
Are you encountering any issues with it being that full? Or is this just to satisfy your ocd?
theyurtingyeti said:
I had thought of that too... once formatted and I reinstall the ROM and stuff, is it easy enough to just copy those folders back on the phone? That was the one thing I was worried about... and thus I hadn't tried yet.
Formatting always makes me nervous
Click to expand...
Click to collapse
As simple as dragging and dropping files. Also nice to start fresh every once in a while to clear out junk from old apps.
I'm getting ready to format my SDcard and start all over... but if I format my SD card, I'll no longer have my ROM zips there to flash. I put the ROMs on my external SD card (emmc), but in CWM I can't mount emmc to make sure they are there to flash when I format my SDCard...
How do I get my ROM flashed again once I format my SD card?
EDIT:
Doing more research it appears that I should be able to format my SD card w/o losing my ROM as long as I leave my boot and system folders alone.
So, if I format /data, /datadata, and /sdcard I should be able to reboot and see if it worked
studacris said:
Are you encountering any issues with it being that full? Or is this just to satisfy your ocd?
Click to expand...
Click to collapse
I am encountering issues with it being that full. I have like 70 apps with approx 38MB of data taken up... combined with the large amount of 'system data' in the /datadata partition I'm running into the issues when that folder gets to 90% capacity.
It's at the point that I can't install new apps that save any data at all or I will have to constantly shuffle which apps can save their data. Doing research I found that the 172MB cap shouldn't be an issue unless you are hording apps... I have a small number of apps with a small amount of data, so things should be better
Thanks for all the suggestions...
But so far nothing has worked.
I formatted the SD card along with data and datadata and rebooted the phone.
My /datadata folder was still listed at 66% full. So formatting nearly everything still couldn't clear this folder.
I'm still boggled why the other captivate started with 8MB system data and I start with 113MB, both on a clean install...
Perhaps my only hope is to clear stuff out again and flash ICS and hope that something is different enough that this 'problem' goes away...
An additional thought
Would I be able to delete the /datadata folder through Root Explorer, reboot into recovery and reflash the ROM?
I would assume the ROM will repartition the phone correctly. System data can't exist in a folder that doesn't exist - right?

Whats the best antivirus or cleaner to 5SPlus ?

I want an antivirus or cleaner, to wipe memory (cache, images, trash), but not stay in 2nd plane.
Is there any ?
Check Google's Files Go app.
sd maid and Google’s files go are the only good cleaners.
antivirus apps don’t do crap for your phone.
I only clean cache in settings and 1 once for month in recovery wipe cache
and .thumbnails in file menager
Honestly, Android has gotten pretty good at self maintenance - If you just download from the Playstore, like a good boy or girl, you won't need antivirus. I have used SD Maid also, but honestly, clear your cache under Storage when you get about 2 -3 GBs in, or when apps start to run laggy and you'll be fine.
The days of needing all of the excess stuff like cleaners, antivirus, and task managers are pretty close to over, unless you're installing off grid and have gigs of cached files.
Adi5 said:
I only clean cache in settings and 1 once for month in recovery wipe cache
and .thumbnails in file menager
Click to expand...
Click to collapse
My recovery is Stock. Not TWRP yet.
joaonds said:
My recovery is Stock. Not TWRP yet.
Click to expand...
Click to collapse
Stock recovery Also have THIS
I have locked bootloader and stock recovery
Sent from my Moto G5S Plus using XDA Labs

Categories

Resources