• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Avail] [MOD] relocate dalvik-cache to /dev [works]

stayboogy

Android Expert
Jun 15, 2012
867
285
i put this here because i think some have missed it in the merit sub-forums

relocate dalvik-cache to /dev partition


new script, simplified by me



**no support for link2sd / apps2sd in this release**


requirements:


a) rooted phone
b) cwm recovery
c) file explorer with root privileges
d) init.d scripting enabled http://androidforums.com/merit-all-...ripting-function-your-device.html#post5104672


***download files using a pc--i do not support / suggest using your phone***


dalvik2devfinal2


1) download script above

2) copy script to your "system/etc/init.d/" directory

3) set permissions to 777

4)
reboot to cwm recovery

5) select "advanced"

6)
select "wipe dalvik-cache"

7) select "yes"

8)
when finished, reboot phone
--will take a couple of minutes to boot, this is normal

9) verify that dalvik-cache was moved to /dev


[NOTE: /data/dalvik-cache will still exist, but /dev/dalvik-cache is bound to it, and it's not actually taking up any space]


**if not moved, check the "scriptlog.txt" in "/data/local/tmp/" for errors**


you should now have dalvik-cache in /dev--will survive subsequent reboots without wiping from cwm


**to move dalvik-cache back to original location, delete "dalvik2devfinal2" from "/system/etc/init.d/" and reboot phone**



HIT THE THANKS BUTTON


before:

beforecacherelocate.jpg


after:

afterrelocate.jpg




SPECIAL THANKS


**thanks to DeeJayAhmed @ XDA for his base script
http://forum.xda-developers.com/showthread.php?t=1638962**

*thanks to Motorhead1991 and valueforvalue for the inspiration*
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones