Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[TOOL] [4.4+] [AROMA] Switch D2A_RT - Switch between runtimes easily from Recovery

$
0
0
Switch D2A_RT
Tool by hnkotnis


Hello Everyone!

I installed CM11 Kitkat on my Samsung Galaxy S Plus. I didn't wanted to activate the Developer's option in settings for next 5 days (Because I don't want my friends mess around). But I wanted to switch over to ART. So I had such idea that I can do this from recovery.
But I also had idea, due to my previous work with Aroma Installer, that I can create a single zip that can revert back to Dalvik also.

I found that after Factory Restore runtime is set to Dalvik again.
So I concluded that it is stored in /data
After messing around with the /data partition, I found where selected runtime is saved.
I created such a zip and I am sharing with you.

Meanwhile, when I was writing this thread, similar thread suggest showed me another tool of XDA Senior Member husen4u.
However his tool has 2 different files required to be flashed.
I did not copy his work, but runtime change code is same for all Android 4.4+, however I still give him credits, because he created similar project first.

So I present you my new tool :- Switch D2A_RT

So general idea is this tool can change ART <------> Dalvik from single zip.

Downloads:-
File it attached at bottom of this post.

Quote:

MD5 Sum:- 60a5261f35a969e38816699159b285a1
Scanned with VirusTotal. NO VIRUS FOUND!
Detection ratio :- 0/50
https://www.virustotal.com/en/file/b...is/1397214029/
Instructions:-

0. You need a Android 4.4+ ROM. :D
1. Download and put the zip file in any storage.
2. Go to recovery (use any recovery, I used CWM Touch 6.0.3.6).
3. Flash the zip file and navigate through Aroma Menu.
4. Choose ART or Dalvik and Reboot.
5. Rebooting can take lot of time (depending on number of apps). CyanogenMod 11 users can see "Android is upgrading" screen.
  • ENJOY!!!

FAQ (Frequently Asked Questions):-
 
Quote:

  • Phone bootlooping after changing runtime to ART?
=> Change runtime to Dalvik back again. Your phone (may) not be compatible.
  • Apps crash with ART as runtime?
=> That is not my fault. ART is in primary stage and many apps do not support ART. Switch back to Dalvik to use such apps.
  • Status 0 Error while flashing the zip?
=> Relax. Take update-binary of ROM of your device. Rename it to "update-binary-installer" and use it to replace its counterpart from zip.
  • Runtime is not changing to ART?
=> 1) Uninstall Xposed Framework, Reboot. Then try again. Xposed and ART don't work simultaneously.
Or_2) Check if "libart.so" and "libart-compiler.so" are in /system/lib. If they don't exits, ROM is not compatible with ART.
Or_3) Open "/data/property/persist.sys.dalvik.vm.lib" with text editor and find what is runtime.
  • You stole XYZ's (XYZ is example person's name) work.
=> I sincerely tell you, I didn't do that. I discovered this on my own after scanning all files in /data.


I tested this on my SGS+ GT-I9001 with CM11. Both functions work. However there might be some minor GUI/icon/picture size errors.
But main functions of this work fine.

Disclaimer:-
Quote:

Developer of this tool, hnkotnis, has no responsiblity if your phone, memory card or you are bricked, bootlooped or any type of damage.
You are using this tool on your own and you take whole responsibility of any damage caused.
YOU CANNOT MODIFY, COPY OR PUBLISH THIS WITHOUT MY PERMISSION.
Press Thanks if helped.


Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>