[Q] Is it possible to build ART-only?

rmanne

Senior Member
Feb 13, 2012
83
58
0
Pittsburgh
I've tried changing build/target/product/core_minimal.xml with
Code:
PRODUCT_RUNTIMES := runtime_libdvm_default
PRODUCT_RUNTIMES += runtime_libart
to
Code:
PRODUCT_RUNTIMES := runtime_libart
but it caused a bootloop

EDIT: I tried the build again this time using
Code:
PRODUCT_RUNTIMES := runtime_libart_default
, and this time, it refused to start up. I pulled the battery, put it back it, and all of a sudden, it started working, buggy yes, but at least it booted up. When I went into dev settings expecting to see no option to change runtime, I saw "libdvm.so", "libart.so", AND "libartd.so". Well that didn't work out as planned....
EDIT2: *sigh* I swear my phone is playing with me. Or maybe 2nd time is the charm. But it worked flawlessly. Trying a 3rd time with gapps this time.
 
Last edited:

JustZaphod

Senior Member
Oct 22, 2013
920
414
0
Nowhere
I've tried changing build/target/product/core_minimal.xml with
Code:
PRODUCT_RUNTIMES := runtime_libdvm_default
PRODUCT_RUNTIMES += runtime_libart
to
Code:
PRODUCT_RUNTIMES := runtime_libart
but it caused a bootloop

EDIT: I tried the build again this time using
Code:
PRODUCT_RUNTIMES := runtime_libart_default
, and this time, it refused to start up. I pulled the battery, put it back it, and all of a sudden, it started working, buggy yes, but at least it booted up. When I went into dev settings expecting to see no option to change runtime, I saw "libdvm.so", "libart.so", AND "libartd.so". Well that didn't work out as planned....
EDIT2: *sigh* I swear my phone is playing with me. Or maybe 2nd time is the charm. But it worked flawlessly. Trying a 3rd time with gapps this time.
ART is still in its development stages, most apps arent optimized for it yet..
I have a Nexus 7 2013 and Dalvik still runs better.. I wish I could add those Bionic and Dalvik mods to this phone..
 

jai794

Member
Jul 30, 2013
22
0
0
If ART is only that one file then couldn't you rename it to libdvm.so from libart.so and then replace it?

Sent from my SAMSUNG-SGH-I747 using xda app-developers app
 

jlmancuso

Senior Member
Apr 26, 2011
5,638
5,840
0
houston, tx
I've tried changing build/target/product/core_minimal.xml with
Code:
PRODUCT_RUNTIMES := runtime_libdvm_default
PRODUCT_RUNTIMES += runtime_libart
to
Code:
PRODUCT_RUNTIMES := runtime_libart
but it caused a bootloop

EDIT: I tried the build again this time using
Code:
PRODUCT_RUNTIMES := runtime_libart_default
, and this time, it refused to start up. I pulled the battery, put it back it, and all of a sudden, it started working, buggy yes, but at least it booted up. When I went into dev settings expecting to see no option to change runtime, I saw "libdvm.so", "libart.so", AND "libartd.so". Well that didn't work out as planned....
EDIT2: *sigh* I swear my phone is playing with me. Or maybe 2nd time is the charm. But it worked flawlessly. Trying a 3rd time with gapps this time.
There is a line to control build type you can do dalvik, art, or both. I will dig around and give you specific path and file name.
 

DigitalMD

Senior Member
Mar 16, 2010
2,931
639
0
Washington DC
THe real question is why would you want to do this? ART is still experimental and it gains you nothing to build for ART only since ANdroid will only run one or the other. Not both at once.
 

jlmancuso

Senior Member
Apr 26, 2011
5,638
5,840
0
houston, tx
THe real question is why would you want to do this? ART is still experimental and it gains you nothing to build for ART only since ANdroid will only run one or the other. Not both at once.
The actual build is no different except it has a choice of ART or dalvik. While ART maybe experimental it does make a huge difference in performance and battery life plus there are very few apps (almost none) that will not run in ART.
 

DigitalMD

Senior Member
Mar 16, 2010
2,931
639
0
Washington DC
The actual build is no different except it has a choice of ART or dalvik. While ART maybe experimental it does make a huge difference in performance and battery life plus there are very few apps (almost none) that will not run in ART.
Yes, perhaps , we will see, but, the application has nothing to do with that, ART , like Dalvik is a run time environment set by the ROM, not the app.
 

adamcooks

Senior Member
Aug 4, 2010
413
93
0
NYC
Yes, perhaps , we will see, but, the application has nothing to do with that, ART , like Dalvik is a run time environment set by the ROM, not the app.
I would check your sources on that. The app ends up into trouble usually when it has to spawn another app, e.g. trying to open a pdf in papyrus wouldn't work because of art(fixed now).

Sent from my GT-N7105 using XDA Premium 4 mobile app
 
  • Like
Reactions: CNexus
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone