Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,777,893 Members 50,180 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 1291
Posts: 736
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 11 Users Say Thank You to Windows X For This Useful Post: [ Click to Expand ]
 
desalesouche
Old
#2  
Senior Member
Thanks Meter 1823
Posts: 1,841
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 1823
Posts: 1,841
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 246
Posts: 952
Join Date: Apr 2007

 
DONATE TO ME
You need to mount the data partition before running the commands mentioned in the first post there...
Im here to make awesome stuff happen!
The Following User Says Thank You to Untouchab1e For This Useful Post: [ Click to Expand ]
 
brent372
Old
#5  
brent372's Avatar
Senior Member
Thanks Meter 5
Posts: 589
Join Date: Apr 2008
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
Verizon HTC One ADR6500
 
Andrewtst
Old
#6  
Andrewtst's Avatar
Senior Member
Thanks Meter 1401
Posts: 4,206
Join Date: Aug 2009
Location: Johor

 
DONATE TO ME
Thanks for the instruction. You save me as I don't have PC now and my custom ROM not support ART.
Phone: Redmi Note & HTC ONE (M8) | ROM: Stock (Redmi) & Android Revolution HD 10.2 (M8)
Future Phone: Xiaomi Mi4

Ex. Phone: Nokia 3310, Samsung S500, Nokia 7610, 7270, 7280, SE K750, Nokia N73, LG Viewty KU990, Samsung Pixon, UltraTOUCH, OMNIA II, Nokia 3120 Classic, Google Nexus One, Samsung Galaxy S II, S III, Sony Xperia Z, Z Ultra, Samsung Galaxy Note 3.

Tablet: Sony Xperia Tablet Z | ROM: Stock v10.5.A.0.230
Future Tablet: Still Finding

Ex. Tablet: Google Nexus 10
Tags
4.4, art, cm11, dalvik, kitkat
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Software Build Automation with Jenkins – XDA Developer TV

Many members of the XDA community come to learn and begin in the exciting … more

Add Bits and Pieces of Honami to Your Current ROM

In the last few months, we’ve talked about quite a few Sony Honami-related projects. … more

Always Enter the Correct Password with HideNoPasswords

If you’ve ever entered apassword on your mobile device, you’ve surely … more

Revert to Stock Recovery Effortless with Simple Recovery Switcher

Android updates released as OTA packages are very easy to apply,but they … more