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.