[Q] ART or Dalvik? - Verizon Galaxy Note 4 Q&A, Help & Troubleshooting

Well, there is an option in Developer Options to select either the old, trusty Dalvik cache or the new, snappy Android Run Time. I'm kind of inclined to select ART, since it promises faster response time... but I wanted to check with you folks to see what YOU decided to use.
So which do you prefer? And why? And have you encountered any issues? I'm using the Developer Edition, rooted with deodexed stock ROM.

ART seems buggy right now. I'll use Dalvik until android L
Sent from my bandaid smelling s-pen

I tried the art because I was curious also. It was very sluggish, so I just switched it back and left it..
Sent from my SM-N910V using Tapatalk

ART works well for battery life..... But is really slow to boot up. So if you restart your phone often it will be painful.

My phone got blazing hot after I set it to ART. Set it back to Dalvik and took it apart for a few minutes to let it cool down.

Using ART and everything is great. But ever since I had an update for S Health my phone must optimize 83 apps and it takes a good 5 minutes until I see my lock screen. Haven't tried to use S Health yet but it had FC on me a few times when trying to open it. Should I wipe the app's data and then reboot? Other than that I have seen nothing but positives from using ART.

will.bates94 said:
Using ART and everything is great. But ever since I had an update for S Health my phone must optimize 83 apps and it takes a good 5 minutes until I see my lock screen. Haven't tried to use S Health yet but it had FC on me a few times when trying to open it. Should I wipe the app's data and then reboot? Other than that I have seen nothing but positives from using ART.
Click to expand...
Click to collapse
As soon as i updated s health it no longer worked in ART. It's a bug. I had to Uninstall the updates and it worked again

scarygood536 said:
As soon as i updated s health it no longer worked in ART. It's a bug. I had to Uninstall the updates and it worked again
Click to expand...
Click to collapse
I never set up the app either. I uninstalled, set it up and now im gonna try to update and see if it holds up. Is it a bug related to ART or just in general?

I completely forgot that 4.4 brought ART along with it. Just enabled and yes the initial boot took a while because it recompiled apps from JIT to AOT.
I havent noticed any major slow downs besides right after first boot since then it has been fine. I wonder what this will do for battery life.

will.bates94 said:
I never set up the app either. I uninstalled, set it up and now im gonna try to update and see if it holds up. Is it a bug related to ART or just in general?
Click to expand...
Click to collapse
Oh idk I never bothered updating it in dalvik. Mine was set up and everything.
Sent from my bandaid smelling s-pen

scarygood536 said:
Oh idk I never bothered updating it in dalvik. Mine was set up and everything.
Sent from my bandaid smelling s-pen
Click to expand...
Click to collapse
Thanks. I'll have to investigate. Are apps really that picky when it comes to what runtime is used?

will.bates94 said:
Thanks. I'll have to investigate. Are apps really that picky when it comes to what runtime is used?
Click to expand...
Click to collapse
You'd have to ask someone more familiar with it. So far is only been s-health and the fact android upgrades everytime you restart that keeps me off ART. I imagine android 5 will implement ART better
Sent from my bandaid smelling s-pen

I ran with ART for a week or so things felt very snappy, but battery was worse for me anyways.
Sent from my SM-N910V

Related

camera no more working, need help

