5,595,815 Members 34,911 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Windows X
Old
(Last edited by Windows X; 22nd January 2014 at 10:24 AM.)
#1  
Senior Member - OP
Thanks Meter 1237
Posts: 722
Join Date: Sep 2006
Default How to setup ART and restore in recovery for KitKat 4.4/CM11 ROM

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.
Phone: Sony Xperia Z
ROM: Xperia Z: CM10.2 - Fidelity Edition with Xperia Z: Fidelity Z v6.0

Phone: Sony Xperia P
ROM: Xperia: Fidelity JB v2.0
Kernel: ThP JB kernel v10.2

Tablet: Sony Xperia Tablet Z
ROM: Xperia Tablet Z: CM10.2 - Fidelity Edition with Xperia Z: Fidelity Z v6.0

And Galaxy Tabs that still use WM8994
The Following 6 Users Say Thank You to Windows X For This Useful Post: [ Click to Expand ]
 
desalesouche
Old
#2  
Senior Member
Thanks Meter 1248
Posts: 1,477
Join Date: Feb 2012
Default 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.
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
The Following User Says Thank You to desalesouche For This Useful Post: [ Click to Expand ]
 
desalesouche
Old
#3  
Senior Member
Thanks Meter 1248
Posts: 1,477
Join Date: Feb 2012
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.
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
 
Untouchab1e
Old
#4  
Untouchab1e's Avatar
Senior Member
Thanks Meter 211
Posts: 919
Join Date: Apr 2007
You need to mount the data partition before running the commands mentioned in the first post there...
The Following User Says Thank You to Untouchab1e For This Useful Post: [ Click to Expand ]
Tags
4.4, art, cm11, dalvik, kitkat
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes