How to setup ART and restore in recovery for KitKat 4.4/CM11 ROM

Search This thread

Windows X

Senior Member
Sep 27, 2006
743
1,305
I've just tested ART feature from friend's recommendation. After activating ART in my CM11 ROM, NFC and Themes Provider keep crashing and phone is not usable. So I think it's good idea to share how to revert ART setting without wiping phone or restore from backup.

Instructions to revert ART
1. Boot into recovery.
2. Run adb shell to access terminal.
3. Type 'rm /data/property/persist.sys.dalvik.vm.lib' This will remove setting default VM runtime to ART.
4. Clear Dalvik cache and reboot. Your phone should run normally now.

Instructions to set ART again
1. Boot into recovery.
2. Run adb shell to access terminal.
3. Type 'echo "libart.so" > /data/property/persist.sys.dalvik.vm.lib' This set default VM to art library file.
4. Clear Dalvik cache and reboot. Your phone should run with ART VM now.

Hope this helps.
 
Last edited:

desalesouche

Senior Member
Feb 6, 2012
3,651
4,297
tested on huawei honor (u8860)

desalesouche@NoGiveUp:~$ adb shell
~ # echo "libart.so" > /data/property/persist.sys.dalvik.vm.lib
/sbin/sh: can't create /data/property/persist.sys.dalvik.vm.lib: nonexistent directory

any suggestion? thank you.
 
  • Like
Reactions: R1kki

desalesouche

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

brent372

Senior Member
Apr 30, 2008
601
5
This saved my ass! Switched to ART and after reboot, settings would only FC. Could not change anything or switch back through Dev Options. Thank you!!!!

Sent from my HTC6525LVW using Tapatalk
 

Andrewtst

Senior Member
Aug 4, 2009
4,840
1,792
Johor
Thanks for the instruction. You save me as I don't have PC now and my custom ROM not support ART.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    I've just tested ART feature from friend's recommendation. After activating ART in my CM11 ROM, NFC and Themes Provider keep crashing and phone is not usable. So I think it's good idea to share how to revert ART setting without wiping phone or restore from backup.

    Instructions to revert ART
    1. Boot into recovery.
    2. Run adb shell to access terminal.
    3. Type 'rm /data/property/persist.sys.dalvik.vm.lib' This will remove setting default VM runtime to ART.
    4. Clear Dalvik cache and reboot. Your phone should run normally now.

    Instructions to set ART again
    1. Boot into recovery.
    2. Run adb shell to access terminal.
    3. Type 'echo "libart.so" > /data/property/persist.sys.dalvik.vm.lib' This set default VM to art library file.
    4. Clear Dalvik cache and reboot. Your phone should run with ART VM now.

    Hope this helps.
    1
    tested on huawei honor (u8860)

    desalesouche@NoGiveUp:~$ adb shell
    ~ # echo "libart.so" > /data/property/persist.sys.dalvik.vm.lib
    /sbin/sh: can't create /data/property/persist.sys.dalvik.vm.lib: nonexistent directory

    any suggestion? thank you.
    1
    You need to mount the data partition before running the commands mentioned in the first post there...