Hello,
today i played on my gnex a tower defender game... and i forget to close the game and wifi... after some time (3 or 4 hours) i looked at my phone and it was off (i guess because of the game and the wifi on )
after that i tried to reboot it after putting the power cable in.
it does only bootloop... so i though : super i guess i found a bug on the MIUI rom ....
so i first tried to reinstall that rom (without wiping... because i didn't want to loose my data)... it doesn't change anything
so i tried installing the latest AOKP (b39) still without wiping... i got a lot of errors on boot
so i did it again, this time wiping the data
it boot, it seams to works well... but after 30 min i wished to take a picture... and i got FC
I asked on the aokp thread if this is normal, it seams not
so i installed it again (and of course did a full wipe again... cache, data, davlik cache) but still no camera working
so i force the camera app to close and delete it data, but still no luck
i tried CM9 nightly and Foxhound 0.6 .... every rom refuse to make my camera works
any idea ? (i will try them after night... it is 2 AM now and i really need to sleep)
hope to see some answer in a few hours
Thanks in advance
do you have any nandroid backups saved?
It sounds like b39 may potentially have a Linaro optimization that breaks the camera; guessing. As far as flashing ROMs (markedly different) ROMs without wiping, good luck with that. B/U your apps/data with Titanium b/u or alike.
As mentioned above, hope you have nandroid.
B39 does NOT have any Linaro optimization, nor will future releases for the foreseeable future. Said by the dev himself on the release page.
Anyways, saw this happen on my gfs Sprint Gnex. Fixed it by clearing all and any data from the Camera app, disabling it, rebooting, enabling the camera app, and rebooted again. Haven't had the Camera FC since then.
Also, you should ALWAYS wipe data. Saying that you installed a rom but WITH wiping data makes me think that the Camera most likely doesn't work due to user error.
Sent from my Galaxy Nexus using Tapatalk 2
theking_13 said:
B39 does NOT have any Linaro optimization, nor will future releases for the foreseeable future. Said by the dev himself on the release page.
Anyways, saw this happen on my gfs Sprint Gnex. Fixed it by clearing all and any data from the Camera app, disabling it, rebooting, enabling the camera app, and rebooted again. Haven't had the Camera FC since then.
Also, you should ALWAYS wipe data. Saying that you installed a rom but WITH wiping data makes me think that the Camera most likely doesn't work due to user error.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
There's more to Linaro than the tool chain and 03 optimizations. Last time I looked at the aokp code review there were plenty of merged Linaro bits.
Edit: I agree optimization was the wrong choice of word.
Sent from my Galaxy Nexus
CMNein said:
There's more to Linaro than the tool chain and 03 optimizations. Last time I looked at the aokp code review there were plenty of merged Linaro bits.
Edit: I agree optimization was the wrong choice of word.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Its all good man, I know what you're referring to.
Sent from my Galaxy Nexus using Tapatalk 2
theking_13 said:
B39 does NOT have any Linaro optimization, nor will future releases for the foreseeable future. Said by the dev himself on the release page.
Anyways, saw this happen on my gfs Sprint Gnex. Fixed it by clearing all and any data from the Camera app, disabling it, rebooting, enabling the camera app, and rebooted again. Haven't had the Camera FC since then.
Also, you should ALWAYS wipe data. Saying that you installed a rom but WITH wiping data makes me think that the Camera most likely doesn't work due to user error.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
thanks everyones for answers.
i will try the method you said and cross fingers for it to work.
if not i will try an old nandroid backup
if not..... well i guess i will come here and cry for help
very fast feedback...
i let the phone turned off all night
i turned it on and tested it BEFORE even doing what you told... and it works again
crazy....
yesterday i reboot the phone at least 20 times and the problem was not gone
Remember. A Rom needs to settle and dig it's teeth into the phone.
It actually takes 2 weeks for all the bugs to work there way out I believe.

Art

Can you enable ART on G3?
prfraczek said:
Can you enable ART on G3?
Click to expand...
Click to collapse
Yup just did it and its rebooting.
Its under developer's option > Select runtime system > Use ART
Edit: After booting up the system with ART, the camera app immediately crashed. Whatsapp worked fine. The phone also got really hot when android was switching over to ART from Dalvik. Going to switch back to Dalvik when the phone cools down.
phone got really hot WHEN switching or after switching?
nap007 said:
phone got really hot WHEN switching or after switching?
Click to expand...
Click to collapse
Phone gets really hot while switching. It cooled down after it booted into art mode.
Sent from my LG-F400S using XDA Free mobile app
stunt_101 said:
Phone gets really hot while switching. It cooled down after it booted into art mode.
Sent from my LG-F400S using XDA Free mobile app
Click to expand...
Click to collapse
Its doing a lot switching to art ....
Here are some of the major new features implemented by ART.
Ahead-of-time (AOT) compilation
ART introduces ahead-of-time (AOT) compilation, which can improve app performance. ART also has tighter install-time verification than Dalvik.
At install time, ART compiles apps using the on-device*dex2oat*tool. This utility accepts*DEX*files as input and generates a compiled app executable for the target device. The utility should be able to compile all valid DEX files without difficulty. However, some post-processing tools produce invalid files that may be tolerated by Dalvik but cannot be compiled by ART.
So it its compiling every app you have on the phone to start on time instead of the little lag you get when opening some big apps.....so in reality your phone won't have to work as hard using art after the first time....
Sent from my SM-N900P using Xparent BlueTapatalk 2
I wish i can benefit from those point you've pointed out. but unfortunately many of the LG doesn't work with ART and will crash when i attempt to load it up. for instance, the camera app stopped working after switching over to ART.
I think LG should fix the camera issue. I've had the same problem with G2 over year ago.
TA
That is the only thing the apps need to be updated to support art and soon 64bit
Sent from my SM-N900P using Xparent BlueTapatalk 2
I've switched to art and had no problem with any apps I have everything so far works as it should
Sent from my LG-D855
---------- Post added at 08:17 PM ---------- Previous post was at 07:56 PM ----------
Phone seems faster with art but quadrant score is very low 13k Max
Sent from my LG-D855
Switched to ART from day one. Not had a single problem. Camera and everything else I've tried works as it should.
Can somebody check benchmarks both on art and dalvik? It's weird to get worse scores right?
Wysłane z mojego GT-I9300 przy użyciu Tapatalka
maschenazi said:
Switched to ART from day one. Not had a single problem. Camera and everything else I've tried works as it should.
Click to expand...
Click to collapse
Same here...
Depends on some apps you use. Not all apps are switched to art yet. I use a few that don't work with art. It's still not supported
I tried switching to ART but the whole phone became extremely slow and laggy. Did any of you guys experience this? Should I leave it for a while to sort itself out?
Also, a lot of my installed apps disappeared from the launcher? Is this normal as the apps do not support Art or should they still show up?
rjxtreme said:
I tried switching to ART but the whole phone became extremely slow and laggy. Did any of you guys experience this? Should I leave it for a while to sort itself out?
Also, a lot of my installed apps disappeared from the launcher? Is this normal as the apps do not support Art or should they still show up?
Click to expand...
Click to collapse
The first reboot after the switch from Dalvik to ART took about 10 minutes for me. It depends how many apps you have installed, as it needs to pre-compile all of them. After that I didn't notice anything being slower or missing.
In theory ART should make it faster to start applications and should help with battery life as well, as it doesn't need to compile the apps on the fly as you start them. That's the theory anyway. I had ART on on my Nexus 5 as well from the beginning and none of the apps I've used misbehaved.

Device running sluggish/lagfest stock rom AT&T

I've had my g3 since it was released for pre-order. The past two days the device has been running really slow, everything I do it seems there's a second or two delay especially with text input, its just stock rooted with xposed and greenify, titanium used to freeze all the bloat but that was day 1, just yesterday I was messaging someone on Facebook and there was a delay in typing a message, haven't added many apps on the device either, also my phone doesn't get hot and I don't leave my brightness no more than 40%, usually at auto 0%, I really don't want to factory reset but I might have to seeing its to slow to use yet there isn't really much running on the device. Any help would be appreciated thanks
Also in dev options animations are turned off
mine was running like that when using the chainfire supersu app, i was also getting bad battery life due to a wakelock related to it. i switched to the chainsdd app and now the phone is super smooth and the battery life is greatly improved.
ymmv
adiliyo said:
mine was running like that when using the chainfire supersu app, i was also getting bad battery life due to a wakelock related to it. i switched to the chainsdd app and now the phone is super smooth and the battery life is greatly improved.
ymmv
Click to expand...
Click to collapse
I also got a parsing error when trying to install g3 tweaks box if it means anything, might try a factory reset or an exchange, thankfully I have a nexus 7 2013 but it's a piece due to the plagued random reboot problem
socalforlife said:
I also got a parsing error when trying to install g3 tweaks box if it means anything, might try a factory reset or an exchange, thankfully I have a nexus 7 2013 but it's a piece due to the plagued random reboot problem
Click to expand...
Click to collapse
that's odd, tweaks box installed without a hitch for me.
what method did you use to root?
adiliyo said:
that's odd, tweaks box installed without a hitch for me.
what method did you use to root?
Click to expand...
Click to collapse
It was the ioroot I believe
socalforlife said:
It was the ioroot I believe
Click to expand...
Click to collapse
i used towel root for what it's worth. also, if you installed anything around when it started to bog down, maybe uninstall recent apps and see if that helps
adiliyo said:
i used towel root for what it's worth. also, if you installed anything around when it started to bog down, maybe uninstall recent apps and see if that helps
Click to expand...
Click to collapse
Parsing error was trying to install tweaksbox 1.1 beta btw, so I ran antutu and got 32k
socalforlife said:
Parsing error was trying to install tweaksbox 1.1 beta btw, so I ran antutu and got 32k
Click to expand...
Click to collapse
i'm on the 1.1 beta, installed fine. i haven't used a benchmarking app in a long time, but that's a pretty normal number from what other reviewers have gotten on this phone
adiliyo said:
i'm on the 1.1 beta, installed fine. i haven't used a benchmarking app in a long time, but that's a pretty normal number from what other reviewers have gotten on this phone
Click to expand...
Click to collapse
Off-topic does your nexus 7 do random reboots?
socalforlife said:
Off-topic does your nexus 7 do random reboots?
Click to expand...
Click to collapse
no, it's been really stable since i got it. it's on the L preview right now and is running like a champ. had it on PA before that

Art vs dalvik going back and forth

Is there anything wrong switching back and forth between ART VS DALVIK?
IT seems that some games won't operate properly in one or the other.
That said I notice that I cannot install real racing 3 from the play store. In fact if I search for it. It does not show up. If I click a direct link for it it says my device not supported.. Any ideas?
TKG26 said:
Is there anything wrong switching back and forth between ART VS DALVIK?
IT seems that some games won't operate properly in one or the other.
That said I notice that I cannot install real racing 3 from the play store. In fact if I search for it. It does not show up. If I click a direct link for it it says my device not supported.. Any ideas?
Click to expand...
Click to collapse
Did you modify your dpi?
Sent from my LG-D855 using Tapatalk
No box stock just have used art and dalvik through developer options ..
No alterations to anything
TKG26 said:
No box stock just have used art and dalvik through developer options ..
No alterations to anything
Click to expand...
Click to collapse
Maybe the game doesn't officially support our resolution.
For some apps that don't want to install via play store I install them through Amazon app store, but that's only if they are also available on there because it doesn't do some of these "officially" supported checks.
Sent from my LG-D855 using Tapatalk
That's what I'm thinking too.
Anyway to my origal question. Is there any issues switching back and forth
TKG26 said:
That's what I'm thinking too.
Anyway to my origal question. Is there any issues switching back and forth
Click to expand...
Click to collapse
No issue at all. Have smashed b/w dalvik and ART several times. Finally on ART, no lag, amazing battery life.
OK cool thanks. So save to experiment
Curious, I switched to ART once and after every time the phone was rebooted it came up as one app was being optimized, anyone else had this happen?
stevessvt said:
Curious, I switched to ART once and after every time the phone was rebooted it came up as one app was being optimized, anyone else had this happen?
Click to expand...
Click to collapse
This doesn't happen to me on my G3 or Nexus 7. Both of them only upgraded the apps once, so I have no idea what's going on with your phone.
nathan575 said:
This doesn't happen to me on my G3 or Nexus 7. Both of them only upgraded the apps once, so I have no idea what's going on with your phone.
Click to expand...
Click to collapse
Same here. After switching to ART, every time the phone is rebooted, it optimizes apps.
ART runs better for me.
Dalvik should have better compatibility.
I know some games simply don't work with ART, they FC immediately. Developers probably won't update it until L is out for a while.

How to prevent Android from killing apps?

So, I have this issue, where most of my apps can't stay in recent apps overnight. They all get killed, all but 5 I have noticed. I did the battery optimization thing for all apps I use on a daily basis. I have edited build.prop file and added sys.keep_app_1=com.whatsapp and so on for the rest of my apps. I also did that in the local.prop file. None of it worked. How to prevent my phone from killing apps overnight?
Nobody?!
Nabukodonosor said:
Nobody?!
Click to expand...
Click to collapse
If you are rooted you might try the app LSpeed and use one of the build in RAM profiles.
I am rooted. OK, I will try it. Thanks. It shuts my app very VERY aggressively. For instance, I was watching some youtube video yesterday, and in the other app I was searching for some products and was going back and forth between YouTube and Google Chrome, and every couple of times it restarted YouTube app, even though I was using it 2 minutes ago.
Nabukodonosor said:
I am rooted. OK, I will try it. Thanks. It shuts my app very VERY aggressively. For instance, I was watching some youtube video yesterday, and in the other app I was searching for some products and was going back and forth between YouTube and Google Chrome, and every couple of times it restarted YouTube app, even though I was using it 2 minutes ago.
Click to expand...
Click to collapse
Both youtube and chrome are resource hungry apps, that's why it keeps reloading.
I guess your device is 3 gb version as mine.
Mi A2 Lite cihazımdan Tapatalk kullanılarak gönderildi
It's 4/64gb version.
Nabukodonosor said:
It's 4/64gb version.
Click to expand...
Click to collapse
I have the 4 gb version as well and I don't face such an issue, if nothing works try factory reset, absolute solution :good:
Tried it already, didn't work. Try leaving 10-15 apps opened in the evening, and see in the morning if they are still in recent apps. And tell me tomorrow.
thorin0815 said:
If you are rooted you might try the app LSpeed and use one of the build in RAM profiles.
Click to expand...
Click to collapse
It didn't work.
Nabukodonosor said:
It didn't work.
Click to expand...
Click to collapse
Well, then you probably need a custom rom. Android One is known to be optimized for dumping non needed tasks. You could try to disable battery optimizing for the apps you would like to stay alive.
Tried that too, didn't work.
My previous phone was 2Gb running android 6. Now i have a mi a2 life 4Gb and it is OK except for 2 games.
Apparently there's some AI that learns what you use but after many weeks no change.
Most apps open pretty fast. It's only these 2 games that I run daily. Annoying to have to wait for them especially since the old phone was able to keep them cached.
I tried the low-memory config (magisk module) but it didn't help. I guess android has changed its algorithm. I'm resigned to it.
It's insane. What's the point of having 4, 6, 8 or 10GB of ram if you can't use it?!
Connect it to a monitor, install Taskbar app and SecondScreen app, enable Freeform windows and turn your phone into a mediocre PC. Assuming you can get all the resources back from OS's hidden service threads of course.
Facing the same issue
facing same issue specially after android 10 update. Change apps back and forth even in recent apps menu kills the app. My phone is 4/64.
shak33l said:
facing same issue specially after android 10 update. Change apps back and forth even in recent apps menu kills the app. My phone is 4/64.
Click to expand...
Click to collapse
Android 10 has a known problem. Rebooting helps. For how long seems to vary. I get a week or so, some people only get a day.
I had the same problem when I was unrooted during the Android 10 update crash. After rooting and installing Lspeed again, Android is not killing apps anymore as I set these settings

Categories

Resources