Boot loop on Android after change the Dalvik Runtime to ART Runtime
Today I experienced a boot loop after change the Dalvik Runtime to ART Runtime (https://source.android.com/devices/tech/dalvik/art.html) on CyanogenMod 11.
Initially, the only solution that I found was wiping all data and cache, some even mentioned reinstall the ROM, but on XDA foruns I found an easier (and better) fix for that problem.
Hold Power Button and Down Button;
Select "boot on recovery";
On Recovery Mode, plug your device in your PC;
On your computer, open the terminal (CMD on Windows) and type "adb devices' to confirm is devices is connected on ADB (How to install ADB on your PC);
Now, type "adb pull /data/property/persist.sys.dalvik.vm.lib" in terminal, you will pull this settings file to your PC;
Open the file and replace the "libart.so" with "libdvm.so";
Now, push back the file with "adb push persist.sys.dalvik.vm.lib /data/property/";
Reboot the device;
It's done!
Take care!
In portuguese:
Caso você tenha tido algum problema de loop infinito ao trocar o runtime de Dalvik para ART, siga os passos a seguir para corrigir o problema sem precisar formatar o aparelho:
Reinicie o aparelho em modo recovery;
Conecte ele ao seu computador através do USB;
Abra um terminal e digite "adb devices" para saber se você está vendo o aparelho através do ADB (Caso não saiba o que é ADB, veja o link acima ou procure no Google);
Digite o comando "adb pull /data/property/persist.sys.dalvik.vm.lib" para puxar o arquivo de configuração;
Edite o arquivo que você baixou e altere "libart.so" por "libdvm.so";
Após salvar o arquivo, envie ele de volta com o comando "adb push persist.sys.dalvik.vm.lib /data/property/";
Reinicie o dispositivo;
Pronto!











