Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Stop Your Screen From Turning Off with KeepItOn

We all know the feeling of reading a news article orrather longdocument, when our screen … more

The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Windows X

22nd January 2014, 11:20 AM   |  #1  
OP Senior Member
Thanks Meter: 1,301
 
739 posts
Join Date:Joined: Sep 2006
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 by Windows X; 22nd January 2014 at 11:24 AM.
The Following 11 Users Say Thank You to Windows X For This Useful Post: [ View ]
12th March 2014, 04:27 PM   |  #2  
Senior Member
Thanks Meter: 2,293
 
2,128 posts
Join Date:Joined: Feb 2012
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.
The Following User Says Thank You to desalesouche For This Useful Post: [ View ]
3rd April 2014, 04:22 PM   |  #3  
Senior Member
Thanks Meter: 2,293
 
2,128 posts
Join Date:Joined: 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.
4th April 2014, 08:39 AM   |  #4  
Untouchab1e's Avatar
Senior Member
Thanks Meter: 594
 
1,085 posts
Join Date:Joined: Apr 2007
Donate to Me
More
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: [ View ]
29th May 2014, 03:56 AM   |  #5  
brent372's Avatar
Senior Member
Thanks Meter: 5
 
599 posts
Join Date:Joined: Apr 2008
More
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
2nd July 2014, 09:04 PM   |  #6  
Andrewtst's Avatar
Senior Member
Flag Johor
Thanks Meter: 1,496
 
4,345 posts
Join Date:Joined: Aug 2009
Donate to Me
More
Thanks for the instruction. You save me as I don't have PC now and my custom ROM not support ART.
25th October 2014, 07:56 AM   |  #7  
Nicklas Van Dam's Avatar
Senior Member
Flag tangerang
Thanks Meter: 52
 
325 posts
Join Date:Joined: Dec 2013
More
Post
excuse me, i've been try to switch to art with adb shell, and my phone is boot up but can't get into home screen, it just stuck on starting apps? why ya?

Post Reply Subscribe to Thread

Tags
4.4, art, cm11, dalvik, kitkat
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes