Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD]Cache2SD

OP despotovski01

14th July 2011, 03:40 PM   |  #1  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,916
 
1,461 posts
Join Date:Joined: Jan 2011
More
Hey developers!
We all know that our device has little memory. The Cache partition is only 64MB, of which only 20 are free!
Because of that, I'm going to show you how to use a folder on your SD card to download games and apps from the Android Market, instead of the default one(/cache/download)!

Requirements:
-Terminal Emulator (or ADB Shell)
-Root access

Tutorial:
1. Open Terminal Emulator
2. Type these commands in order:
Code:
su
mkdir /sdcard/cache-download
rm -rf /cache/download
ln -s /sdcard/cache-download /cache/download
3. Enjoy your Cache2SD!



This was tested and it works on SwiftDroid 2.0 RC1
Last edited by despotovski01; 14th July 2011 at 06:37 PM.
The Following 4 Users Say Thank You to despotovski01 For This Useful Post: [ View ]
14th July 2011, 04:32 PM   |  #2  
eoghan2t7's Avatar
Recognized Contributor
Flag Belfast
Thanks Meter: 2,156
 
4,190 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Does this tweak speed up the phone in anyway?

Sent from my GT540 using XDA Premium App
The Following User Says Thank You to eoghan2t7 For This Useful Post: [ View ]
14th July 2011, 04:38 PM   |  #3  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,916
 
1,461 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by eoghan2t7

Does this tweak speed up the phone in anyway?

Sent from my GT540 using XDA Premium App

No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.
14th July 2011, 04:43 PM   |  #4  
eoghan2t7's Avatar
Recognized Contributor
Flag Belfast
Thanks Meter: 2,156
 
4,190 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by despotovski01

No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.

Might put that in my softmod to have a rom with it pre configured

Sent from my GT540 using XDA Premium App
14th July 2011, 05:52 PM   |  #5  
Chxrlyglez's Avatar
Senior Member
Flag México City
Thanks Meter: 85
 
435 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Thanks for sharing!!!

just one question: I can't do this. When i write the third line:

Quote:

cp -a /cache/download /sdcard/cache-download

terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited

Can you help me??
Last edited by Chxrlyglez; 14th July 2011 at 05:59 PM.
pcfighter
14th July 2011, 05:59 PM   |  #6  
Guest
Thanks Meter: 0
 
n/a posts
You don't have Root permission. Root your phone using SuperOneClick, for example.
14th July 2011, 05:59 PM   |  #7  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,916
 
1,461 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by BRONCHAS

Thanks for sharing!!!

just one question: I can't do this. When i write the secon line terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited

Can you help me??

Did you type 'su' at the beginning?
14th July 2011, 06:00 PM   |  #8  
Chxrlyglez's Avatar
Senior Member
Flag México City
Thanks Meter: 85
 
435 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Quote:
Originally Posted by despotovski01

Did you type 'su' at the beginning?

Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1
14th July 2011, 06:02 PM   |  #9  
despotovski01's Avatar
OP Recognized Developer
Thanks Meter: 1,916
 
1,461 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by BRONCHAS

Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1

Try this:
Code:
su
mkdir /mnt/sdcard/cache-download
cp -a /cache/download /mnt/sdcard/cache-download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
14th July 2011, 06:03 PM   |  #10  
eoghan2t7's Avatar
Recognized Contributor
Flag Belfast
Thanks Meter: 2,156
 
4,190 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by BRONCHAS

Thanks for sharing!!!

just one question: I can't do this. When i write the third line:



terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited

Can you help me??

Thats the same error im getting. Even after clearing the download folder.

Sent from my GT540 using XDA Premium App

Post Reply Subscribe to Thread

Tags
cache2sd, cyanogen, gt540, mod, optimus
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes