Would be great if someone could make this into an app.
This has been brought up in a few places was curious if anyone else has any scripts that they use to perform tasks on there phone?
I really can't take credit for most any of this, I've just modified them a bit to fit my needs.
These are not technically about moving caches only
but scripts in general
this moves market, browser, and streetview caches to your sdcard, and should be saved on the sdcard as transfer.sh. There are many other caches (myspace, imeem, etc) out there that can be added to the following two scripts for you to personalize, I just happen to use these.
this is for emptying those caches. should be saved on the sdcard as deleteCache.shyou can run the script with this in terminalchmod 0777 /data/local/bin/transfer.sh
mkdir /sdcard/cache
rm -R /data/data/com.android.vending/cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
rm -R /data/data/com.android.browser/cache/webviewCache
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache /data/data/com.android.browser/cache/webviewCache
rm -R /data/data/com.google.android.street/cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache /data/data/com.google.android.street/cache
#mkdir /data/local/bin
#cp /sdcard/transfer.sh /data/local/bin
#chmod 0755 /data/local/bin/transfer.sh
#transfer.sh
finally this is one I made up to remove the general email program, the amazon store and the alarm clock. It works but brings up some errors, perhaps somebody could help me with what I'm doing wrong. which should be saved as remove.sh on the sd.which you can do by typing this in terminal#!/bin/bash
rm -R /sdcard/cache/webviewCache/*
rm -R /sdcard/cache/streetCache/*
rm -R /sdcard/cache/marketCache/*
sh /sdcard/deleteCache.sh
and i run it by typing the following into terminal#!/bin/bash
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
rm /system/app/com.amazon.mp3.apk
rm /system/app/Email.apk
rm /system/app/Email.odex
rm /system/app/AlarmClock.apk
rm /system/app/AlarmClock.odex
sh /sdcard/remove.sh
Last edited by constellanation; 01-28-2009 at 09:21 PM.
Would be great if someone could make this into an app.
Steel cache to sd card
cd /data/data/com.kolbysoft.steel/cache
rm -R webviewCache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache
*NOTE*: If the above code does not work for steel browser because there is no cache folder try this:
cd /data/data/com.kolbysoft.steel
mkdir cache
cd cache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache
shameless bump of my own post for possible help
also I think I'm probably going to add the calculator to this since I checked out handycalc and I like some of its included options better.this is a script I'm working on to remove the general email program, the amazon store and the alarm clock. It works but brings up some errors, perhaps somebody could help me with what I'm doing wrong. which should be saved as remove.sh on the sd.
and i run it by typing the following into terminal#!/bin/bash
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
rm /system/app/com.amazon.mp3.apk
rm /system/app/Email.apk
rm /system/app/Email.odex
rm /system/app/AlarmClock.apk
rm /system/app/AlarmClock.odex
sh /sdcard/remove.sh
guys I'm having a bit of a problem getting the google maps cache to the sd. when i type the first line: "cd /data/data/com.google.android.apps.maps" without quotations it goes through no prob. but when i type in : "mdir /sdcard/cache/files/maps" its says
"mkdir failed for /sdcard/cache/files/maps no such file or directory" any clue?? I have the browser, market, steel, and streetview caches all on the sd nd work just fine.. idk wats goin on
ALL White G1
Cupcake
Cyan 3.6.3
Hero Theme 1.4.5
apps 2 SD | 85 Mb free
you probably are trying to create a folder in a non existant folder
try doing
mkdir /sdcard/cache/files
mkdir /sdcard/cache/files/maps
then it'll probably work.
Last edited by constellanation; 01-28-2009 at 09:48 PM.
would loooovvveee to move the myspace app cache to sd card.....
help?
I've actually never seen one for myspace, thought I read it somewhere, but I don't use myspace so....
a small note, a script in this sense is a file saved to the sdcard, that will run many commands by typing a certain action command (or whatever you want to call it) in the terminal telling it to run actions on the file. i.e. it can cut down on repetitive typing...
anyone know anywhere about writing those?
Last edited by constellanation; 01-28-2009 at 09:48 PM. Reason: fixed my own quoted typo
ALL White G1
Cupcake
Cyan 3.6.3
Hero Theme 1.4.5
apps 2 SD | 85 Mb free
as i know pitifully little about shell commands, i will now ask the following:
how are you creating the script for emptying the caches? did i miss the command for naming/creating the file? does this require using vi?
consty, get that last sig back. don't make me think through word pictures, man!![]()
Bookmarks