[Q] How to clear android ART cache? - Android Q&A, Help & Troubleshooting

Firstly - I have moto G with kitkat 4.4.4, so I tried switching runtime to android ART.
After the phone rebooted, it started saying - "Android is upgrading, optimizing app xx out of 177", while I didn't have so many apps installed.
Anyways, I reverted back to dalvik after using it for a couple of minutes. And now after reboot it says - "Android is upgrading, optimizing app xx out of 78".
Why the change??
Secondly - After using ART my remaining storage fell from 8.61 GB to 8.46 GB. I'm assuming it was because of the cache generated for the AOT compilation; like how there's dalvik cache for dalvik which you can clear from recovery, but I'm not sure.
Is my assumption right, if yes, how do I clear it?
I know it shouldn't be bothering me much, but I want my head cleared about this anyways.
Thank you

I dont know, bro, but i would also like to know if possible.

Related

fix: insuffiencient space for apps (google market)

Hey everybody -
This is my first post here. I'm sorry if there is an answer already posted to this and if i'm just reposting, but i haven't seen any of this information anywhere, and apparently i have to make 5 q&a posts before i can start posting stuff where i need too, so i'm trying to throw some useful info to the community to gain this privilage
Anyways, onto the topic -
Many people that are installing a new ROM on there EVO 3D are getting an error when google tries to auto install apps after flashing. The error states that there is not enough space left on their devices to continue installing apps, even though there are reports of users having 700+mb free for app storage. Developers are claiming that it's because you didn't wipe dalvik/cache before flashing. I've found that this is not true, but I do know the fix, but don't completely under stand why this happens.
The fix:
The fix to this problem is a very simple one.
1. Install the rom like you normally would (boot to recovery, NAND backup, wipe data/factory reset, wipe dalvik cache, wipe partition cache, and wipe cache, then flash from zip, then select reboot device)
2. When the phone is booted up, type in all your info as usual to sync your accounts. When your done with this step, you'll notice google tries to start installing all of your apps, which it'll eventually crash on due to space.
3. You can do this before or after it throws you the error message about space, but the next step is reboot your phone back into recovery. From there, you're going to wipe your dalvik cache and cache (again), and then reboot the phone again.
That's it! You should now be able to install all of your apps again without getting storage errors!
I'm not a developer, but if i'm to take a guess at why this happens, i'm guessing something about the install, or maybe even the initial boot process of a rom being ran for the first time, for some reason is flooding our cache space, thus firing false alarms for being out of space. Therefor, by cleaning the cache space after the rom install is completed and booted, the phone no longer notices the space issues. I could be wrong on this, but this seems like a logical answer to me.
If this helps, let me know! Also feel free to correct me if i'm wrong on anything i posted, but this method seems to work for me! If this needs to be in a different category, feel free to move it! As a new member, i'm very limited on where i can post things...
Enjoy your newly rooted and modded EVO 3D!
duble08 said:
Hey everybody -
This is my first post here. I'm sorry if there is an answer already posted to this and if i'm just reposting, but i haven't seen any of this information anywhere, and apparently i have to make 5 q&a posts before i can start posting stuff where i need too, so i'm trying to throw some useful info to the community to gain this privilage
Anyways, onto the topic -
Many people that are installing a new ROM on there EVO 3D are getting an error when google tries to auto install apps after flashing. The error states that there is not enough space left on their devices to continue installing apps, even though there are reports of users having 700+mb free for app storage. Developers are claiming that it's because you didn't wipe dalvik/cache before flashing. I've found that this is not true, but I do know the fix, but don't completely under stand why this happens.
The fix:
The fix to this problem is a very simple one.
1. Install the rom like you normally would (boot to recovery, NAND backup, wipe data/factory reset, wipe dalvik cache, wipe partition cache, and wipe cache, then flash from zip, then select reboot device)
2. When the phone is booted up, type in all your info as usual to sync your accounts. When your done with this step, you'll notice google tries to start installing all of your apps, which it'll eventually crash on due to space.
3. You can do this before or after it throws you the error message about space, but the next step is reboot your phone back into recovery. From there, you're going to wipe your dalvik cache and cache (again), and then reboot the phone again.
That's it! You should now be able to install all of your apps again without getting storage errors!
I'm not a developer, but if i'm to take a guess at why this happens, i'm guessing something about the install, or maybe even the initial boot process of a rom being ran for the first time, for some reason is flooding our cache space, thus firing false alarms for being out of space. Therefor, by cleaning the cache space after the rom install is completed and booted, the phone no longer notices the space issues. I could be wrong on this, but this seems like a logical answer to me.
If this helps, let me know! Also feel free to correct me if i'm wrong on anything i posted, but this method seems to work for me! If this needs to be in a different category, feel free to move it! As a new member, i'm very limited on where i can post things...
Enjoy your newly rooted and modded EVO 3D!
Click to expand...
Click to collapse
Welcome to the community, and nice first post! I haven't had the issue that you're referring to, but I have indeed noticed others having the issue. Good to know that fixes it up, in case I ever encounter it. Thanks.
k2buckley said:
Welcome to the community, and nice first post! I haven't had the issue that you're referring to, but I have indeed noticed others having the issue. Good to know that fixes it up, in case I ever encounter it. Thanks.
Click to expand...
Click to collapse
no problem! this community has helped me TONS in the past, even though i haven't said anything about it (due to not being able to post in developer threads yet). I reflashed and wiped my phone about 4-5 times before realizing that the cache had to be cleaned AFTER the install and first boot of the new rom, and all the dev's kept stating it was from not wiping prior to flashing, which i did every time. Hopefully this will save some people time and headaches and i'm sure the dev's will soon find a fix to this, as they seem to work very fast at finding bugs and cleaning em up.
more or less i would say its because the market will download apps to the cache first...then install them to the phone...
the insufficient space is mostly what happens when the cache gets filled.
thats my educated guess on the matter.
also welcome to xda. you're gonna like it here
When I do this, it forgets all my 130 apps and I have to go look for them manually. Only ROMs that are using the new market do this to me.
Welcome to xda.
Another suggestion to add to the nice info here is. When you boot up a rom for the first time dont sign in. Immediately go to settings/accounts & sync and uncheck auto sync. Then head to settings/privacy then uncheck automatically restore. Then sign in. This is a option for anyone who doesn't want to reboot.
Locked & Loaded
newkidd said:
more or less i would say its because the market will download apps to the cache first...then install them to the phone...
the insufficient space is mostly what happens when the cache gets filled.
thats my educated guess on the matter.
also welcome to xda. you're gonna like it here
Click to expand...
Click to collapse
that would make a lot of sense as well - if that's the case, maybe people should let google market crash the cache before they clear it out again? that's what i did when i got it working... it was one of those things where i just watched and wondered, "is it going to do it all this time?", and of course when it didn't, that's when i discovered re-clearing the cache again in recovery fixes it. I noticed that by clearing the application cache (settings/applications/manage programs/market/clear cache) the problem still persists, and the only way to get google apps to install again is by clearing cache in recovery, which made me think it was an installation/boot thing. but i'm still learning, like many of us here
thanks for the input!
awesomeindeed said:
When I do this, it forgets all my 130 apps and I have to go look for them manually. Only ROMs that are using the new market do this to me.
Click to expand...
Click to collapse
this is an issue i noticed as well - i had to re-add my apps manually after it only added 24 of the 120 i had going. but hey, beggers can't be choosers, and i'm just mostly happy that i got a new rom going with everything functioning properly within 2 weeks of the phones release!
If anyone knows how to re-start the app sync succesfully without space errors, that might be good info to include in this post
awesomeindeed said:
When I do this, it forgets all my 130 apps and I have to go look for them manually. Only ROMs that are using the new market do this to me.
Click to expand...
Click to collapse
Did you clear the cache or data in the app itself or from recovery?? If you clear cache from recovery, this shouldn't happen. If it still does, usually downloading another app rebuilds the market cache.
What you can do to fix it is use Titanium Backup and there is a setting: Menu > More > Market Doctor and it fixes this issue. But, I think it only works in the paid version. It's well worth the few bucks though!
-viperboy- said:
Did you clear the cache or data in the app itself or from recovery?? If you clear cache from recovery, this shouldn't happen. If it still does, usually downloading another app rebuilds the market cache.
What you can do to fix it is use Titanium Backup and there is a setting: Menu > More > Market Doctor and it fixes this issue. But, I think it only works in the paid version. It's well worth the few bucks though!
Click to expand...
Click to collapse
Recovery. Downloading another app doesn't rebuild the cache either. Now it's gotten to the point where no ROM will restore any of my apps at all, it basically thinks I've never downloaded anything. So now I've gotta try and remember the 130 or so apps I had installed.
Not complaining, just an observation. One of the caveats of rooting a new device
Welcome to the community.
A really easy way to fix this is to just clear the cache and data for the Market in Settings > Applications, and that has worked for numerous people using my ROM but I don't think it'd be any different for any other ROM.
empiire said:
Welcome to the community.
A really easy way to fix this is to just clear the cache and data for the Market in Settings > Applications, and that has worked for numerous people using my ROM but I don't think it'd be any different for any other ROM.
Click to expand...
Click to collapse
I tried this method on vipers rc1.2 and supra ROM, and it didn't fix it for either - I continued to get insufficient space warnings, even after rebooting. The only thing that worked for my device was going into recovery to clear the cache.
You can also go into terminal emulator and delete the Download.apk files in the cache.
You'd think Google would be a little smarter at this. All the market would need to do is download fewer apps at a time, as the files are cleared once the installation is complete.
Sent from my PG86100 using XDA App
I feel a s0be market fix coming on. Although I have not seen the issue, you could pwn the cache and symlink it out of /data and into /system. A genious linux guy, seriously, genious, made this hack back on the hero, fixed market download errors EVERY time.
See this post:http://forum.xda-developers.com/showpost.php?p=11055157&postcount=4650
If you like it, go find s0be and thank him
duble08 said:
I tried this method on vipers rc1.2 and supra ROM, and it didn't fix it for either - I continued to get insufficient space warnings, even after rebooting. The only thing that worked for my device was going into recovery to clear the cache.
Click to expand...
Click to collapse
You could try reflashing the rom and signing into your google account right away. And let it sync. Just a thought.
Locked & Loaded
laie1472 said:
You could try reflashing the rom and signing into your google account right away. And let it sync. Just a thought.
Locked & Loaded
Click to expand...
Click to collapse
That won't make any difference if there is no room to actually store the downloads. Downloads from the Market go into /cache while downloading and then move to /data/app or /system/app, depending on the app. Hence why clearing cache fixes it.
laie1472 said:
You could try reflashing the rom and signing into your google account right away. And let it sync. Just a thought.
Locked & Loaded
Click to expand...
Click to collapse
That's what causes the market problem - I tried wiping and flashing both roms multiple times with the same result - if you flash a new ROM with the new market, and your market tries to sync a large number of apps, its going to flood the cache space and stop allowing the installation of apps until you go into recovery and clear the cache there... Then it all works fine, except for having to add all your apps one by one.
duble08 said:
That's what causes the market problem - I tried wiping and flashing both roms multiple times with the same result - if you flash a new ROM with the new market, and your market tries to sync a large number of apps, its going to flood the cache space and stop allowing the installation of apps until you go into recovery and clear the cache there... Then it all works fine, except for having to add all your apps one by one.
Click to expand...
Click to collapse
Well have you tried my suggestion I posted before the last one???
As in this
Another suggestion to add to the nice info here is. When you boot up a rom for the first time dont sign in. Immediately go to settings/accounts & sync and uncheck auto sync. Then head to settings/privacy then uncheck automatically restore. Then sign in. This is a option for anyone who doesn't want to reboot.
Locked & Loaded
laie1472 said:
Well have you tried my suggestion I posted before the last one???
As in this
Another suggestion to add to the nice info here is. When you boot up a rom for the first time dont sign in. Immediately go to settings/accounts & sync and uncheck auto sync. Then head to settings/privacy then uncheck automatically restore. Then sign in. This is a option for anyone who doesn't want to reboot.
Locked & Loaded
Click to expand...
Click to collapse
I tried something similar, but not exactly like you said earlier. I set my accounts to sync, but immediately went into the market while it was syncing, and cancelled everything. This would've still left the user picking each app to re-download one by one, because I believe there's no way to restart the app sync. I ended up buying titanium, and used that to put all my apps back on - its much less of a headache.

