Dalvik cache - Honor 4C Questions & Answers

Hello. I have problems with my phone. My supersu app tells that cant install binary. I havnt updated that app and it was working well for a certain time. And the biggist problem is dalvik cache. Size of d cache is approximately 800MB but after some day my internal storage is full because of cache. Can anyone tell why the size is changing? I dont understand....

anonym123123 said:
Hello. I have problems with my phone. My supersu app tells that cant install binary. I havnt updated that app and it was working well for a certain time. And the biggist problem is dalvik cache. Size of d cache is approximately 800MB but after some day my internal storage is full because of cache. Can anyone tell why the size is changing? I dont understand....
Click to expand...
Click to collapse
Don't know about supersu, maybe you could just flash latest version in TWRP.
About dalvik-cache filling space, I don't know why it takes so much space but here is one way to fix it https://forum.xda-developers.com/honor-4x/how-to/discussion-guide-dalvik-cache-filling-t3773882
Also dalvik-cache won't rise unexpectedly large when it's placed like in the thread, though no idea why.

Problem with supersu I have recently solved. However, problem with dalvik cache is still there and its still getting worse and worse because my internal storage is full every morning. Thanks for your answer and your help. Ill try it and write if it works.

Related

[Q] Question about Dalvik Cache

I posted this on rootzwiki a couple of days ago and have had absolutely no takers, so I'm posting it here (not sure who has a bigger active community).
Hi all, I have a question about the Dalvik cache:
I found this definition of what the Dalvik cache is:
http://www.shahz.net...lvik-cache.html
But...
I see this as an answer very often on all forums for all ROMs: wipe the dalvik cache, fixes everything. But why should we have to do this? Is android so broken as an OS that it can't manage its own cache properly? If I understand correctly, the dalvik cache is not something that is unique to custom ROMs, it's something that Google developed as part of the native android OS. Why would they develop something that needs to be micromanaged like this into an OS that is used by techies and non-techies alike across the world? If I understand correctly also, you can't even wipe the dalvik cache if you're not rooted. The majority of android devices running in the wild are NOT rooted, and I don't think Google intended android to be run rooted. So I can't imagine they'd ever intend anyone to have to wipe the dalvik cache in the first place.
That being said, it appears that wiping the dalvik cache does fix some issues for some people. maybe not the root cause of the issue, but at least the symptoms. so, is there an app that will automatically wipe the dalvik cache in the background at regular intervals so that you never have to do it yourself?
Thanks!
the wipe-dalvik-cache things is a long and old story that not true anymore. as some CM dev said, the cache got invalid after you flash a new ROM and the OS will recreate automatically.
Even if you have to wipe, it's not Android fault, why are you flash ROM from the start? My friend have a LG P500, she never root it, never know what recovery or flash is, the OS is not broken, it's your fault to hack it, and if you love to hack, learn to live with it.
Please understand, I'm not bashing android (trust me, I'm an avid android fan), I just want to understand why this is the first answer people give when others are having issues.
What I don't understand or agree with is the fact that people seem to indiscriminately resort to wiping the dalvik cache as a FIRST resort. It's like telling someone to reinstall their OS everytime they have an issue (yeah I know, it's not as much work, but you get my meaning). Well, no **** a total reinstall will probably fix it, but I'd rather not have to do it. I want to know what the root cause is and try to prevent it in the future.
So is wiping the dalvik cache something that people do on a regular basis? Or is it usually just a one-time fix for certain issues? Or something you do only once when flashing a new ROM? Or like you say, is it not even a valid fix anymore?
Funnnny said:
it's your fault to hack it, and if you love to hack, learn to live with it.
Click to expand...
Click to collapse
So are you implying that the "need" to wipe the dalvik cache is directly related to "hacking" (i assume you mean rooting/flashing) your device?
My wife and I both have the same phone, Droid X. She is running stock unrooted ROM, and I am the "tinkerer" who likes to try different ROMs. I've only tried 2 ROMs so far and I don't plan to flash anymore (currently using Vortex 2.9, which is not too far from stock). I notice that both of our phones have issues with random reboots, among other things, so I don't think the issues I'm having are directly related to my phone being flashed and rooted, since hers is not and she's having the same issues. I'm thinking this is something with android itself, or with certain apps. Should I root her phone too and try wiping the dalvik cache? Does the dalvik cache get rebuilt everytime you reboot your phone? I just want to understand.
And it would be nice to hear from someone who is an actual developer who understands the inner workings of android, rather than a "hacker" like me who only has anecdotal evidence to share.
Thanks!
Very good, logical nad brief answer found here:
http://www.shahz.net/android/what-is-dalvik-cache.html
According to the article, it should be safe to delete. Has anysone tried it?
It makes sense that it sould be wiped if you install/uninstall a lot of apps, since their classes.dex will be in cache and probably remain there.
Can anyone shed a light?
The Dalvik Cache is completely safe to wipe. You will only find this as an available option if you have installed CWM on your Android Device.
Think of it sort of as you would think of the Windows Temp Folder in Windows. It is completely fine to Wipe the Windows Temp folder, and in some cases, completely necessary to resolve an issue.
The same is true with the Dalvik Cache. When an APK is launched, it is extracted to the Dalvik Cache and run from there. It is a temporary file location.
The reason for clearing the Dalvik Cache after flashing a new ROM, is to clean up the Cache so that no temp files from the previous ROM Build are in there as clutter. There are some instances in which an App might not function or authenticate properly after flashng to a new ROM because some of the temp files in the Dalvik Cache are used, rather than a fresh copy that was extracted after the new build was installed on the device.
There is much more to the Dalvik Cache than I have described in this post, but what I have mentioned is a basic overview of the major functionality of the Dalvik Cache.
Cheers!
Great, so who knows where to find an app that auto deletes that meddling troublesome dalvik folder? I believe it is the culprit responsible for not allowing the phone at reboot to find a signal
You can only wipe the dalvik cache from recovery. For an apk to work it first has to be pushed onto the cache, so it can't delete the folder the apk itself is using.
syung said:
You can only wipe the dalvik cache from recovery. For an apk to work it first has to be pushed onto the cache, so it can't delete the folder the apk itself is using.
Click to expand...
Click to collapse
Not true. Titanium backup can delete the dalvik cache. You can also delete dalvik cache folder manually using a root file explorer.
However when you delete the dalvik cache it will rebuild itself upon the next boot.
Dalvik who?
So, can anyone really explain to me what the dalvik cache does, exactly?
It takes about 2.8 GB of my internal memory and i'm about to run out of free space. Is there a limit of dalvik-cache or will it grow bigger till forever?
Now I have Dalvik Cache folder with 3.13 GB in my Galaxy S4. Is its size unlimited and constantly growing?
Can I safely wipe it using TWRP?
clearing dalvik cache without root
pchoi94 said:
If I understand correctly also, you can't even wipe the dalvik cache if you're not rooted. The majority of android devices running in the wild are NOT rooted, and I don't think Google intended android to be run rooted. So I can't imagine they'd ever intend anyone to have to wipe the dalvik cache in the first place.
Thanks!
Click to expand...
Click to collapse
You can clear dalvik cache with stock recovery, just boot into recovery (the sequence varies for different phones), then choose the option that says "wipe dalvik cache" or "clear dalvik cache" or something like that. I don't remember how it's worded, but the option is there. On my phone it's the second option right below factory reset. I am curious whether it's safe to clear without root & with the factory ROM. I'm running low on storage, & thought of that as a way to recover some space. Is that safe & will it benefit me any?

Help Please Market out of space cache Problem

Hello everybody
I have a big problem since 2 weeks with my sdcard / app2ext.
It starts with fjfalcon cyanogen mod but i come back to miui final the last week (for holiday i needed a good camera...) and it s the same.
My problem is that when i want to install or update an app(by the market) it keep saying that i haven t sufficient space...Superuser update by itself (not by the market) and it works
But i have 1Go of ext (at least half empty) and i also have a lot of space in the internal memory (even in my fat32 i have at least 3Go...)
So why i m lacking of space???
I try to wipe dalvik cache but it s the same cause it rebuild it at boot.
But when i go in the cache folder by root explorer i can see that i have 105Mb used and only 300Ko free..
I try to reformat only the ext it still the same i also clear all my sd and start over (but copying back all my apps to the ext part) but nothing change too... I also delete my swap partition cause i never use it but it can t be the problem
Someone have an idea??? I format my sd 3times this week... I don t have anymore idea......
edit i forget to says that i use app2ext with an ext3 part but i try ext4 or ext2 and it s the same
the space the market error is complaining about is the Cache, nothing to do with your physical storage
CM6 is fixed to prevent that bug
sounds like CM7 or MIUI ports the guys are working on has not been tweaked with enough cache for the Download cache for Market
AllGamer said:
the space the market error is complaining about is the Cache, nothing to do with your physical storage
CM6 is fixed to prevent that bug
sounds like CM7 or MIUI ports the guys are working on has not been tweaked with enough cache for the Download cache for Market
Click to expand...
Click to collapse
I don t think so i have tried cm6.3 too and i have the same issue...
I try cm7 and now i m back to the old khalpowers miui v 2 and nothing change...
I never had any issue with this rom and i used to have more than 150 apps installed now i only have 75apps but no more space... i can t understand why!
Sent from my Milestone XT720 using XDA App
how much space does it read in the SD card, and Internal Storage?
Go to openrecovery and wipe the cache partition (not wipe dalvik-cache).
Sent from my Milestone XT720 using xda premium
Mioze7Ae said:
Go to openrecovery and wipe the cache partition (not wipe dalvik-cache).
Sent from my Milestone XT720 using xda premium
Click to expand...
Click to collapse
Thanks but that was the first thing i try... But i never wipe only the cache (i wiped dalvik cache also) so i m trying it right now...
But just to be clear i reinstall others rom many times (4 or 5 times) so i always clear all....
edit: it s the same... My cache is still full (100Mb full 5 M free) after the wipe of the cache
@AllGamer
3Gb free on sd and 50Mb in the internal storage.....
We fixed that problem in ms cm7 sometime ago...
fjfalcon said:
We fixed that problem in ms cm7 sometime ago...
Click to expand...
Click to collapse
??? And how???????????
I search it but i didn t find anything talking about this in the cm7 thread...
But i install the 18/11 version of your rom and it s the same.
I think the only choice i have is to delete all my sd and start all over... But i can t understand why... The cache is not in the sd!
I would suggest exploring your ext partition and see if you have any duplicates in there. Otherwise, to me it seems like you have a ghost in the machine. I always hate to do this and hate suggesting it, but might be time for a reformat and fresh sbf/flash straight to CM7 and not overlay any other ROM.
Wait a minute. Do you have a cache cleaner app (Cache Cleaner NG is good b/c it removes cache from internal and SDcard - Cachemate is another one)? I am thinking that you might have too much built up cache. Example, you go into your XDA app and check out some threads, screenshots,...that all builds up useless cache. Go into settings>manage apps>your app and clear the cache. I have seen my market hold up to 5mb and my XDA app hold almost 70+mb of cache. I am really thinking that may be the culprit.
Woodrube said:
I would suggest exploring your ext partition and see if you have any duplicates in there. Otherwise, to me it seems like you have a ghost in the machine. I always hate to do this and hate suggesting it, but might be time for a reformat and fresh sbf/flash straight to CM7 and not overlay any other ROM.
Wait a minute. Do you have a cache cleaner app (Cache Cleaner NG is good b/c it removes cache from internal and SDcard - Cachemate is another one)? I am thinking that you might have too much built up cache. Example, you go into your XDA app and check out some threads, screenshots,...that all builds up useless cache. Go into settings>manage apps>your app and clear the cache. I have seen my market hold up to 5mb and my XDA app hold almost 70+mb of cache. I am really thinking that may be the culprit.
Click to expand...
Click to collapse
Good idea i m gonna try cache cleaner. But i hope i will be able to install it.....
But for the fresh reformat/flash sbf i already did this that s why i don t understand at all.
I reflash sbf. Install a new rom and clear all the cache / Dalvik cache... (all that at least 3 times....)
The only thing i didn t format is the sd card. Indeed i format it, make new fat32 and ext and copy all my old fat 32 and ext data.
I didn t want to loose all my ext apps but i think i don t have the choice now. But i m not even sure that it will solve my problem...
Cache cleaner don t work too...
it succeed to wipe all but nothing change i still have only 4mb left... (by root explorer). And it seems to be the dalvik cache folder which is full
I can t understand how this folder can stay full after a fresh sbf flash a wipe and a new rom....
To me it seems that if you are reformatting and then restoring, you are essentially restoring the problem. Try reinstalling apps with Titanium.
Woodrube said:
To me it seems that if you are reformatting and then restoring, you are essentially restoring the problem. Try reinstalling apps with Titanium.
Click to expand...
Click to collapse
I think so too...
That s why that is pissing me off
I will have to format my sd and start over from beginning but i still can t understand why i already have a lots more apps so why whit less app i m lacking of space???
I couldn t wait any longer so i format my sd card
Now i havent anymore apps but all works...
But if someone understand why i had this.....
You should be able to restore most apps with TB. Sucks that you had to reformat. So frustrating, I know and have been there myself. Different problem but same result. The dreaded reformat. Maybe sometimes that is just what is needed. Bummer though.
Woodrube said:
You should be able to restore most apps with TB. Sucks that you had to reformat. So frustrating, I know and have been there myself. Different problem but same result. The dreaded reformat. Maybe sometimes that is just what is needed. Bummer though.
Click to expand...
Click to collapse
Yes all to start over again...
And i test J Y Daddy HO NO ICS and now the market FC...
I dream to explode my xt720!!! 1 years and a half that i m using myself with this moto**** and i think i m gonna change ASAP (just sad to leave you all bros...)
No problems at all with the market on this build. I think there must be another problem.
Did you restore apps with TB?
How many apps? Number and size of the used apps?
Ho!No! CM7.1.0.6 ICS Edtion - Milestone XT720
AA1973 said:
No problems at all with the market on this build. I think there must be another problem.
Did you restore apps with TB?
How many apps? Number and size of the used apps?
Ho!No! CM7.1.0.6 ICS Edtion - Milestone XT720
Click to expand...
Click to collapse
I explain it in the rom's thread but i didn t restore any apps for the moment (i can t install titanium backup...) it s a fresh installation on a fresh sbf and a clear sd (only with an ext part and an app folder in it)
And i can t install any app by the market or with an apk.
On the others thread someone tell me about a Mz tip to make it work by deleting the secure folder on the sd (but i can t too cause i can t install root explorer...)
Too bad the rom seems fast! And so pretty too! Maybe i will try to install another rom to install root explorer on the ext and come back
B_e_n said:
Yes all to start over again...
And i test J Y Daddy HO NO ICS and now the market FC...
I dream to explode my xt720!!! 1 years and a half that i m using myself with this moto**** and i think i m gonna change ASAP (just sad to leave you all bros...)
Click to expand...
Click to collapse
Market FC may be caused by .android_secure folder on sdcard. You can't delete it directly from the phone, though (you have to use USB). But if you reformatted the FAT partition, the old one shouldn't be there unless you copied/restored it from a backup.
Sent from my Milestone XT720 using xda premium
Mioze7Ae said:
Market FC may be caused by .android_secure folder on sdcard. You can't delete it directly from the phone, though (you have to use USB). But if you reformatted the FAT partition, the old one shouldn't be there unless you copied/restored it from a backup.
Click to expand...
Click to collapse
Thanks but i couldn t delete this folder with the rom file manager (and it was empty)
Now i try FJFalcon's cm7 and my market is back.
I m gonna try others ICS rom from J Y Daddy i m afraid to lost text message again with FJfalcon cm7..

[Q] HELP! Insufficient Storage Space...11.24 GB Though

Hi all,
I already searched around and could not find anything close to a solution. I have a huge ANNOYING problem. I haven't had this issue until recently. Or rather, I haven't noticed it until now. I flashed a new ROM coming from CM10 thinking it was the ROM, but I have tried two different ROMs and still the same problem. WTF!? I keep getting the message "Insufficient Space available" error when trying to install programs from Google Play or trying to side-load.
For some reason I have two internal storages when I look under storage in system settings. One is 1.97GB and the other is 11.24GB. In the smallest one, I have 209MB available. WTF!? Yet the other has 11.17GB. It's to the point where I have only 9 progrmas installed! 9!! Something's got to be wrong here, Please help!
What's the deal!? Anyone have a solution. I have done a factory reset and cleared everything. Still nothing. Any help is greatly appreciated.
*temporary fix*
OK, so I went in and cleaned out the folder /system/lost+found
It had 1.6gb of used space. Deleted it all and now I have that space available.
The main reason for this being a temporary fix is because I still have two internal storages. So eventually the 2gb where all the programs are being installed into, will run out again. So then phone is not taking advantage of all 14 GB available for storage.
-Carlos
Did you wipe data and caches?
I had this problem before, where I had gigabytes of files in the lost+found folder, which would take up the internal storage where apps are installed. When I went to another ROM, I did a clean flash, and even though I restored all apps from Google, I had much more space available.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
I did all that. Just like always. Even before I flashed the new ROM, I cleared cache and wiped data. Even did Dalvik cache wipe. Still nothing.Where is this lost+found folder you speak of. Maybe go into it manually. But still doesn't explain all that available space.
-Carlos
hondalude89 said:
I did all that. Just like always. Even before I flashed the new ROM, I cleared cache and wiped data. Even did Dalvik cache wipe. Still nothing.Where is this lost+found folder you speak of. Maybe go into it manually. But still doesn't explain all that available space.
-Carlos
Click to expand...
Click to collapse
Look in /system/lost+ found.
hondalude89 said:
I did all that. Just like always. Even before I flashed the new ROM, I cleared cache and wiped data. Even did Dalvik cache wipe. Still nothing.
-Carlos
Click to expand...
Click to collapse
Wipe data from google play services, google play, and google services frameworks. Clearing the data also wipes the cache for you. To do this go to Manage apps>all and pick those apps. It'll take some time to resync all your google info but after that you should be good.
So I just had this problem yesterday and what worked for me is to wipe Everything, except for the sd cards. That should clear out the data that is from your last rom.
bonkieash said:
So I just had this problem yesterday and what worked for me is to wipe Everything, except for the sd cards. That should clear out the data that is from your last rom.
Click to expand...
Click to collapse
Actually the way to fix it is set "use rm-rf" options in settings in TWRP while flashing. I don't know why but make_ext does not work sometimes
epapsiou said:
Actually the way to fix it is set "use rm-rf" options in settings in TWRP while flashing. I don't know why but make_ext does not work sometimes
Click to expand...
Click to collapse
I'll try that. Actually I got it to where I can actually install other rpogrmas. But the phone still has a 2gb internal storage and 11.4gb internal storage. Which is pretty frustrating. Buddy's S3 only has one internal storage. Sondoea another Buddy's note2. So I'm lost as to why I have 2 internal storages. Wtf!?
For right now, see first post for my "temporary fix"
-Carlos
hondalude89 said:
I'll try that. Actually I got it to where I can actually install other rpogrmas. But the phone still has a 2gb internal storage and 11.4gb internal storage. Which is pretty frustrating. Buddy's S3 only has one internal storage. Sondoea another Buddy's note2. So I'm lost as to why I have 2 internal storages. Wtf!?
For right now, see first post for my "temporary fix"
-Carlos
Click to expand...
Click to collapse
Have you figured out a solution (and not just a temp. fix) to your 2 internal storages issue? I'm having that problem right now after flashing official CM 10.2.
Please let me know asap.
bonkieash said:
So I just had this problem yesterday and what worked for me is to wipe Everything, except for the sd cards. That should clear out the data that is from your last rom.
Click to expand...
Click to collapse
Did you wipe internal sd card as well or did you mean you wiped everything except both the internal and micro sd card?
Sent from my Nexus 7 using xda app-developers app
My solution was to disable Sync App Data in my google account as I logged into a factory wiped phone. I had Despicable Me 2 installed on my tablet, but even though it wasn't installed on my phone it was still syncing the 600 (SIX HUNDRED) MB of App data (videos I assume?!). There is no easy way to know which apps are doing this(abusing data sync), especially if you have multiple devices using the same account but different app sets. Wiping /data and making sure not to sync app data was the only thing that worked for me. Once you are in, you may be able to delete that app data by delteing the app from the 'My Apps' 'All Apps' section, but there should really be a better way to manage this data.
Did anyone come up with a permanent fix for this? I have tried flashing several roms several times and always end up with the split storage.
vegantacodrone said:
Did anyone come up with a permanent fix for this? I have tried flashing several roms several times and always end up with the split storage.
Click to expand...
Click to collapse
I haven't found a permanent solution, but you can install apps on the external SD card. I think there is an Xposed module that will force apps onto the sd card as well.

[Q] cant install apps or updates?

I have unknown sources checked, 16GB left on internal storage and 11GB on external sd card, and i get the famous "insufficient storage" error. Ive cleared dalvik cache and all apps cache, and uninstalled a few apps, no luck. Trying to install GTASA, And update some apps,but the insufficient storage is stopping me. Anything i can do? I cant move apps to sd card, the tf300t doesnt allow it (at least mine doesnt -_-. Is there a fix for that too? Hope im not asking too much...)
JeepGrandCherokee said:
I have unknown sources checked, 16GB left on internal storage and 11GB on external sd card, and i get the famous "insufficient storage" error. Ive cleared dalvik cache and all apps cache, and uninstalled a few apps, no luck. Trying to install GTASA, And update some apps,but the insufficient storage is stopping me. Anything i can do? I cant move apps to sd card, the tf300t doesnt allow it (at least mine doesnt -_-. Is there a fix for that too? Hope im not asking too much...)
Click to expand...
Click to collapse
It happened on my phone and I had to clear my thumbnail cache. I'm not sure if that will work on a tf300 but its worth a try.
cmendonc2 said:
It happened on my phone and I had to clear my thumbnail cache. I'm not sure if that will work on a tf300 but its worth a try.
Click to expand...
Click to collapse
I went and cleared all the caches and moved all my pictures and videos to sd card. now have 20GB INTERNAL and 6GB EXTERNAL free.. Still doesnt work. What now?
Cmendonc made me think of the dalvik cache. Cleared that and works beautiful thanks for the help!
JeepGrandCherokee said:
Cmendonc made me think of the dalvik cache. Cleared that and works beautiful thanks for the help!
Click to expand...
Click to collapse
Glad to hear it! I thought you had already cleared it when you mentioned it in the first post, but at least it worked

[Q] "Storage full" with 9GB free space

Hi there!
I'm on EURetail.en.EU stock Lollipop (after fresh 4.4.4 -> 5.0.2) upgrade. Using latest TWRP from their site.
Installed my apps and Xposed + Gravity Box.
After one of the reboots i got a message about system storage full, even though I have 9GB of internal storage free.
Titanium Backup cannot access storage, camera apps (stock moto and Google Camera) both say my storage is full and I should clean it up.
Anyone knows what i can do in this situation? Preferably without data wipe/full wipa.
I've tried to look for some similiar issues but couldn't find anything relevant.
Thanks!
You'd know if you did a quick search. Wipe catch and davik catch and it will be fine
No need for a full wipe
eemgee said:
You'd know if you did a quick search. Wipe catch and davik catch and it will be fine
No need for a full wipe
Click to expand...
Click to collapse
Wipe cache and dalvik 2 or 3 times, did not work. I think TWRP is the culprit, as after full wipe it created the '0' folder again. Will try do everything again with Philz, we'll see
Strange, but I've only ever used philz so you could be right.

Categories

Resources