[Q] Move Gallery Cache to SD Card? - Android Q&A, Help & Troubleshooting

My gallery cache is close to 2gigs. Syncing from Picasa...
Any way to move it my SD Card? If I clear the cache, it just re-downloads and creates new ones.
Currently internal storage cache: SGH-I317M\Phone\Android\data\com.sec.android.gallery3d

I realize this is an 1 year old topic, but I have the exact same problem.
Anyone figure this out?
Thanks!

ThaiM said:
My gallery cache is close to 2gigs. Syncing from Picasa...
Any way to move it my SD Card? If I clear the cache, it just re-downloads and creates new ones.
Currently internal storage cache: SGH-I317M\Phone\Android\data\com.sec.android.gallery3d
Click to expand...
Click to collapse
It is assumed that the device is already rooted and a way to run commands on the device is available. i.e “Terminal Emulator” app, Android ADB. The technique explained in this post (Symbolic Linking) will not work on SD cards formatted with FAT/NTFS.
Basically, the idea is to create a cache folder on SD card, remove the cache folder on internal memory and then link the internal folder to the folder on SD card so SD card space is used.
To move the cache folder
1
2
3
4
5
umount /cache
mount -o rw,remount -t rootfs rootfs /
rmdir /cache
mkdir /sdcard/cache
ln -s /sdcard/cache /cache
Browser Cache
1
2
3
4
cd /data/data/com.android.browser/cache
rm -R webviewCache
mkdir /sdcard/cache/webviewCache
ln -s /sdcard/cache/webviewCache webviewCache
Google Maps
1
2
3
4
cd /data/data/com.google.android.apps.maps
rm -R files
mkdir /sdcard/cache/files/maps
ln -s /sdcard/cache/files/maps files
Google StreetView
1
2
3
4
cd /data/data/com.google.android.street
rm -R cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache cache
Market Cache
1
2
3
4
cd /data/data/com.android.vending
rm -R cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache cache
imeem Cache
1
2
3
4
cd /data/data/com.imeem.gynoid
rm -R cache
mkdir /sdcard/cache/imeemCache
ln -s /sdcard/cache/imeemCache cache
Tunewiki Cache
1
2
3
4
cd /data/data/com.tunewiki.lyricplayer.android/cache
rm -R webviewCache
mkdir /sdcard/cache/tunewikiCache
ln -s /sdcard/cache/tunewikiCache webviewCache
Steel Browser Cache
1
2
3
4
cd /data/data/com.kolbysoft.steel/cache
rm -R webviewCache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache
OR
1
2
3
4
5
cd /data/data/com.kolbysoft.steel
mkdir cache
cd cache
mkdir /sdcard/cache/steelCache
ln -s /sdcard/cache/steelCache webviewCache
MeetMe Cache
1
2
3
4
cd /data/data/com.stylem.meetme
rm -R cache
mkdir /sdcard/cache/meetmeCache
ln -s /sdcard/cache/meetmeCache cache
MySpace
1
2
3
4
cd /data/data/com.myspace.android
mkdir /system/sd/cache/files/myspace
rm -R files
ln -s /sdcard/cache/files/myspace files
Gmail
1
2
3
cd /data/data/com.google.android.gm/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache
Voice Search
1
2
3
cd /data/data/com.google.android.voicesearch/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache
My Maps Editor
1
2
3
cd /data/data/com.google.android.apps.mymaps/cache
rm -R webviewCache
ln -s /sdcard/cache/webviewCache webviewCache
it will help yu...dont forget tp press the thanks button

Thanks, I've already seen these instructions, but I can't seem to find how to move gallery cache using these methods.

Related

Rooted with mediascape

