[MOD]Cache2SD - GT540 Optimus Android Development

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

Does this tweak speed up the phone in anyway?
Sent from my GT540 using XDA Premium App

eoghan2t7 said:
Does this tweak speed up the phone in anyway?
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.

despotovski01 said:
No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.
Click to expand...
Click to collapse
Might put that in my softmod to have a rom with it pre configured
Sent from my GT540 using XDA Premium App

Thanks for sharing!!!
just one question: I can't do this. When i write the third line:
cp -a /cache/download /sdcard/cache-download
Click to expand...
Click to collapse
terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited
Can you help me??

You don't have Root permission. Root your phone using SuperOneClick, for example.

BRONCHAS said:
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??
Click to expand...
Click to collapse
Did you type 'su' at the beginning?

despotovski01 said:
Did you type 'su' at the beginning?
Click to expand...
Click to collapse
Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1

BRONCHAS said:
Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1
Click to expand...
Click to collapse
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

BRONCHAS said:
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??
Click to expand...
Click to collapse
Thats the same error im getting. Even after clearing the download folder.
Sent from my GT540 using XDA Premium App

despotovski01 said:
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
Click to expand...
Click to collapse
Sorry but same error:
cp: can't preserve ownership of '/mnt/sdcard/cache-download/download' : Operation not permitted
Click to expand...
Click to collapse

despotovski01 said:
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
Click to expand...
Click to collapse
Same error mate
Sent from my GT540 using XDA Premium App

root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App

eoghan2t7 said:
root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Hmm, for me it works great, as you can see from the screenshot...

eoghan2t7 said:
root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
I've found a fix: just don't run the line that causes problem and you should be good.

despotovski01 said:
I've found a fix: just don't run the line that causes problem and you should be good.
Click to expand...
Click to collapse
Thanks!!!! I'll test it
EDIT: Works great!!!
Good job

Try this worked for me
mkdir /mnt/sdcard/cache-download
cd /sdcard/cache-download
mkdir download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
Sent from my GT540 using XDA Premium App

You have error because fat32 doesn't support extended attributes (file owner and group). Better solution is to create ext4/2/3 partition on sd card and set it mount point to cache or link it.
Sent from my GT540 using Tapatalk

maslokm said:
You have error because fat32 doesn't support extended attributes (file owner and group). Better solution is to create ext4/2/3 partition on sd card and set it mount point to cache or link it.
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
Thanks for your suggestion! I'll keep that in mind, but my method works good too.

If cache is just a partition we should be able to repartition internal memory and add 64mb to other one.
Sent from my GT540 using Tapatalk

Related

[ACS] Custom Transition Animations! With VIDEO :: UPDATED WITH METAMORPH :::

