Hello.
I'm running Android 4.4.4 and I'm wondering if using developper's options to switch from Dalvik to ART for the engine is a good idea.
Is it risky ? Shall I lost my data and / or apps ? Or it shall be transparent and my apps will just take some extra time to load at first execution (time for ART to compile app) ?
Thanks.
As long as your ROM supports it, you shouldn't have any problems. Switching to ART will not wipe your app data.
It will take some space. Mine was about 600 but don't take my word for it. First boot will indeed take some time.
Last negative: Not all apps work on ART. Check Play Store description for compatibility. If nothing is noted, it's generally a hit and miss (with more miss the older an app gets)
But
For those apps that do work (and app compatibility has greatly increased since the runtime was introduced), ART is much, much better than dalvik in every measurable aspect.
I've even heard it can make pancakes, and from what I've seen myself, I can't really reject the notion outright.
If, however, you were unfortunate enough to pick the 8 GB model (I did, and I still have night terrors about it), you may wish to forego ART since every bit and byte count..
Sent from my Nexus 4 using XDA Premium 4 mobile app
I'm using a 16 Gb model with 8,92 Gb free space.
I will give a try
Related
My 1st generation Nexus 7 started running incredibly slowly - to the point of unusability - around the time I set up a second user profile on it for my fiancée. I'm not sure if these two are connected, however we are using the same two-profile setup on our Nexus 10 with no issues.
N7 was running stock, and I finally had enough of not being able to use it so I wiped and installed the latest nightly of CM which I'm running on both my N4's and also the N10. Since flashing CM on the N7, there has been little improvement in the speed of the device.
I'm very hesitant to put it down to a hardware problem, as it seems very unlikely to me. I think it's far more likely that there is a misbehaving app or service that I had before, and re-installed since flashing CM and is continuing to cause problems.
Looking at the battery usage graph, I can't see anything obvious that stands out. Is there any other way I can find out if there is a misbehaving app or service that's causing this problem? Do you have any other suggestions on how I can narrow down what the problem may be?
Many thanks.
How much memory do you have still free on it? It's a known fact, that if you go low of memory (<1-2GiB free) the system is slowing down very much.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
How much memory do you have still free on it? It's a known fact, that if you go low of memory (<1-2GiB free) the system is slowing down very much.
Click to expand...
Click to collapse
Are you talking about storage space?
I have 2.98GB free right now, apparently.
..
Yes, storage space. There was already a thread some time ago where especially people who had bought the 8GB version noticed a massive slow down after they had installed some apps and the free memory went below 3GB(!) (I remembered wrong, it was not 1-2GB, but 3GB). The thread can be found here
use clean master to clean your cache and kill tasks.i do it constantly so my device runs speedy
Try to get more than 3GB of freespace then try lagfix(fstrim) free.
Has ran into this problem once. but after done booth solutions above now my N7 is running as smooth as Brand New again.
P.S. Before I've found Lagfix(FStrim) I'm use Forever Gone and it work just as well as Lagfix did. except Forever Gone is take much longer time than Lagfix to finish its job.
I was watching the hands on video of Nexus 5 on GSMArena, and at the end I saw the reviewer mentioned and showed that there's something new under Developers settings, called Runtime ART or Dalvik. Like he said that enabling ART mode makes the app load faster and is battery efficient too. Now I have minimal knowledge about Java, so it's a rather simple question, could it be used on our S4?
It looks like ART runtime will replace dalvik at some stage so its a matter of when and not if. There won't be a problem with the s4 running it, it but apps will need to be optimised for it, hence why some are force closing when switching to ART.
Sent from my Nexus 7 using Tapatalk
Hi!
Is there simple explanation what ART does for regular Joe? Why does Google gives me choice between ART and Dalvik?
Thanks!
Sent from my Nexus 4 using xda app-developers app
Google doesn't give you the option.
Its hidden in developer options for a reason.
To answer your question, it gives you a preview or "beta" build of ART and what's to come. Its a smoother experience and OS seems snappier over all. But with all the optimizations Delvik runtime it not really noticeable. The most notable difference is between switching task and apps. That's all it really offers to an Average Joe.
Sent from my Nexus 4 using xda app-developers app
jayRokk said:
Google doesn't give you the option.
Its hidden in developer options for a reason.
To answer your question, it gives you a preview or "beta" build of ART and what's to come. Its a smoother experience and OS seems snappier over all. But with all the optimizations Delvik runtime it not really noticeable. The most notable difference is between switching task and apps. That's all it really offers to an Average Joe.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Thanks!
I guess I'll enable it and see
Can switching between ART and Davlik (with some apps installing/updating on one, others on the other) cause issues?
I just wanna try ART out for a few days on 4.4.2, switch a couple of times for speed comparison, and if unsatisfied, return to Davlik, but only if this doesn't cause issues of any kind.
Does it?
BoneXDA said:
Can switching between ART and Davlik (with some apps installing/updating on one, others on the other) cause issues?
I just wanna try ART out for a few days on 4.4.2, switch a couple of times for speed comparison, and if unsatisfied, return to Davlik, but only if this doesn't cause issues of any kind.
Does it?
Click to expand...
Click to collapse
when I switched over to ART, ALL my apps started to crash. But I had a really old PA-gapps package and that was the issue. I did post in the forums and someone told me to use another gapps ( cant remember sorry ) and that mostly solved all my problems except that the keyboard still crashed.
There was a problem with the PA-gapps package. But now, with the new ones, you shud be perfectly fine. Even whatsapp is fixed
1. Improved overall performance(made my 1st gen kindle fire fly, same with nexus)
2. Better battery life ( at least 30-1hr for me)
3. Faster app loading (assuming the app supports art should be noticeable)
Sent with Virtue
Which runtime are you running? Have you noticed any difference?
I tried switching to ART, but every time I restarted my phone it would spend 15 minutes upgrading ~100 applications. I restarted it about 4 times, and it upgraded every time.
I typically avoid ART. It produces random issues on my G2, Nexus 5 and S4. Dalvik for me until Lollipop!
geoff5093 said:
Which runtime are you running? Have you noticed any difference?
I tried switching to ART, but every time I restarted my phone it would spend 15 minutes upgrading ~100 applications. I restarted it about 4 times, and it upgraded every time.
Click to expand...
Click to collapse
You need to wait it out, it always takes awhile to update all of the applications when you initially change runtimes.
I'm on ART, no issues so far.
Maybe a dumb question, buy how do you switch?
Sent from a Droid Turbo via Tapatalk
disc.ordian said:
Maybe a dumb question, buy how do you switch?
Sent from a Droid Turbo via Tapatalk
Click to expand...
Click to collapse
Go to About Phone in settings, then click on the Build number until the toast notification tells you that you are a developer. Then go back and click on Developer Options and then Runtime.
geoff5093 said:
Which runtime are you running? Have you noticed any difference?
I tried switching to ART, but every time I restarted my phone it would spend 15 minutes upgrading ~100 applications. I restarted it about 4 times, and it upgraded every time.
Click to expand...
Click to collapse
im having same issue when using ART. it optimizes apps (15 of it) every time i reboot, ive rebooted at least 5 times, i think currently Turbo isnt very compatible with ART
Well ART on Kitkat is not even close to ART on Lollipop and ART on Kitkat is experimental so I don't know why people would be surprised when it doesn't work quite right...
theclash150 said:
Well ART on Kitkat is not even close to ART on Lollipop and ART on Kitkat is experimental so I don't know why people would be surprised when it doesn't work quite right...
Click to expand...
Click to collapse
I'm surprised 6 people have voted ART.
theclash150 said:
Well ART on Kitkat is not even close to ART on Lollipop and ART on Kitkat is experimental so I don't know why people would be surprised when it doesn't work quite right...
Click to expand...
Click to collapse
Well it worked flawlessly on Droid Maxx, and seemed faster than Dalvik. On Turbo it's always optimizing upon every reboot 15 apps. BTW has anyone else noticed weirdness about phone dialer? It takes several clicks and random presses on the screen to get the keypads to come up...
Did you guys have bench numbers for Dalvik vs. ART?
For me Dalvik seems to be slightly faster:
Dalvik: AnTuTu: 48989
ART: AnTuTu: 47467
Benchmarks do not accurately represent the increased responsiveness in the interface. Benchmarks generally are a pretty poor way to compare real world performance.
theclash150 said:
Benchmarks do not accurately represent the increased responsiveness in the interface. Benchmarks generally are a pretty poor way to compare real world performance.
Click to expand...
Click to collapse
We can argue ad infinitum, but benches are still better than a "gut feeling" or "I can see smooth"
Think what you want but ART runs the UI more smoothly regardless of what some "benchmark" says.
So does ART "optimize" on every boot? For some reason I didn't think it did, but when I switched to ART on my Turbo it seems every time I reboot it goes through the "optimizing apps".
I'm using ART just because we aren't rooted, so none of the good root-only apps that are incompatible with ART are an issue.
hajabooja said:
So does ART "optimize" on every boot? For some reason I didn't think it did, but when I switched to ART on my Turbo it seems every time I reboot it goes through the "optimizing apps".
Click to expand...
Click to collapse
Same here, that's why I switched back. Whenever it rebooted it optimized apps, and it took a good 10-20 minutes for it to finish. If it was on battery, the battery dropped significantly and the phone got very warm.
I ran both on my Razr Maxx HD, seems to get better battery life, and it seems a bit more responsive running Dalvik. That is just an uninformed opinion. I settled on Dalvik, it just feels nicer to me.
If you want to use ART I recommend doing the switch before you install anything from Google play not after when you have lots of apps installed.
Switched to ART just to see. First reboot optimized 255 apps (expected). Rebooted again, optimized 75 apps. Tried rebooting again and again optimized 75 apps. Anyone have any idea why? I'm thinking maybe it's because Verizon placed so many apps in system/app...
PerCompLLC said:
Switched to ART just to see. First reboot optimized 255 apps (expected). Rebooted again, optimized 75 apps. Tried rebooting again and again optimized 75 apps. Anyone have any idea why? I'm thinking maybe it's because Verizon placed so many apps in system/app...
Click to expand...
Click to collapse
Stop rebooting?
Sent from my XT1254
I've noticed that every time I reboot my Turbo, the device always goes through App Optimization. This wouldn't be that big of an issue except that it takes like 10 minutes and I've never had this problem with my past devices.
I suspect that this has to do with the fact that I'm running ART. However, I did the same with my last device and it didn't do app Optimization every time I rebooted.
Anyone else seeing this same thing?
Sent from my XT1254 using XDA Free mobile app
As you said, an issue with ART.
adrynalyne said:
As you said, an issue with ART.
Click to expand...
Click to collapse
Thank you for confirming this.
Sent from my Nexus 7 using XDA Free mobile app
cmchance said:
I've noticed that every time I reboot my Turbo, the device always goes through App Optimization. This wouldn't be that big of an issue except that it takes like 10 minutes and I've never had this problem with my past devices.
I suspect that this has to do with the fact that I'm running ART. However, I did the same with my last device and it didn't do app Optimization every time I rebooted.
Anyone else seeing this same thing?
Sent from my XT1254 using XDA Free mobile app
Click to expand...
Click to collapse
It shouldn't be doing it on every boot, that means it's wiping cache each time. It will do it if you install new apks but only for the ones you install. With art it does take very long, maybe try a FDR...
an21281 said:
It shouldn't be doing it on every boot, that means it's wiping cache each time. It will do it if you install new apks but only fo4 the ones you install. With dalai it does take very long, maybe try a FDR...
Click to expand...
Click to collapse
No, its an ART issue. There is no fix aside from not using it or not rebooting.
This is a known issue that will likely be resolved with lollipop. At least I hope...
PerCompLLC said:
This is a known issue that will likely be resolved with lollipop. At least I hope...
Click to expand...
Click to collapse
If it doesn't get fixed...
Considering ART is the only option there, I could see a class action lawsuit.
ART is experimental on KitKat, all you have to do is run Dalvik and no problem.
adrynalyne said:
If it doesn't get fixed...
Considering ART is the only option there, I could see a class action lawsuit.
Click to expand...
Click to collapse
Im not to worried about art not working on lollipop because i believe it will. I think the only issue I will have is to make sure all the apps that I used are optimized to run on art. I notice there are still quite a few that I still use that haven't yet.
Well I had lollipop on the nexus 6 and on the moto g. It's nothing special, kit kat is smoother and less bugs. The nexus 6 had a ton of problems. ART only reduces memory usage, other than that it's about the same as dalvik.
ryude said:
Well I had lollipop on the nexus 6 and on the moto g. It's nothing special, kit kat is smoother and less bugs. The nexus 6 had a ton of problems. ART only reduces memory usage, other than that it's about the same as dalvik.
Click to expand...
Click to collapse
Uh.....
Native app perfornance vs. JIT compiled apps.
Trust me, ART is worth it.
Nexus 6 performance sucks due to encryption, nothing else.
adrynalyne said:
Uh.....
Native app perfornance vs. JIT compiled apps.
Trust me, ART is worth it.
Nexus 6 performance sucks due to encryption, nothing else.
Click to expand...
Click to collapse
Speaking from personal experience here. I disabled encryption and it was still laggy.
ryude said:
Speaking from personal experience here. I disabled encryption and it was still laggy.
Click to expand...
Click to collapse
So am I.
I have a Nexus 7 and performance increased substantially.
I also have friends that disagree with you re: the N6. To each their own of course.
Seems to me, that while some apps are not compatible at all with ART, some just need more help. Could these be the ones that need recompiling on each boot?
My Droid Maxx takes 30 sec to do the same 5 apps on each boot!