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)
Related
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.
After having apps working fine on my phone for a while now... a lot of the apps on my g1, once started, make me force close them.. apps include: anything that uses the accelerometer [except iliter?], lock 2.0, ringers extended.. and a bunch of other ones. I dont think the apps are corrupt considering that they have worked previousally and just started not working. Could the ext2 partition on my sd be full? I set the partition to 700mb and i only have about 20 apps or less.
Maybe somebody could advise on what this might be.. thanks!
Also, every time i turn my phone on i get process com.htc.calender stopped unexpectedly and asks a force close. it asks me to f.close it like 3 times when i first turn on the phone. YES I DID WIPE BEFORE FLASHING THIS ROM. Is there a way to just get rid of this process entirely? becuase after i force close if i go to calander in the menu it works.
what rom are you currently using? what was the rom you used before flashing to your current rom? did you try deleting your dalvik-cache? what about running fix_permissions?
I know when I went from a hero rom to cupcake, I had those same issues so if that is the same problem than you are gonna have to format your ext partion and reload your files, I know if you search the forums though there is a command that you enter in the terminal to just delete the files doing it to you
if you went from a hero rom to a cupcake rom then you need to go into the recovery console and type
Code:
mount /system
rm /system/sd/app_s/*
rm /system/sd/dalvik-cache/*
if that still does not fix it then you will need to just use
Code:
mount /system
rm /system/sd/*
david1171 said:
what rom are you currently using? what was the rom you used before flashing to your current rom? did you try deleting your dalvik-cache? what about running fix_permissions?
Click to expand...
Click to collapse
Running Cyan 4.02 + 1.4 [before this was running JACHero] and no i didnt delete my dalvik-cache??? <--whats that?
It's where your system wipes anything, just type in the codes that were posted and you will be alright, hero leaves files on your ext partion that need to be removed because they do not work with the non hero framework, the code that was post will remove those files, you must type them in the recovery console and not terminal emu
gridlock32404 said:
It's where your system wipes anything, just type in the codes that were posted and you will be alright, hero leaves files on your ext partion that need to be removed because they do not work with the non hero framework, the code that was post will remove those files, you must type them in the recovery console and not terminal emu
Click to expand...
Click to collapse
Will give that a try! thx.
Is that going to delete any of my apps?
Also-- is there a way to confirm that my apps are being automatically installed on my SD?
It will not delete any of your apps just the left over hero junk. To conform just go into manage apps under settings and check the space that is free internal and see how much is used of your ext
gridlock32404 said:
It will not delete any of your apps just the left over hero junk. To conform just go into manage apps under settings and check the space that is free internal and see how much is used of your ext
Click to expand...
Click to collapse
went into manage apps in settings... how do i check the space used by the ext? Menu option only include sort & filter
ALSO i know i sound exteremly noobie.. but..
mount /system
rm /system/sd/app_s/*
rm /system/sd/dalvik-cache/*
Do i replace the *'s with something else, or am i to actually type "*"
Whoops I meant sdcard and storage, sorry bout that I have been up since 5 yesterday and is now 3 in the afternoon so on that note, nighty night. Good luck
ONe more ?
Everytime i type rm /system/sd/app_s/* it tells me cannot remove - no such file or directory.
says the same thing with the rm davvik-cahce thing.
and yes i am in console in recovery.
Try without the *.
Than it's quite possible that you might have to format your sd card, backup your files using I think using app manager and backup for root users, transfer your files onto your computer and format, be a real good time to set yourself up with a nice 96mb swap file. Don't feel bad I plan to reformat mine tomorrow just to get all the old crap off just to have a clean slate
Thank you david I must be tired I didn't notice when he asked about the * and I also said the dalvik cache wipes to your system instead of writes, just noticed that after I just reread my post
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?
Hi,
I have 7.2.4.c kabaldan milestone rom.
With sd card with 3 partitions : fat32/ext3 1gb / swap.
Since I can't move my app to the ext with basic app2sd kind of app, I tried S2E.
Well, with the option "intall app to INTERNAL", I guess that s2e were intalled on the ext partition... I hit someting and reboot the phone.
Now, I have lost all my apps, I looks like the stock clean rom AND I can't install any applications, even if I change automatic/internal/external options.
So I don't have access to the ext partition.
Is there a way to get my ext back without a wipe?
(I do have a complete backup, but its a couple of weeks old... my bad )
Thanks
You don't need any additional app to use the ext partition.
All of kabaldan's ROMs automatically detect and use it if it's there.
I don't know how to recover your apps, but I guess any attempt will end up dirty.
Restore your old backup and don't forget to make one everytime you try something fancy
Eiertschik said:
You don't need any additional app to use the ext partition.
All of kabaldan's ROMs automatically detect and use it if it's there.
I don't know how to recover your apps, but I guess any attempt will end up dirty.
Restore your old backup and don't forget to make one everytime you try something fancy
Click to expand...
Click to collapse
haha, yeah I know, its my gf phone, she doesnt keep important stuff, its not a big deal.
With my phone don't worry, I do backups everytime .
You say that its automatic , but I dont understand why after a while I still have the "no more sapce available ". ext is around 200 mb of 1gb full...
Low space warning usualy means your /data is full, not /sd-ext. Try lib2ext.
btw, I do not know how to recover, I have no clue what s2e did to your data.
mrvek said:
Low space warning usualy means your /data is full, not /sd-ext. Try lib2ext.
btw, I do not know how to recover, I have no clue what s2e did to your data.
Click to expand...
Click to collapse
Yes, I understand, the 133mb is full, but all my app should install on the ext anyway?
I'm not the only one, but I still dont understand why I cant access to my apps.
http://forum.xda-developers.com/showthread.php?t=1507743
oVeRdOsE. said:
Yes, I understand, the 133mb is full, but all my app should install on the ext anyway?
I'm not the only one, but I still dont understand why I cant access to my apps.
http://forum.xda-developers.com/showthread.php?t=1507743
Click to expand...
Click to collapse
The script that moves all user apps to ext partition can be seen here
You can't access them because there is probably some confilct between s2e and the inbuilt 07app2ext script that moves all your apps to sd-ext automatically. That is, it moves the apk part of application, there are some parts, like libraries, databases, etc., that remain in /data/data. And it is stuff in /data/data/ that is filling the space so the OS is complaining. Hence the recomendation to try to utilize lib2ext.
The simplest and probably the safest way to get back to track is to start from scratch. As mentioned, I have no clue what s2e did to your files and where it might have moved it. It might be lost, maybe it is on sd-ext but inaccessible because of messed up permissions, perhaps on sdcard somewhere... IDK.
Point beeing - third party apps and/or scripts are usually incompatible with inbuilt 07app2ext script that provides same/similar functionality.
oVeRdOsE. said:
Yes, I understand, the 133mb is full, but all my app should install on the ext anyway?
[...]
Click to expand...
Click to collapse
The apps are installed to ext, but there is more to an app than just the .apk file.
There's dalvik cache, ordinary cache and other additional data
Those usually aren't moved to ext.
If you're running out of space despite having an ext partition enter the following into Terminal Emulator and reboot:
Code:
lib2ext 1
mrvek said:
The script that moves all user apps to ext partition can be seen here
You can't access them because there is probably some confilct between s2e and the inbuilt 07app2ext script that moves all your apps to sd-ext automatically. That is, it moves the apk part of application, there are some parts, like libraries, databases, etc., that remain in /data/data. And it is stuff in /data/data/ that is filling the space so the OS is complaining. Hence the recomendation to try to utilize lib2ext.
The simplest and probably the safest way to get back to track is to start from scratch. As mentioned, I have no clue what s2e did to your files and where it might have moved it. It might be lost, maybe it is on sd-ext but inaccessible because of messed up permissions, perhaps on sdcard somewhere... IDK.
Point beeing - third party apps and/or scripts are usually incompatible with inbuilt 07app2ext script that provides same/similar functionality.
Click to expand...
Click to collapse
That's make sense. I read some post found on google, and mostlikely, that's what they said.
I did a factory reset, and all my apps are back, but the save data. I'll put it back manualy from my nand backup.
Eiertschik said:
The apps are installed to ext, but there is more to an app than just the .apk file.
There's dalvik cache, ordinary cache and other additional data
Those usually aren't moved to ext.
If you're running out of space despite having an ext partition enter the following into Terminal Emulator and reboot:
Code:
lib2ext 1
Click to expand...
Click to collapse
Thanks, I wish I can understand everything on andoird programming... I saw only the basic programing at shcool.
I decided to dust off the Touchpad that was on CM9. I was trying to catch up and installed TpToolBox, and upgraded CWM. I did a bunch of fixing in Toolbox and now all I can access is /sdcard/0/clockworkmod folder which is empty. All my data is still there as when I mount the touchpad it shows up in windows.
I have been trying to read about what to do and found some stuff that I don`t know how to comprehend. I am a bit behind on the changes from cm9 to cm11 but understand there is a media storage difference.
So can someone please help me to get back to whatever I need to do to flash a CM11 rom. I can easily back up the data I have and go from there. I am sure there is a link out there but I don`t even know where to begin...
TYIA
I would like to know that as well. Thanks for info.
Sent from my iPad using Tapatalk
having just used it myself, this is what i understand happens
if you did the 'complete data reset' then it should be obvious that your entire touchpad is wiped
if you did just the install android, it will repartition the data into the new media partition, and the last 4.5gb into the legacy data partition, this is the partition that's going to mounted as 'external_sd' and will be where all your old data is stored
if you had over 4.5gb of data before the repartition, i'm not sure what happens, but my guess would be that the toolbox is smart enough to make the data partition to whatever amount of data is used and the leftover amount as the media
so now, after this, the /sd_card/ is part of the new media partition
go up one directory, and you should find the /external_sd/ and that should be where all your old stuff is
anonxlg said:
having just used it myself, this is what i understand happens
if you did the 'complete data reset' then it should be obvious that your entire touchpad is wiped
if you did just the install android, it will repartition the data into the new media partition, and the last 4.5gb into the legacy data partition, this is the partition that's going to mounted as 'external_sd' and will be where all your old data is stored
if you had over 4.5gb of data before the repartition, i'm not sure what happens, but my guess would be that the toolbox is smart enough to make the data partition to whatever amount of data is used and the leftover amount as the media
so now, after this, the /sd_card/ is part of the new media partition
go up one directory, and you should find the /external_sd/ and that should be where all your old stuff is
Click to expand...
Click to collapse
My data is there but only accessible in webOS or when mounted in toolbox. I cannot go up any directories. It sticks me in one and I try to mount others but nothing happens.
did you actually install cm11? if not, what exactly did u do?
it sounds like you started the install, but did not complete it, if that's the case, just do the install android again, it should see that you have the correct partition sizes and thus, will not do any repartitioning
then just continue with the install
anonxlg said:
did you actually install cm11? if not, what exactly did u do?
it sounds like you started the install, but did not complete it, if that's the case, just do the install android again, it should see that you have the correct partition sizes and thus, will not do any repartitioning
then just continue with the install
Click to expand...
Click to collapse
Nope. Once I was done all that I went back into CWM and this is where I am at...
so what did you do with the toolbox (which options did u select)?
honestly, it sounds like you should just run the android install
anonxlg said:
so what did you do with the toolbox (which options did u select)?
honestly, it sounds like you should just run the android install
Click to expand...
Click to collapse
OK, I am dong that now. I obviously went too fast last time and did not read to copy rom into the folder....Spurs game was on my bad....Will update with a success story hopefully...
Clipse79 said:
OK, I am dong that now. I obviously went too fast last time and did not read to copy rom into the folder....Spurs game was on my bad....Will update with a success story hopefully...
Click to expand...
Click to collapse
OK, I get an error about no supported recovery file found.....what should I be throwing in there besides gapps and rom?
Clipse79 said:
OK, I get an error about no supported recovery file found.....what should I be throwing in there besides gapps and rom?
Click to expand...
Click to collapse
Take a look here http://forum.xda-developers.com/showthread.php?p=52765140
Sent from my LG-D801 using Tapatalk
4GivenByChrist said:
Take a look here http://forum.xda-developers.com/showthread.php?p=52765140
Sent from my LG-D801 using Tapatalk
Click to expand...
Click to collapse
Well that seems to be doing it. Thank you so much! I do not know how I missed that. It had been a long day and was frustrated! Damn man thanks again!