This script moves System Dalvik Cache in /cache partition (useful for Phones that saves system dalvik in /data partition and have a little /data partition, ex. Huawei U81xx)
You need a rooted phone and init.d support (if you want to use this as init.d script), otherwise you can run this via Script Manager.
You need a rooted phone and init.d support (if you want to use this as init.d script), otherwise you can run this via Script Manager.
Code:
#!/system/bin/sh
#Dalvik Cache Saver by Alberto96
if [ -d /cache/dalvik-cache ];
then
cd /data/dalvik-cache
cp -a system@* /cache/dalvik-cache
rm -r -f system@*
find /data/dalvik-cache -type l -delete
busybox find /cache/dalvik-cache/* -type f -exec cp -f -s {} /data/dalvik-cache/ \;
else
mkdir /cache/dalvik-cache
cd /data/dalvik-cache
cp -a system@* /cache/dalvik-cache
rm -r -f system@*
find /data/dalvik-cache -type l -delete
busybox find /cache/dalvik-cache/* -type f -exec cp -f -s {} /data/dalvik-cache/ \;
fi