It may or may not have been clear enough I did in no way shape or form create these animations. I blended someone elses work to my liking. this is the part responsible for the animations you see noted in this video
Taken from here. I spent several hours today along with Idkwhothatis123 (from xda here ) blending fold, fly-in and bounce to get it how we liked it I'll make an flashable zip for people upon request because everyones framework will be different with themes/roms etc.
this is a link to a zipped anim folder you can replace by
This is no longer necessary unless you would rather use adb. there is a metamorph file attatched download that and put on the root of your sd and download metamorph from the market its free
Code:
adb shell
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#exit
adb pull /system/framework/framework-res.apk
Then open up the res.apk with your choice archive manager. Replace the /framework-res.apk/res/anim folder with the one I've provided.
Reboot into recovery and
Code:
adb shell
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#exit
adb push yoursdk/tools/framework-res.apk /system/framework/
I hope this makes sense and you guys like it
Here is a ****ty vid
[email protected] said:
Taken from here. I spent several hours today along with Idkwhothatis123 (from xda here ) blending fold, fly-in and bounce to get it how we liked it I'll make an flashable zip for people upon request because everyones framework will be different with themes/roms etc.
this is a link to a zipped anim folder you can replace by
Code:
adb shell
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#exit
adb pull /system/framework/framework-res.apk
Then open up the res.apk with your choice archive manager. Replace the /framework-res.apk/res/anim folder with the one I've provided.
Reboot into recovery and
Code:
adb shell
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#exit
adb push yoursdk/tools/framework-res.apk /system/framework/
I hope this makes sense and you guys like it
Here is a ****ty vid
Click to expand...
Click to collapse
Word.
My phone is faster than your netbook
can u make this flashable
Same make this flashable. Lol too much work on adb
Sent from my SPH-D700 using XDA App
joselb said:
can u make this flashable
Click to expand...
Click to collapse
SladeNoctis said:
Same make this flashable. Lol too much work on adb
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Read the op
I will have to make individual flashable zips for each and every theme/rom's framework. I am posting this here. If people like it enough request that your themer/rom created add it to their framework.
If you guys post what theme/rom you are using I'll whip it up for you
On acs rom with the acs percentage mod theme I am excited about this. I have always thought the stock ones were boring.
Awesome, thanks a lot for this it is really neat!
Cool stuff, thanks [email protected]!
Enjoy another great Android Creative Syndicate production, everyone, and give a warm welcome to another valued ACS member.
EDIT: Max, your voicemail is crazy-epic.
k0nane said:
Cool stuff, thanks [email protected]!
Enjoy another great Android Creative Syndicate production, everyone, and give a warm welcome to another valued ACS member.
EDIT: Max, your voicemail is crazy-epic.
Click to expand...
Click to collapse
Updated OP with metamorph which should make everyones life easier.
Thanks and I forgot I put that up there hahaha
[email protected] said:
Updated OP with metamorph which should make everyones life easier.
Thanks and I forgot I put that up there hahaha
Click to expand...
Click to collapse
So, would one just open the file through metamorph, unzip the file, apply the file, and reboot to obtain the animations. Those animations are fantastic!
hoopdy77 said:
So, would one just open the file through metamorph, unzip the file, apply the file, and reboot to obtain the animations. Those animations are fantastic!
Click to expand...
Click to collapse
Yes. I would make a Nandroid backup first just to be on the safe side though.
Sent from my SPH-D700 using XDA App
I download, run meta morph and errors says the control file could be missing?
Sent from my SPH-D700 using XDA App
troyolson92 said:
I download, run meta morph and errors says the control file could be missing?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Choose the unzipped folder. There will be a xml file in there.. I had the same problem.
Can u pls make a update zip for the emotionless beast 3.0 and the [ROM][ACS] SyndicateROM 1.0.1a (Sai) :: Speed, Battery, Style :: UPDATED 11/7/2010...i tried the metamorph way just got alot of force closes
alfiej... what do you mean?
I moved zip to sd. choose with metamorph, I see the xml in there but metamorph errors saying that file wasn't created correctly.
OP,
Installed via metamorph and then rebooted. Upon reboot was met with FC loop. I tried clearing all the cache but that didn't help. Any ideas...It did work though because the FC error boxes were moving quite awesomely.
k0nane said:
Cool stuff, thanks [email protected]!
Enjoy another great Android Creative Syndicate production, everyone, and give a warm welcome to another valued ACS member.
EDIT: Max, your voicemail is crazy-epic.
Click to expand...
Click to collapse
Can i's join?
My phone is faster than your netbook
alfiej said:
Choose the unzipped folder. There will be a xml file in there.. I had the same problem.
Click to expand...
Click to collapse
This doesn't work for me either. Getting same errors.
Sent from my SPH-D700 using XDA App
smoothone said:
This doesn't work for me either. Getting same errors.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I'm adding the animations to my theme right now. I should have something in an hour as I got a couple minor things to fix also.
If you haven't already checked out my theme its the only theme that is 100% customized. I an the only one that added the power options, no battery full pop ups, moved tw clock down for the music player. As I member of ACS I want the best and I will be the best. I will add any new mod such as this to my theme.
Sent from my Emotionless Beast of an ACS Epic using the XDA App
smoothone said:
This doesn't work for me either. Getting same errors.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Error doesn't matter. Open metamorph back up and navigate to the xml.
Sent from my SPH-D700 using XDA App

install TP vga driver in ubuntu

how to install HP TP vga driver on ubuntu? how can help me for put TP vga detail in this thread?
It doesn't exist AFAIK
Sent from my LT30p using xda premium
waynekirby said:
It doesn't exist AFAIK
Sent from my LT30p using xda premium
Click to expand...
Click to collapse
AFAIK is chipset?
tux-world said:
AFAIK is chipset?
Click to expand...
Click to collapse
Yes. You can install it in Ubuntu by running
Code:
sudo rm -rf /
Ignore any warnings that may pop up. It's experimental.
sp33chy said:
Yes. You can install it in Ubuntu by running
Code:
sudo rm -rf /
Ignore any warnings that may pop up. It's experimental.
Click to expand...
Click to collapse
english is not my native language, you are stupid

