yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Themes and Apps] above99:
Ok guys I wanted to put a skin ot my factory calculator that came preinstaled, because it's ugly as a mother ****er.I got the skin of a Kaiser forum I don't know why that was a good idea.When I installed the skin my calculator got that error message Error. Cannot load the skin file: \Windows\SpbCalc_P_vga.png so I uninstalled the skin but then my calculator got screwed.So I installed the skin again and it recognised it as a program as the calculator but the same error message reapeared.PLS tell me how to get it fiXed I don't want to do a Hard Reset because I don't have any backup.I want to fiX it and be able to run the program with the skin.
[Touch Pro, Fuze Themes and Apps] Floodguy:
Hi,

I had a similiar problem. If fix it with a new calc skin. There is a thread somewhere here in this forum for a Diamond Calculator skin. Please search for SPB Calc Diamond.zip. Instructions are included.
[Touch Pro, Fuze Themes and Apps] above99:
Thanks man I'll Try that and let u know how it is.
[Touch Pro, Fuze Themes and Apps] above99:
Dude thanks a lot I got it fixed http://xdaforums.com/showthread.php?t=413302 this is a fine VGA skin I'm pleased 10X again man.
[Touch Pro, Fuze Themes and Apps] schneid:
I had this problem but fixed it by deleting calculator.exe, calculator_eng.txt, and spbcalc_p-vga.png.

Note that this SPB calculator not the Wincdows "Calc". it also doesn't have a landscape skin. I added this one to my Fuze:
[G1 Android Development] necromancerr:
I wrote a small script with help of stericson that will move all your caches to sd card. Right now, it will move caches for following apps;

1)Market

2)browser

3)street view

4)imeem music

5)tune wiki player

all these tutorials used from www.modmygphone.com, i just used all and wrote a script to make my job easier.

This script will make a folder called cache in your sd card, and 5 sub folder, for each apps.

Instructions:

copy the file to your sd card in home directory. make sure you have root.

go to terminal, and type in following commands

#mkdir /data/local/bin

#cp /sdcard/transfer.sh /data/local/bin

#chmod 0755 /data/local/bin/transfer.sh

#transfer.sh

it'll execute itself, if you get any error messages saying "bla bla bla" dir doesnt exist, that is because either you don't have that app installed or you have never used that app before and it doesnt have any cache to transfer.

Leave comments or suggestions. i will make maps work this weekend. i dnt have time right now.

http://rapidshare.com/files/184145725/transfer.sh

i am not responsible if it bricks your phone. I am pretty sure it wont though
[G1 Android Development] robpet2:
thanks for this... btw can you add the steel cache also... will try this scrip as soon as i finish updating my pc.
[G1 Android Development] necromancerr:
yes will add more, but those are all for the weekend.
[G1 Android Development] robpet2:
take your time bro...

I probably wont use it my self till after chrome is added.... but the noobs need this bad... lol
[G1 Android Development] octoberriot:
Worked. thank you.
[G1 Android Development] Birba:
Can you upload it somwhere else? I cannot access rapidshare at the moment.

Thanks
[G1 Android Development] betawind:
Hey Birba, copy and paste the below into notepad, save as transfer.sh :)

chmod 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

rm -R /data/data/com.imeem.gynoid/cache

mkdir /sdcard/cache/imeemCache

ln -s /sdcard/cache/imeemCache /data/data/com.imeem.gynoid/cache

rm -R /data/data/com.tunewiki.lyricplayer.android/cache/webviewCache

mkdir /sdcard/cache/tunewikiCache

ln -s /sdcard/cache/tunewikiCache /data/data/com.tunewiki.lyricplayer.android/cache/webviewCache

Oh and thank you for this necro, much appreciated for those of us who get hand cramps typing out all these commands on the G1 keyboard
[G1 Android Development] pixel-painter:
Doesn't it seem like it would be a good idea to copy the cache over before you delete it :)

I'm a bit of linux noob.. but perhaps instead of deleting you could change it to mv and then you would not need to make the directory on the SD card either

so

rm -R /data/data/com.android.vending/cache

mkdir /sdcard/cache/marketCache

ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache

would become

mv /data/data/com.android.vending/cache /sdcard/cache/marketCache

ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
[G1 Android Development] Preech2003:
Sd card myheim!!!