Many ppl seem to want to reinstall mediascape..
well as far as i know you can't reinstall mediascape after rooting; however, it is possible to NOT DELETE mediascape in Step 4.
You follow the root guide in the stick up to step 3, then before you run step 4 (well i guess it's better to do it before you start rooting) open cleanup.sh in step 4 and remove mediascape and mediascapeplugin from the list... so it should look like this
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
rm -R /sdcard/apps
mkdir /sdcard/apps
cd /system/app
cp AndroidQuadrapop* /sdcard/apps
cp docomo_market* /sdcard/apps
cp EManual* /sdcard/apps
cp LatinIME* /sdcard/apps
cp LatinImeTutorial* /sdcard/apps
cp Launcher* /sdcard/apps
cp LearningClient* /sdcard/apps
cp MixiPlugin* /sdcard/apps
cp moxiermail* /sdcard/apps
cp officesuite* /sdcard/apps
cp pocket_rashinban* /sdcard/apps
cp SemcIME* /sdcard/apps
cp trackid* /sdcard/apps
rm AndroidQuadrapop*
rm docomo_market*
rm EManual*
rm LatinIME*
rm LatinImeTutorial*
rm Launcher*
rm LearningClient*
rm MixiPlugin*
rm moxiermail*
rm officesuite*
rm pocket_rashinban*
rm SemcIME*
rm trackid*
rm /data/app/*.zip
rm /data/app-private/jp.*
rm -r /etc/semc/startupshow
rm -r /etc/semc/preset/app
rm -r /etc/*.iso
then run step 4..
personally i don't know exactly what's changed on my phone other than the fact that i now have a zeam home launcher instead, titanium backup says my phone's been rooted, i didn't have to restore anything because everything (all data/apps i installed personally) were kept the same, mediascape still there, and i lost korean keyboard/option to switch to korean menu which came with the R2BA020 update...
oh and my step 3a wasn't working properly so i just skipped it.. but regardless i can type 'su' into better terminal, and titanium backup says my phone's rooted so i don't really care..
although if the devs could release another one with the korean keyboard/menu from the new R2BA020 update, it'd be great
oh and i went from x10a(rogers 014) -> x10i (R2BA020) -> root
Thanks Dude!!! This is just what I needed. No timescape?? What if I wanted timescape, is there a way to prevent it from removing that?
Fuzalert2k said:
Thanks Dude!!! This is just what I needed. No timescape?? What if I wanted timescape, is there a way to prevent it from removing that?
Click to expand...
Click to collapse
it doesn't remove timescape..
Retrying for the fourth time, I managed to root the phone, then I saw you could keep mediascape, and the original keyboard... tried opening and saving the sh file with notepad, wordpad, write... don't know if it modifies something but once we get to the uninstalling part I get 'No such files or directory'...
found the solution, do not edit shell file in windows with notepad,
http://sourceforge.net/projects/eme...-editor-2.72-r286/cedt-286-setup.exe/download
works pretty well on windows, so you can decide to keep whatever you want
mayamo said:
Many ppl seem to want to reinstall mediascape..
well as far as i know you can't reinstall mediascape after rooting; however, it is possible to NOT DELETE mediascape in Step 4.
You follow the root guide in the stick up to step 3, then before you run step 4 (well i guess it's better to do it before you start rooting) open cleanup.sh in step 4 and remove mediascape and mediascapeplugin from the list... so it should look like this
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
rm -R /sdcard/apps
mkdir /sdcard/apps
cd /system/app
cp AndroidQuadrapop* /sdcard/apps
cp docomo_market* /sdcard/apps
cp EManual* /sdcard/apps
cp LatinIME* /sdcard/apps
cp LatinImeTutorial* /sdcard/apps
cp Launcher* /sdcard/apps
cp LearningClient* /sdcard/apps
cp MixiPlugin* /sdcard/apps
cp moxiermail* /sdcard/apps
cp officesuite* /sdcard/apps
cp pocket_rashinban* /sdcard/apps
cp SemcIME* /sdcard/apps
cp trackid* /sdcard/apps
rm AndroidQuadrapop*
rm docomo_market*
rm EManual*
rm LatinIME*
rm LatinImeTutorial*
rm Launcher*
rm LearningClient*
rm MixiPlugin*
rm moxiermail*
rm officesuite*
rm pocket_rashinban*
rm SemcIME*
rm trackid*
rm /data/app/*.zip
rm /data/app-private/jp.*
rm -r /etc/semc/startupshow
rm -r /etc/semc/preset/app
rm -r /etc/*.iso
then run step 4..
oh and i went from x10a(rogers 014) -> x10i (R2BA020) -> root
Click to expand...
Click to collapse
So what i understand is that If I want to keep the Default home then I should be removing the Launcher from the list as well. Also is Backup and Restore Included which is there in new firmware.... as I do not want to go for limited backup tool.
hotfile.com/dl/51161486/a67bb41/step4.zip.html
Click to expand...
Click to collapse
moded
step4 with mediaspace

[Q] Move data/dalvik-cache to dev/dalvik-cache

Hi, I want to freeing up some space in my /data partition so I can install more apps...
I manage to get 60mb more space by doing this: forum.xda-developers.com/showthread.php?p=7459981
Then I also thought to move /data/dalvik-cache since it's very big... In other forum, people move /data/dalvik-cache to SD card or /cache...
Moving dalvik-cache to SD card is a little unstable while /cache partition in X10 mini only have 50mb free space... (my data/dalvik-cache had 65mb size)
Besides that, /cache is used by FOTA, browser and market apps to download a files...
Then I look another partition, and I see that /dev partition has 86mb free space! If I do this, I can install 65mb more application to my phone...
Then after searching, I found this script. It must be executed at boot:
Code:
#!/system/bin/sh
echo "++++ DALVIK 2 DEV STARTING ++++"
if [ ! -d /dev/dalvik-cache ]
then
mkdir /dev/dalvik-cache
chown 1000:1000 /dev/dalvik-cache
chmod 775 /dev/dalvik-cache
fi
if [ -L /data/dalvik-cache ]
then
rm -f /data/dalvik-cache
mkdir /data/dalvik-cache
chown 1000:1000 /data/dalvik-cache
chmod 775 /data/dalvik-cache
elif [ ! -d /data/dalvik-cache ]
then
mkdir /data/dalvik-cache
chown 1000:1000 /data/dalvik-cache
chmod 775 /data/dalvik-cache
elif [ -d /data/dalvik-cache ]
then
for filename in /data/dalvik-cache/*
do
if [ -L $filename ]
then
rm -f $filename
fi
done
mv /data/dalvik-cache/* /dev/dalvik-cache/
fi
mount -o bind /dev/dalvik-cache/ /data/dalvik-cache/
The question is, how to execute this script during boot up? Another peoples do it this way in their phones:
Hacre said:
paste the text into a file called 02dalvik2cache (no file extension)
adb remount
adb push 02dalvik2cache /system/etc/init.d/
adb shell chown root:2000 /system/etc/init.d/02dalvik2cache
adb shell chmod 755 /system/etc/init.d/02dalvik2cache
Reboot phone.
Click to expand...
Click to collapse
But it seems that the file structure is different. Also, adb remount command gives "not permitted" errors because ro.secure is 1 in /default.prop
If I change ro.secure=1 to re.secure=0 in /default.prop then reboots, it comes back to ro.secure=1
Any thoughts?

[Q]/cache As RAM?

Is there any way for use some of /cache memory as RAM or swap?
I see there are about 100MB of /cache but it is used less than 5MB, can we use some of it as RAM or swap?
I found a init.d script for use /cache as Dalvik Cache, but it will merge the /cache and /data/dalvik-cache tested work on Night Elf kernel, does not work on stock kernel. I think it used for expand the size of Dalvik Cache, but i'm wrong.
Code source from here
Code:
#!/system/bin/sh
CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
if [ $CACHESIZE -gt 80000 ]
then
echo "Large cache detected, moving dalvik-cache to /cache"
if [ ! -d /cache/dalvik-cache ]
then
busybox rm -rf /cache/dalvik-cache /data/dalvik-cache
mkdir /cache/dalvik-cache /data/dalvik-cache
fi
busybox chown 1000:1000 /cache/dalvik-cache
busybox chmod 0771 /cache/dalvik-cache
# bind mount dalvik-cache so we can still boot without the sdcard
busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
busybox chown 1000:1000 /data/dalvik-cache
busybox chmod 0771 /data/dalvik-cache
else
echo "Small cache detected, dalvik-cache will remain on /data"
fi
Can someone got any idea from this?

[Q] Can't Download Apps From Markert (Cyanogenmod 7)

Hi all,
I just installed CM7 on my Samsung Galaxy Ace GT-S5839i. Everything is working fine except downloading apps, every time I try I get the error "App could not be downloaded due to an error (429)".
I tried this fix:
1. adb shell
2. su
3. mkdir /cache/download
4. chown system:cache /cache/download
5. chmod ug+rwx /cache/download
6. chmod a+x /cache/download
but ADB tells me that the filesystem is read-only when I try to make the download directory in cache. I've been searching for a way to fix this for hours but can't find anything. Any help would be greatly appreciated!
Thank you!
Is anyone able to help with this?
JasonPDK said:
Is anyone able to help with this?
Click to expand...
Click to collapse
try this
turn off packets data
open setting> application> Google playstore
click force stop, clear cache and data
reboot then open playstore again
Hey nasheich,
Thanks for your reply! I had tried that before..
I was able to fix it by opening the terminal emulator and doing this:
1 umount /cache
2 mount -o rw,remount -t rootfs rootfs /
3 rmdir /cache
4 mkdir /sdcard/cache
5 ln -s /sdcard/cache /cache
6 cd /data/data/com.android.vending
7 rm -R cache
8 mkdir /sdcard/cache/marketCache
9 ln -s /sdcard/cache/marketCache cache
Said I'd post it in case it could help anyone
JasonPDK said:
Hey nasheich,
Thanks for your reply! I had tried that before..
I was able to fix it by opening the terminal emulator and doing this:
1 umount /cache
2 mount -o rw,remount -t rootfs rootfs /
3 rmdir /cache
4 mkdir /sdcard/cache
5 ln -s /sdcard/cache /cache
6 cd /data/data/com.android.vending
7 rm -R cache
8 mkdir /sdcard/cache/marketCache
9 ln -s /sdcard/cache/marketCache cache
Said I'd post it in case it could help anyone
Click to expand...
Click to collapse
you're welcome,
Sent from my GT-I9070 using XDA Premium 4 mobile app

Problem restore script

Hi, have problem with restore script. This script is for init.d. First boot with restore app and app data. Have problem with restore app data. If run script for restore app data then restore only from one tar.gz file, no from all. Where problem? Thanks
App restore:
#!/system/bin/sh
su
mount -o remount,rw /system
mount -o remount,rw /data
for filename in /system/app2/*.apk;
do
busybox install $filename /data/app;
done
busybox rm -rf /system/app2
busybox rm -rf /system/etc/init.d/90app​
App data restore:
#!/sbin/busybox sh
sleep 45
su
mount -o remount,rw /system
mount -o remount,rw /data
for filenamezip in /system/appdata/*.zip;
do
busybox chown -R root /data/data/${filenamezip%.zip}/*
busybox chmod -R 777 /data/data/${filenamezip%.zip}/*
busybox rm -rf /data/data/${filenamezip%.zip}
done
for izip in /system/appdata/*.zip;
do
busybox unzip -o $izip -d /;
done
for filenametar in /system/appdata/*.tar.gz;
do
busybox chown -R root /data/data/${filenametar%.tar.gz}/*
busybox chmod -R 777 /data/data/${filenametar%.tar.gz}/*
sleep 1
busybox rm -rf /data/data/${filenametar%.tar.gz}
done
for itar in /system/appdata/*.tar.gz;
do
busybox tar -xzf $itar -C /;
done
sleep 5
busybox rm -rf /system/appdata
busybox rm -rf /system/etc/init.d/95appdata
reboot​
For manual backup:
su
mount -o remount,rw /system
mount -o remount,rw /data
BACKUPDIR=/system/appdata
DATADIR=/data/data
echo
# create BACKUPDIR if necessary and modify ownership/permissions
if [ -d $BACKUPDIR ]; then
rm -rf $BACKUPDIR
mkdir $BACKUPDIR
else
mkdir $BACKUPDIR
fi
chown root $BACKUPDIR
chmod 777 $BACKUPDIR
# make
for name in $DATADIR/*; do
tar -cpvzf $BACKUPDIR/${name#/data/data/}.tar.gz $name
done;
# modify ownership/permissions of all archives
chown root $BACKUPDIR/*
chmod 777 $BACKUPDIR/*
echo​
Sorry my bad english
Any solution please?
Hi. Please help my with this problem.

Categories

Resources