Skip to content

Instantly share code, notes, and snippets.

@marek-saji
Created January 12, 2013 20:57
Show Gist options
  • Save marek-saji/4520421 to your computer and use it in GitHub Desktop.
Save marek-saji/4520421 to your computer and use it in GitHub Desktop.
Move dalvik cache of selected apps to SD card.
#!/system/xbin/busybox ash
cd /data/dalvik-cache
find . \
-type f \
\( \
-name '*com.adobe.reader*.dex' \
-or \
-name '*com.google.android.apps.docs*.dex' \
-or \
-name '*com.instagram.android*.dex' \
-or \
-name '*com.google.android.apps.map*.dex' \
-or \
-name '*com.opera.browser*.dex' \
-or \
-name '*com.tumblr*.dex' \
\) \
| while read dex
do
echo '## ' $dex
cp "$dex" "/mnt/sdcard/Android/dalvik-cache/$dex"
ln -sfn "/mnt/sdcard/Android/dalvik-cache/$dex" "$dex"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment