4.4 Dalvik vs. ART - Nexus 4 Q&A, Help & Troubleshooting

i just switched to ART instead of Dalvik and its looking pretty slow for me right now. looooong boot and slow "Android is upgrading..."
will i see any difference?

Once its boots up; its fast. As Google mentioned > This is a preview of work in progress in KitKat that can be turned on in Settings > developer options.
Sent from my Nexus 4 using Tapatalk

badboy47 said:
Once its boots up; its fast. As Google mentioned > This is a preview of work in progress in KitKat that can be turned on in Settings > developer options.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Any particular settings required. pls assist if u know. further, does it make any difference on 2g RAM whether use dalvik or art.?

The fact that it take longer to boot (for the first boot only) conform with how ART work. Your questions can be answered by reading "What is ART" in this article: http://www.androidpolice.com/2013/1...-in-secret-for-over-2-years-debuts-in-kitkat/

eksasol said:
The fact that it take longer to boot (for the first boot only) conform with how ART work. Your questions can be answered by reading "What is ART" in this article: http://www.androidpolice.com/2013/1...-in-secret-for-over-2-years-debuts-in-kitkat/
Click to expand...
Click to collapse
ahhh yes.... rebooting with art and gonna give it a go for a day.

okay when running with ART and i honestly see no difference except quite a bit of lag when opening apps and a very hot phone. going back to dalvik, less heat,less lag. for the guy that said that ART was fast....well buddy....this phone is already fast and thats without ART. i know its still early in the game for it,but,as of right now....dalvik it is.

Related

Art vs Dalvik?

What is Art? Is it risky to change to art in developer options?
Sent from my AOSP on Mako using XDA Premium 4 mobile app
Orry520 said:
What is Art? Is it risky to change to art in developer options?
Sent from my AOSP on Mako using XDA Premium 4 mobile app
Click to expand...
Click to collapse
http://www.xda-developers.com/android/new-runtime-compiler-in-android-4-4/
It's not risky, but you will have an eternal boot after rebooting, and the effect, nowadays is 0. Wait till future android releases, when ART will be improved.
ART
luiseteyo said:
It's not risky, but you will have an eternal boot after rebooting, and the effect, nowadays is 0. Wait till future android releases, when ART will be improved.
Click to expand...
Click to collapse
I have a nexus 7 2013 and tried an alpja of android 4.4. Experimented with the ART option and my device did boot. Just had an awful lot of force closes. But the performanve difgerence on working apps is very impressive. I ran quadrant and my cpu score doubled
TEW999 said:
I have a nexus 7 2013 and tried an alpja of android 4.4. Experimented with the ART option and my device did boot. Just had an awful lot of force closes. But the performanve difgerence on working apps is very impressive. I ran quadrant and my cpu score doubled
Click to expand...
Click to collapse
I don't know. I didn't experience a thing in my n4. I didn't do a benchmark but I am sure it didn't improve.. And yes, whatsapp fc
Next time i have a tinker with aosp 4.4 ill post a screenshot of dalvik vs art. See what people think. Hopefully ART will reolave dalvik completely in the next version of android
TEW999 said:
I ran quadrant and my cpu score doubled
Click to expand...
Click to collapse
This is probably because the benchmark isn't working properly with the new VM. I sincerely doubt Dalvik is wasting 50% of the CPU's performance.
evilspoons said:
This is probably because the benchmark isn't working properly with the new VM. I sincerely doubt Dalvik is wasting 50% of the CPU's performance.
Click to expand...
Click to collapse
i doubt that it wont, ipod touch does better then gnex on cpu things
evilspoons said:
This is probably because the benchmark isn't working properly with the new VM. I sincerely doubt Dalvik is wasting 50% of the CPU's performance.
Click to expand...
Click to collapse
it does. when using the s4 dalvik during 4.3, nexus scores did nearly the same. and the scores using art or the s4 dalvik is nearly the same.
You might be interested in a video I just put together.
Nark.GA60 said:
You might be interested in a video I just put together.
Click to expand...
Click to collapse
Good job on the hard work. I didn't notice load times, but I did notice a difference in the smoothness of scrolling. Homepage and others like Internet.
Sent from my Nexus 4 using Tapatalk
At the moment I personally would not use ART over Dalvik, simply because even Google does not consider it ready for primetime yet.
I know, that normally doesn't mean much given the amount of tinkering we are doing with out phones, but on something this integral to the OS, I would wait until the original developers consider it stable, and once the app devs can have a crack at it.
For those who have tested, is it normal to have to build the cache/optimizing 60+ apps on each reboot? I'm assuming it's the Gapps that is being affected? Any work around discovered, so far?
sgtkwol said:
For those who have tested, is it normal to have to build the cache/optimizing 60+ apps on each reboot? I'm assuming it's the Gapps that is being affected? Any work around discovered, so far?
Click to expand...
Click to collapse
normal with ART. itll do that every reboot when using ART. no work around, its supposed to do that. besides youre lucky, i get 120 apps rebuilding their dalvik on every boot.
simms22 said:
normal with ART. itll do that every reboot when using ART. no work around, its supposed to do that. besides youre lucky, i get 120 apps rebuilding their dalvik on every boot.
Click to expand...
Click to collapse
Guess I'll wait for better stability (using a Gnex, but Google search for Dalvik vs ART brought me here) before I throw the switch. I don't mind random reboots for bleeding edge, but if they take 5 minutes, it sucks.
sgtkwol said:
Guess I'll wait for better stability (using a Gnex, but Google search for Dalvik vs ART brought me here) before I throw the switch. I don't mind random reboots for bleeding edge, but if they take 5 minutes, it sucks.
Click to expand...
Click to collapse
i use a custom 4.3 kernel too.. so whatll hapoen is itll get to like app 80 then freeze. ill force reboot it and itll start over. sometimes itll take an hour before it actually finishes, lol. honestly, for now, dalvik is the better of the two. oh, and i miss my gnex, it got stolen 2 months ago
simms22 said:
normal with ART. itll do that every reboot when using ART. no work around, its supposed to do that. besides youre lucky, i get 120 apps rebuilding their dalvik on every boot.
Click to expand...
Click to collapse
Guys, my N5 rebuilt the apps the first time I rebooted after activating ART. Since then, I have rebooted a couple of times and the apps have not rebuilt and the runtime is still ART.
Not sure why the behavior is different from phone to phone and it makes me wonder whether I should switch back to Dalvik.
Has anyone experienced any issue after reverting from ART to Dalvik?
Wolfy666 said:
Guys, my N5 rebuilt the apps the first time I rebooted after activating ART. Since then, I have rebooted a couple of times and the apps have not rebuilt and the runtime is still ART.
Not sure why the behavior is different from phone to phone and it makes me wonder whether I should switch back to Dalvik.
Has anyone experienced any issue after reverting from ART to Dalvik?
Click to expand...
Click to collapse
no. i go back and forth frequently, no issues. from what i hear from n5 users, its the same, its not getting rebuilt every boot. but, these are n4's
simms22 said:
normal with ART. itll do that every reboot when using ART. no work around, its supposed to do that. besides youre lucky, i get 120 apps rebuilding their dalvik on every boot.
Click to expand...
Click to collapse
Gnome's odexed version fixed this issue, only rebuild cache on first enable of ART. Not every reboot.
Sent from my Nexus 4 using Tapatalk
---------- Post added at 04:54 PM ---------- Previous post was at 04:45 PM ----------
steadly2004 said:
Gnome's odexed version fixed this issue, only rebuild cache on first enable of ART. Not every reboot.
There's also an updated pagapps that works for ART and divlak
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Sent from my Nexus 4 using Tapatalk
---------- Post added at 04:56 PM ---------- Previous post was at 04:54 PM ----------
Gnome's odexed version fixed this issue, only rebuild cache on first enable of ART. Not every reboot.
There's also an update pagapps that works with dalvik and ART.
Sent from my Nexus 4 using Tapatalk
Hi!
I upgraded to Android 4.4 KitKat on my Nexus 4 from here:
developers.google.com/android/nexus/images#occam
deleted file in flash-all.bat option "-w" to save my apps and settings. A few hours later I decided to try switch to ART. But I got a bootloop. Can I via fastboot mode go back to dalvik?