[HELP:'(]something in data/ causes ui sound not to hear

Ok so. Yesterday I was testing around some new games. When I installed a shooter game that I found Panda Mobile Security recognized it as a generic virus so I uninstalled the app just like the antivirus told me to. Then after some time playing the other games I had found I noticed that most of the UI sounds were not working.(like when i tap somewhere the usual "tick" doesn't hear or when I type my PIN in the reboot I dont hear the "tick" either. So I tried to reboot hoping that would fix it but it didn't help me at all. At last I decided to reflash my ROM without wipes and I was sure that was gonna fix that. After reflashing my ROM again, wiping cache, dalvik cache and fixing permissions nothing happened at all. Then I tried wiping only /data in CWM and wiping cache, dalvik cache and fixing permissions and thus time when I rebooted the sound was back!!!! So the "file" causing this problem is in /data. Any suggestions? Help please
I think I should also mention that the other sounds(like in games and music) is perfectly fine and I'm running CM9 4.0.4.

[Q] Youtube not working & Phone - help and suggestions

Hey All,
This is really driving me up the wall.
Youtube is not playing videos at all whether it is through the app or chrome browser. This started about a week ago. All i am getting is the never ending loading Circle
At first i thought it was the newest version that just came out on 1/8, but i rolled back to my previous version using Titanium and same ish.
I tried a lot of the basics.
1- uninstall/reinstall, clear data, cache on app.
2- did the default wipe in TWRP recovery
- reinstalled rom/gapps - Carbon ROM - phone was setup with minimal settings to just test youtube (been running the ROM since Nov)
- no change
4- did another wipe, this time an advance version which included cache, dalvik cache, system, internal storage, data
- no change
Nothing improved and doesn't even play the ads (I did have ABP installed but keep in mind that i have now completely wipe and only installed GAPPS and setup one email account to download youtube from playstore) This really should be working now...
Tonight i will try either an older version of the rom or a completely different one but i rather not.
anybody have anything???
I too am having the same problem. It does work on WiFi, but not on 4g.
Sent from my SCH-I535 using XDA Premium HD app

[Q] YP-G70 SGP5 USA Home Screen Icons disappear?

http://forum.xda-developers.com/showthread.php?t=1873670
Having a minor problem similar to the above thread - icons disappear from home screen after reboot for apps on sdcard.
I changed launchers from trebuchet and this seems to have remedied the problem for the time being for any other launcher so far.
The thread above suggests launcher change is only a temp remedy and unchecking fast boot android setting may help too.
But that setting is missing in cm11-0712 - anyone know if this setting still exists or where one may find it?
Thread above also suggests real issue requires an added flash of Convert2ext4 which is prob too complicated for me to understand at this point and so I wouldn't try it without more study - not even sure if this particular flash would play right with my current ROM.
Anyone else with this same problem?
Model: YP-G70
Android: 4.4.4 = CM11-20140712-UNOFFICIAL-venturi
Kernel: default = 3.0.101-G70UEK18 [email protected] #1
Full wipe and flash again that's all I can tell you
Sent from my YP-G70 using XDA Free mobile app
troy5890 said:
Full wipe and flash again that's all I can tell you
Sent from my YP-G70 using XDA Free mobile app
Click to expand...
Click to collapse
Just out of curiosity - if I full wipe (i think full wipe means in cwm to do factory/data wipe & cache wipe & format system & dalvik cache wipe) and then attempt to reflash the same rom cm11_0712 - would I have to restart from scratch meaning cm9 to cm10 to cm11_0712 or can I just push cm11_0712 directly? I am asking because I think cm11 already contains a kernel embedded so this might work directly?
Then of course I would have to restore my apps from TB which I'm still working on learning how to do. But am interested in poss increasing performance by turning on ART so I'd want to turn on ART first thing and then one by one restore my apps+data. Would this also work? Or is it not advisable to restore from backups with data from before ART was enabled?
Could I poss also restore some system data like launcher & live wallpaper data settings at this point without being too destructive?
I don't think you have to start over from CM 9, unless you're coming from q stock ROM, which you aren't. But yeah, just do a full wipe and reflash CM 11. As for ART, I wouldn't recommend using it until there is CM for Android L. Oh yeah, and restore your apps BEFORE you convert to ART if you haven't ever messed around with it before. Your device will automatically do the conversion from Dalvik to ART once you enable ART in Developer Options, then you will be able to mess around with it. Hope this helps
__________________________________________
Samsung Galaxy Player 5.0 (Model YP-G70)
• Carbon ROM 4.4.4 by Meticulus Dev Team
• Daily Drivers Kernel
Yes, thanks. Perhaps ART is alittle too much to bite off for now and will wait. Since my other thread talks about FC's, I was thinking ART might help too but better instead to just direct re-flash cm11 fresh vs update flash (what I had been doing and redoing). Everyone's tips very helpful too.
Just a quick update - for other reasons, I reflashed cm11 fresh (full wipe) and restored apps from TB backups. The trebuchet home screen icons still disappeared for sdcard installed apps but also poor battery life returned too. Tried to mess with settings again to save more battery life but not so good battery & this compelled me to switch to carbon ROM fresh install as a new try out.
This now has launcher3 & home icons disappear too & the few battery saving settings get the battery life to pretty good. So going to stick around with carbon for a while for now - many more settings in carbon too if that appeals. As for the icons disappearing root cause still not sure exactly but at least carbon seems to support std fix also used with cm11 to change launchers to something else. Am using smart launcher instead and home icons don't disappear with it.
Sent from my YP-G70 carbon 444

[Q] Lollipop ART

Since the Xperia Z2 now has lollipop, and as to my knowledge, ART is default for LP, are we running ART now? Or still on Dalvik? I just want to clear that up.
iArvee said:
Since the Xperia Z2 now has lollipop, and as to my knowledge, ART is default for LP, are we running ART now? Or still on Dalvik? I just want to clear that up.
Click to expand...
Click to collapse
Default runtime for Lollipop is ART, so yes
The checker says dalvik... And i dont see much of an improvement in speed
I ran Quick System Info Pro to check this. It has many references to Dalvik so I'm also confused. I know the default Lollipop VM is ART, but have Sony done something to keep Dalvik?
There is no way for anyone to create a Lollipop version which runs on Dalvik. Where there is Lollipop there lies ART underneath.
However, as for the compatibility concerns, ART can fake itself like there is still a Dalvik VM around, thus allowing older apps to be able to run on Lollipop. When a software wants to recognise if a system is running on Dalvik, probably it requests info about Dalvik's existence (I'm not a software developers, just thinking outloud here) and this makes ART think that there is an old app depending on Dalvik and the device fakes Dalvik's existence..
So just to clear it all up, we're running ART now on LP?
no better battery,no better respond, so still running dalvik!!!cpu-z and ART checker say it too!!
Lollipop runs ART people. It entirely replaced dalvik in Lollipop.
Since none of you (apart from bdithug, Jackos and _delice_doluca_) have bothered to look into this, take a look at the post I'm going to refer you to. Look at the part infected_ underlined in his quote, that's why the apps think you're running dalvik.
http://forum.xda-developers.com/showthread.php?p=59372603

Categories

Resources