Created
January 12, 2013 20:57
-
-
Save marek-saji/4520421 to your computer and use it in GitHub Desktop.
Move dalvik cache of selected apps to SD card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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