What ART does for regular Joe?

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

ART vs Dalvik

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

ART Runtime VS. Dalvik Runtime

I have just activated developer mode on my S5 and have changed to ART runtime to give it a test drive. I'm at the "Android is upgrading..." screen and it says "Optimizing app 103 of 379". Let's see what happens. Apparently ART is supposed to have a faster and more battery efficient runtime than the Dalvik runtime.
Well, after booting up for the first time applications that I had transferred to my MicroSD card have loaded tremendously faster than before. Also, applications are opening up way faster than before. I noticed than my RAM usage is way down than when I was using Dalvik runtime (down to 1.37 from my previous 1.76 or so).
I will keep on using ART all of this next week and report any bugs I come across during this time. I've yet to find out if this really saves battery like people are claiming out there.
I like ART, but it's a little funky
I really like ART, but for me the two biggest drawbacks are:
Xposed Framework does not work.
Some apps crash on ART. Most notably, Threes which is one of my favorite games, and the camera seemed to crash sometimes on ART.
I can live with #2, but #1 is a major pain point. I'm looking forward to getting Lollipop on this phone, which will make ART standard (and more stable than its Jellybean implementation). I know Xposed will probably go away, but I think I can manage.
harpdarp said:
I really like ART, but for me the two biggest drawbacks are:
Xposed Framework does not work.
Some apps crash on ART. Most notably, Threes which is one of my favorite games, and the camera seemed to crash sometimes on ART.
I can live with #2, but #1 is a major pain point. I'm looking forward to getting Lollipop on this phone, which will make ART standard (and more stable than its Jellybean implementation). I know Xposed will probably go away, but I think I can manage.
Click to expand...
Click to collapse
yes, the camera will crash occasionally, which for me is really a deal breaker. I've used it several times, but can't stick with it because of the wonkiness of app crashes. When using it, I did not have any visible speed differences from dalvik, so meh. 5.0 will fix all that.
Don't see the point of this thread when it is a known fact ART is better and more efficient. Google is your friend, there are multiple discussions on this.
JoeFCaputo113 said:
Don't see the point of this thread when it is a known fact ART is better and more efficient. Google is your friend, there are multiple discussions on this.
Click to expand...
Click to collapse
It is a known fact that you can either participate or not participate at all! So please spare us your whining. If you don't see the point then leave the thread and move on to something of interest to you.
This is a forum where you can start a thread on basically anything of interest to people that have a mobile device and want to talk about development, ROMs, or just have a general discussion.
ZangetsuSX said:
It is a known fact that you can either participate or not participate at all! So please spare us your whining. If you don't see the point then leave the thread and move on to something of interest to you.
This is a forum where you can start a thread on basically anything of interest to people that have a mobile device and want to talk about development, ROMs, or just have a general discussion.
Click to expand...
Click to collapse
You should read the rules kiddo. You can't just "start a thread on basically anything"... nahh, not how it works.
From the Moderator
There many of these threads already in existence...... not sure why we need another........ here Search is your friend
http://forum.xda-developers.com/sitesearch.php?q=art vs dalvik s5
That Said...... to avoid further incitement..........
.............THREAD IS CLOSED............
thanks, ~~~ oka1

App Optimization Issue

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!

Categories

Resources