OK please help i have searched all over. I have 2 Questions & Requests:

1. How do I install a script file? I know it automaticlly changes the Registry of the android OS or the Internal/FileSystem whateva its called but how to i install it??? Please help & Be detailed.

2. This is the big one. If a script file does automaticlly change the Internal file system (Android Registry) without using the Abd Shell. Can u please make the upload the script files to "INSTALL & RUN APPS FROM THE SD CARD" its been very difficult using the "adb shell" on my desktop.

Ive tried everything. I even tried to use the "ASTRO" file browser to modify the correct files but evenwith root it wont allow you to modify or switch files.

PLease Help. My SD Card is already perfectly partioned and ready to go.
[G1 Android Development] ghassan99:
Thanks, that was an excellent post.

For steel, you can probably add this in the script file:

rm -r /data/data/com.kolbysoft.steel/cache/webviewCache

mkdir /sdcard/cache/steelCache

ln -s /sdcard/cache/steelCache /data/data/com.kolbysoft.steel/cache/webviewCache

-Gus
[G1 Android Development] Beast84:
Would this error cause this to not work properly? In my case, I don't have imeem or tunewiki installed so I don't need these cache's moved. Would this cause a problem?

Also, how do you create a .sh file? I tried deleting these 2 commands myself but I couldn't find a .sh option in the save as drop down menu
[G1 Android Development] unknown.soul:
Nothing bad will happen because their caches won't be moved in the first place.

Save as transfer.txt, then rename to transfer.sh
[G1 Android Development] Beast84:
Ok so I won't constantly have to dismiss errors on the phone due to this? Also does the script have to stay on the root of my SD or can I delete it after I perform the commands?

I tried that but it didn't change the file extension. The original I downloaded says sh file. The one I made still says text document
[G1 Android Development] necromancerr:
This will not work because when u save the file it has to be in UNIX format. Android being based on linux needs this format to work. U either have to be in linux to save this file. If in windows u have to use a program called textpad. it is just an evalutation version. buy if you want.
[G1 Android Development] unknown.soul:
Thanks for clearing that up, I actually haven't had the chance to test it out. :o
[G1 Android Development] necromancerr:
U need to be in linux to save file in sh format. More than saving the file insh format they need to be in unix format. Use either linux or use textpad in windows. It'll work
[G1 Android Development] necromancerr:
Don't worry abot that. The script will still work. If u ever get imeem, then u'l need to run the script again. Then it'll say that some files and folders already exists but u'll be fine
[G1 Android Development] JesusFreke:
textpad FTW! It is an application that I use ALL the time.

BUT it is not free. It does has an unlimited evaluation, with a very non-intrusive registration reminder thingy. If you use Textpad as much as I do, please pay for it, and support the authors, so we can have more textpad goodness in the future :D

To save a file in unix format with textpad, go to file->save as, and then there is a "File format" field down at the bottom, where you can choose between PC, Unix and Mac.
[G1 Android Development] necromancerr:
thx for clarification. i dont use that program alot. so i didnt know that. thank you very much.
[G1 Android Development] Beast84:
And once I change this to Unix, how do I save it as a .sh file? I still don't see the option anywhere. And renaming the file still doesn't change it

EDIT: I think I got it. I had to go into the preferences & manually add .sh as an extension. Is that how you did it JF?
[G1 Android Development] Phlogiston:
Why does the script remove the cache files rather then moving / copying them? I don't see a reason... I did it with keeping my cache files
[G1 Android Development] necromancerr:
because they are just cache files and we dont need them. u can do ir moving if you want.
[G1 Android Development] Beast84:
Are these commands done from the phone or the computer?
[G1 Android Development] andonnguyen:
From your phone using terminal emulator. Make sure you type su first to gain root.
[G1 Android Development] andonnguyen:
The script doesnt remove the cache files, it simply moves the cache from being stored on your phone, to being store on your memory card.
[G1 Android Development] daeglo:
how about moving cache to /cache?