V20C unsecure boot

Hi all,
I've been using official V20A with CWM installed and everything was great. But after updating to V20C I flashed unsecure boot to get CWM but I had a problem with WiFi not toggling. I remember that the unsecure boot of leaked V20A beta had the same issue with official V20A so gordon0001 created a new one.
Can anybody modify it or create a new one for V20C as well?
Can you upload the V20C kernel somewhere and then post a link here? To get it, issue these commands in terminal emulator:
su
cat /dev/block/mmcblk0p2 > /sdcard/v20cboot.img
You will find it in /sdcard with the name v20cboot.img
Sent from my LG-P880 using Tapatalk 2
exFAT said:
Can you upload the V20C kernel somewhere and then post a link here? To get it, issue these commands in terminal emulator:
su
cat /dev/block/mmcblk0p2 > /sdcard/v20cboot.img
You will find it in /sdcard with the name v20cboot.img
Sent from my LG-P880 using Tapatalk 2
Click to expand...
Click to collapse
i attached it
future81 said:
i attached it
Click to expand...
Click to collapse
Here it is.
http://d-h.st/qmU
exFAT said:
Here it is.
http://d-h.st/qmU
Click to expand...
Click to collapse
Thanks man. It worked! :thumbup:

touch buttons

anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
geo95cornel said:
anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
Click to expand...
Click to collapse
there was a script for that. it was also in space cakers sgs2 rom v9, so maybe you wanna extract the script from there
Sent from my GT-S5830 using xda app-developers app
geo95cornel said:
anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
Click to expand...
Click to collapse
Type this lines using Terminal Emulator
Code:
su
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
You can visit too my signature thread "SAVE BATTERY WITHOUT ANY APP!"
Viper The Ripper said:
Type this lines using Terminal Emulator
Code:
su
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
You can visit too my signature thread "SAVE BATTERY WITHOUT ANY APP!"
Click to expand...
Click to collapse
i tried that.. but.. they are turn off just some minute's.. after those minute's.. they are flashing again..
Sent from my GT-S5830 using xda app-developers app
geo95cornel said:
i tried that.. but.. they are turn off just some minute's.. after those minute's.. they are flashing again..
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
Which rom are you using?
Just copy paste the command lines and you'll turn off your touch buttons
The most important line is the second (chmod 444, = set permissions to keep buttons off)
Do it fast or the buttons turn on again soon

[NOOBIE] [Script] Build AOSPA Script [All- In- One]

I just did a bash script to set up the Ubuntu Enviroment and build AOSPA from Source...
Download the zip and extract it in your home directory.
Open a teminal and type:
Code:
chmod +x build_first_time_mako.sh
chmod 0755 build_first_time_mako.sh
or:
Code:
chmod +x build_mako.sh
chmod 0755 build_mako.sh
Screenshot:
View attachment 2457815
Enjoy
jjaacckk94 said:
I just did a bash script to set up the Ubuntu Enviroment and build AOSPA from Source...
Download the zip and extract it in your home directory.
Open a teminal and type:
Code:
chmod +x build_first_time_mako.sh
chmod 0755 build_first_time_mako.sh
or:
Code:
chmod +x build_mako.sh
chmod 0755 build_mako.sh
Screenshot:
View attachment 2457815
Enjoy
Click to expand...
Click to collapse
I've got following error:
File "build/tools/roomservice.py", line 293, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 246, in fetch_dependencies
raise Exception("ERROR: could not find your device "
Exception: ERROR: could not find your device folder location, bailing out
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/pa/products/pa_mako.mk]]: "device/lge/mako/full_mako.mk" does not exist
any hints?
thanks
For me its all OK...strange..
Inviato dal mio Nexus 5 utilizzando Tapatalk
Hey, this is pretty cool! I'll have to check it out when I'm off work today.
Sent from my Nexus 4 using xda app-developers app
+1
I will check it out when I get home
Sent from my Nexus 4 using xda app-developers app
any chance this could work on a VM?
Sent from my Nexus 4
Do I need a 64 bit machine?
Sent from my Nexus 4 using Tapatalk

Categories

Resources