[AROMA][ HOW-TO ][4.4+] [ Enable ART Or Dalvik From Recovery ]

Search This thread

husen4u

Senior Member
Feb 17, 2012
1,185
1,512
Kuwait
I am always checking that file, When I had other android phones with enabled art, I know that after boot there is a process of optimising apps for ART, since after my boot nothing is happening, that is also the indicator that ART is not enabled.

What ROM you are using? Please check if libart.so & libart-compiler.so is exist in lib folder
?




I did everything as you say but it's not working.i tried a lot. i don't know why?????



Sent from my P6-U06 using xda app-developers app
 

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
the solution to get art fully working was the following one: in build.prop
replacing dalvik.vm.dexopt-data-only=0 with dalvik.vm.dexopt-data-only=1 and all went fine...
at least it worked for me. hope it would help you.
 

husen4u

Senior Member
Feb 17, 2012
1,185
1,512
Kuwait
Tried. Unfortunately doesn't work. Phone can't finish boot. Took those files from cm11 m5.

Sent from my SM-N9005 using XDA Premium 4 mobile app

Copy this files.
core-libart.jar from framework folder
Libart.so & libart-compiler.so from lib folder

Try to copy from different roms for your device.
Again i am saying i am not responsible for any thing try at your own risk.

Sent from my P6-U06 using xda app-developers app
 

dejson

Senior Member
May 21, 2007
602
375
Sarajevo
Thanks mate. I did everything. This rom seems to be un-ART-able.

This is the PIC from recovery.
 

Attachments

  • 20140408_222957(0).jpg
    20140408_222957(0).jpg
    253.3 KB · Views: 416

razen_kain

Senior Member
Jan 28, 2013
2,563
2,484
Carthage
Very handy! Thank you very much. I know more than a few people I'll be directing here.

Sent from my SGH-I777 using Tapatalk
 

dumbl3

Senior Member
Apr 19, 2012
358
96
OnePlus 11
So I have a sony xperia tablet z2 wifi 16GB (rooted). I enabled the developers option, but there is no 'select runtime' option available. So I checked: 'data/property/persist.sys.dalvik.vm.lib' with text editor an it says libdvm.so, meaning I am on dalvik like you said right?

No I am trying to see if ART is compatible, but where is this lib folder?

EDIT: I found the lib folder, libart.so and libart-compiler.so are present. So I tried to flash enableart.zip but when I reboot it kept on rebooting, it came as far as the intro sound/screen but there screen went black and it starts rebooting. So after 3 reboots I went back in recovery and flashed the enabledalvik.zip and then it booted just fine. So I guess there is a reason that there is no 'select runtime' option available in my developer options on the sony xperia tablet z2 wifi.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 127
    I Made 2 Small Scripts Flashable Files Around 100Kb Each.
    No Need To Change To Add Files Anythings
    Just
    Reboot To Recovery
    To Enable ART Flash This : Mega Devhost
    Wipe Dalvik Cache

    To Revert To Dalvik Flash This : Mega Devhost
    Wipe Dalvik/Cache

    First Of All ART Is Not Compatible With Xposed. Xposed Itself Change ART To Dalvik. So If You Want To Use ART Uninstall Xposed.

    To Check If You Are Using ART Or Dalvik
    Goto
    data/property/persist.sys.dalvik.vm.lib
    Open File In Text Editor
    If It Says libart.so means You Are On ART
    if It Says libdvm.so Means You Are On Dalvik.


    If libart.so and libart-compiler.so is Not Present in lib folder. Your ROM Doesnot Support ART.

    For Those Who Are Getting Update Binary Error An Aroma Package Is Made By @Patrics83
    Features :
    * It Doesn't Use Update Binary : So No More Update Binary Issue
    * It Will Show Which Run Time You Are Using.

    Download Link

    Thanks
    Regards
    Husen
    3
    I Made 2 Small Scripts Flashable Files Around 100Kb Each.
    No Need To Change To Add Files Anythings
    Just
    Reboot To Recovery
    To Enable ART Flash This : Mega Devhost
    Wipe Dalvik Cache

    To Revert To Dalvik Flash This : Mega Devhost
    Wipe Dalvik/Cache

    This is awesome! I'm looking for something like this in a long time, now i can keep them on my phone. And when my i get a bootloop or fc for switching to ART i do not need to factory reset my phone!
    2
    For Those Who Are Getting Update Binary Error An Aroma Package Is Made By @Patrics83
    Download Link
    2
    @husen4u: but is correct first zip to enable art? i see all two script report "Enabling Dalvik...", so i excract both updater-scripts and i compared them both and they are identical

    Compare enb-dalvik.sh files. They are not identical. Enable ART will switch your phone to ART
    2
    i'm not sure maybe u should check text inside file /data/property/persist.sys.dalvik.vm.lib If it contain libart.so, you are on ART. my phone also flashed this .zip but it's still dalvik. i don't know why. i am using rom cm11.

    No, still it is libdvm.so :crying:

    Are you both using xposed framework? Xposed do not work with ART and every boot it switches to dalvik