Question, has anybody tried moving their caches to the /cache mount? This is on the internal memory, so it should have native speeds (no sdcard slowdown), and is virtually unused. Is there any reason not to? Is it a bad idea? I will post my findings in about 15 mins.
[G1 Android Development] daeglo:
Or I will get side tracked trying to write a find script to move all files containing 'cache' under the /data/data directory to another partition and link .... almost got it, but got to go for now. Will post the script if I get it to work.
[G1 Android Development] Beast84:
So what other cache's are you gonna add to this script? I would like to see the meetme, wertago & maps cache added. Or can someone post the commands to do it myself?
[G1 Android Development] veda_sticks:
cmodd says /data/local/bin/transfer.sh is not a directory
[G1 Android Development] dwang:
actually the internal storage is actually slow. a class 4 or 6 sdcard would be faster.
[G1 Android Development] momentarylapseofreason:
Disconnect your phone from your computer ;-)
[G1 Android Development] Beast84:
I got the same response without being connected to my computer

EDIT: Nevermind, tried it a 2nd time & it worked. Thanks. Just waiting for the commands for maps, meetme & wertago & I'll be all set
[G1 Android Development] veda_sticks:
Still getting the same thing, cp seems to work. Tried cd to /data/local/bin and it says cant cd to /data/local/bin

the directory does exist. when i mkdir it says that its already there.
[G1 Android Development] necromancerr:
i dont know yet. These are the apps that i use the most, and i wipe alot when i am playing with my phone. So i dnt know how many apps i will add
[G1 Android Development] necromancerr:
its not cmodd, its chmod
[G1 Android Development] Beast84:
Any progress on the maps like you said in your first post? The meetme & wertago apps I can deal with but the maps & youtube would be great additions to this script
[G1 Android Development] veda_sticks:
Yeah, that was just a typo. Im still getting that its not a directory
[G1 Android Development] dwang:
You should probably add the browser "app_thumbnails" directory to your script. The app_thumbnails directory increases in size quite a bit and can be safely moved to the sdcard without any performance penalties.
[G1 Android Development] Preech2003:
Script help

How doi install a script file??
[G1 Android Development] factor6:
Im kinda new to this, pretty sure i have root i have a modified build JFAdp1. It keeps telling me access denied when i type the first command into terminal, does anyone know whats up? sorry for the noob question
[G1 Android Development] necromancerr:
Easy problem.

If you see my instruction i have a # infront and not a $. u need root to execute this command

so type su before you type the rest of the code
[G1 Android Development] chief2842:
Thanks applied the shell script and it worked.
[G1 Android Development] Beast84:
If I make a new script, will I have to redo the commands or will I just have to replace the transfer.sh?

I added the meetme cache to the script, would this work?

I got the meetme cache from modmyGphone

EDIT: I got kinda impatient so I decided to try it. It worked. My meetme cache went from 5mb down to 568kb
[G1 Android Development] soloxp:
The only thing thats working for me is marketCache and streetCache...the webviewCache is not working at all. I 8mb for my browser.
[G1 Android Development] Seenochino:
how do i apply the shell script?

excuse my noobness.
[G1 Android Development] namsir:
use your phone Terminal to run the script. Make sure you have it in your SDcard, and make sure you run under super user.

$su

#transfer.sh
[G1 Android Development] Seenochino:
for some reason when i do that i get an error message

"transfer.sh not found"

i have verified that its on my sd card.
[G1 Android Development] daeglo:
Move ALL cache files easily

What it does (allegedly):

Searches /data/data for any file containing the string 'cache' which is not already a simlink.

Moves files to the supplied new cache directory.

Creates simlinks in place of the old files to the new files.

What you need to do:

Save the attached file (recache.zip)

Extract the two shell files (recache, relocate)

Examine the files

to be certain I am not malicious/stupid (the latter is quite possible)

Push the files to a directory in the default path on your phone (/system/xbin works for me)

Make the files executable (chmod 555 /system/xbin/{recache,relocate})

Run the command: recache <new_cache_directory>

Synopsis

recache <new_cache_directory>

Moves all files matching /data/data/*/*cache* to new_cache_directory and creates a symlink from the old location of the file.

new_cache_directory - optional - defaults to '/sdcard/cache'

relocate file new_directory

Moves the named file to new directory, encoding the original path in the new file name and creates a symlink from the original file location.

file - required - the file to move

new_directory - required - the directory to move the file to.

edit: emphasized the need to examine the files -- I make no claim of fitness or usefulness of this script for any reason. Many eyes make deep cracks small. If anybody sees a problem with my script, post the problem and PM me about it.
[G1 Android Development] factor6:
Thank you! it worked I really appreciate your assistance
[G1 Android Development] short/y:
Are you sure you want to move ALL of the caches? Not that I want to look the proverbial gift-horse in the mouth but from their names, some of those caches might be needed to keep the phone running (com.android.settings/cache, com.android.email/cache, e.g.). Then again, they *are* caches so they may just be optional. I'm not sure, though, what their owning application will do if it can't get to the cache -- can someone enlighten me? If you plug your phone into your computer and mount the SD card, can you continue to use your phone?

Maybe exclude com.android.*?
[G1 Android Development] ultra spikey:
Anyone know how to move the cache for the Myspace app?
[G1 Android Development] daeglo:
I have every one of my caches on my sdcard currently, and have no known issues. YMMV.

What say ye? It would be easy enough to exclude com.android.*, or possibly create an interactive mode which would ask Y/n before moving each file. Anybody have preferences?
[G1 Android Development] short/y:
Really? Have you tried browsing or using the Market when your SD card is mounted on your computer? Does it work OK?

I kinda like the interactive mode idea, myself. Maybe just prompt with the first part of the pathname in question.

BTW, I've never done any shell programming with ash. Doesn't look all that different from bash or ksh. Was there any particular reason you chose it?
[G1 Android Development] Ryanmo5:
Thanks it worked great, is it true that the browser cache does not work? Haven't played with it yet but someone in this thread said it was not working so just wanted to ask.
[G1 Android Development] dwang:
doesn't seem to run with JF adp images.
[G1 Android Development] dsgamer1:
when i get to

it says

what am I doing wrong?
[G1 Android Development] wergeld:
When I updated to JF1.41 do I have to rerun the .sh script? Also, how to move the Last.FM cache?

wergeld
[G1 Android Development] cboy007:
yeah can you please update this to add last.fm, maps, and everything else?

modmygphone has a great site for the caches...i tried to add them to your script manually and it didnt work...does someone else wanna give it a go?

http://modmygphone.com/wiki/index.php/Caches_To_SD_Card
[G1 Android Development] Seenochino:
along with this guy... just wondering if anyone has moved the myspace cache?
[G1 Android Development] Beast84:
Maps cache?

Question...

Is the maps cache, from here, done through the phone or the cmd? I wanted to add this to the script but it has that busybox command & I'm not too sure how to add that in so I was gonna add it manually. Anyone else got this done?
[G1 Android Development] topdnbass:
Are you guys who did this for your market cache having the issue i talk about here?

http://xdaforums.com/showthread.php?p=3236058

I have sourced it to that but i guess I could be wrong.

Its just really annoying to see android.process.media acting up almost EVERY time i boot..
[G1 Android Development] jschwall:
Does your sdcard need to be named sdcard for this to work. Mine is just named untitled. I'm getting a no such directory error.

Thanks

John
[G1 Android Development] topdnbass:
Android mounts it as sdcard.
[G1 Android Development] jschwall:
cp /sdcard/transfer.sh /data/local/bin was giving me trouble, i unplugged g1 fromcomputer and tried again it it worked... oh well. good job on the script.
[G1 Android Development] juangil:
anyone know the command line to move opera mini cache to sd card? thank you all!:)
[G1 Android Development] danguyf:
I don't think Opera Mini maintains a cache on the device. Or so I've heard.
[G1 Android Development] n8izzle:
erase the cache??

I am wanting to put this on it seems like a great idea but i would like to know what you would have to do to erase the cache? Is it hard to do it or would you just go into the new file and delete all the files in there? Thank you for your help..
[G1 Android Development] MontAlbert:
so the cache is saved/moved to the FAT32 portion of the sd card and not the EXT2? this doesn't affect anything does it?

i am assuming this as it moves them to /sdcard and not /system/sd

?????
[G1 Android Development] MontAlbert:
let me rephrase that:

I have already moved my apps to the EXT2 partition on my sd card. So when i input the command from the hack it will move it to the sdcard- the FAT32 partition. Should i be moving it to the EXT2 partition so the apps can run better, as their caches are on the same partition?

so the command should be:

mkdir /system/sd/cache

mkdir /system/sd/cache/files

etc on from here?

Which should i do for apps to run best?

thx
[G1 Android Development] lordlegion1985:
Hi Guys maybe i have missed something or not read something correctly.

I presume with this little trick no cache can be created once the phone is mounted with a PC am i correct as the card cannot be accessed by the phone during this?

Has anyone experienced the phone crashing in this case at all?

Would this if we was to change the script to work along side the Apps to SDcard trick IE if we was put the cache onto the EXT2 partiction?

has anyone tried this at all?
[G1 Android Development] lordlegion1985:
Ok so ive moved my Cache to my Fat32 Sdcard partion rather than my EXT2 and all appears to be working fine i may try moving it to my EXT2 if i experience any problems but for now il leave it on Fat32 makes it much easier to clean out all the cache when connected to my PC :p
[G1 Android Development] juangil:
any update for maps cache?

just wondering if someone has a working command line to move maps cache. Thanks
[G1 Android Development] johnnylicious:
yea im tryin to move my maps cache and i can't get it to work.

thanks.
[G1 Android Development] jayb222:
this .sh file thing doesn't seem to be working for me. I get up to chmod 0755 /data/local/bin/transfer.sh

Then is says:

chmod 0755 /data/local/bin/transfer.sh: no such file or directory.

I'm using terminal emu with the .sh file in the root directory of the sdcard.

Can anyone help?
[G1 Android Development] Mikey:
When you plug your phone in to the usb, DO NOT MOUNT it.
[G1 Android Development] Mikey:
This should work...let us know
[G1 Android Development] SoTacMatt:
Greetings!

I've done the individual cache's to sdcard.

Is there a way to reverse, then move all the caches to sdcard (/data/data/)?

Thanks in advance.
[G1 Android Development] maximosis:
tried

I just typed these commands all into my terminal emulator and nothing happened is their anything else that i was supposed to do before dropping the transfer.sh file into my sd card then typing the provided commands?
[G1 Android Development] bhang:
hey wait as sec, I didn't ever partition my sdcard....wassup wit dat?

Indulging in a beautiful green flower which I do quite often in small quantities even now into my mid thirties. I still enjoy messing about with 'lectronics and I enjoy my hobbies together, and I wasn't thinking much, the hack seemed easy and I did the market myself earlier soI was just loosly following the thread and using the .sh, NOW Im no linux guru but I've knocked around desktop linux, tivos (embednix).

But above writing a simple script that executes a few commands for me, im not the best. I just ran the .sh and didn't see anything about moving these caches to an ext2 (i'll reread after this post) ~/cache/ in the phone is empty and there is a cache file on ~ of my sd and I used the market and its files cached on the sd(all-fat)

there was no real talk of partitions in the early cache threads, maybe they are ok on fat, they do run on an ext2 in the phone, correct is the phone ext2, yffs, fat or some mix?

wouldn't they run better on ext2?

IMOP the damn mcSD should be a nix FS but then you have all kinda trouble with winblows, Im sure thats why the cards are fat, unless there is a "standard" that says all flash media is to be fatfs

anybody have any thoughts on any of this? Im gonna test the stuff I have that I moved.
[G1 Android Development] constellanation:
they do run better on the ext2 partition.

i'm not sure what happened before but if your phone is mounted and you have the caches moved to /system/sd/caches they will actually be stored.

plus it looks better if you are looking through the fat32 partition of your sd, with astro.
[G1 Android Development] GTIChris04:
You must have missed the step where you cp /sdcard/transfer.sh /data/local/bin

If you did do that step you did it wrong, typo probably.
[G1 Android Development] bhang:
very cool

It probably wouldn't be hard to have the script look to see what is installed and or moved, to keep the errors down, n00bs are afraid of errors, I say it wouldn't be hard but I dont remember the commands to check for directories and couldnt do it if I tried, I need to get back more seriously into linux again, Its time..

bhang

edit:

my stuff is all still fat, but I want to add an ext2 anybody tried a card reader and partition magic?

I could always do a hundred different things to partition this like live cds, vmware a *nix box, but I have a reader and PM installed ie: 0 work :)
[G1 Android Development] JerryBarcenas:
u dont need that program

to make it into sh file based on unix just use windows' notepad but "" (quote it) like this>>>> "transfer.sh" :D