yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] grazy:
Hello, could someone kindly provide a working command code to move maps cache to SDcard?

I have tried below code posted by Mikey1022:

cd /data/data/com.google.android.apps.maps

mkdir /sdcard/cache/files/maps

busybox cp -a files /sdcard/cache/files/maps

rm -R files

ln -s /sdcard/cache/files/maps/files files

But get stuck at the busybox command line, giving me bunch of permission errors.

Thank you in advance ^^
[G1 Android Development] LucidREM:
EditPad Lite - it's free
[G1 Android Development] LucidREM:
you might be better of using the EXT2 partition .. no permission problem
[G1 Android Development] grazy:
Thanks for the prompt reply LucidRem.

Should it be the whole SDcard been formatted to EXT2 fs or I could have FAT32 and EXT2 (2 partitions) on the same SDcard?

Will the busybox code recognize the EXT2 automatically or have to inject new command to recognize EXT2 during moving the maps cache to SDcard?

Sorry for my noobie questions.
[G1 Android Development] LucidREM:
easiest way .. create the FAT32 partition .. create the EXT2 partition .. these will both be primary partitions on the same card .. whatever size you feel you need .. i split my 8G card to be 6.5G / 1.5G respectively

download my modified update.zip and flash to the G1 .. this will allow the EXT2 partition to be mounted as well as the FAT32 .. now everywhere a command says to move a cache to /sdcard/......... you sub in /system/sd/......... and that's where the EXT2 partition is located
[G1 Android Development] ian1001:
on the last line i get

transfer.sh: cannot open html: no such file
[G1 Android Development] xyrcncp:
I'm at work and can't download this transfer.sh file, one question though, has the script been updated to include all the caches listed here? http://modmygphone.com/wiki/index.php/Caches_To_SD_Card
[G1 Android Development] topdnbass:
@Ian don't right click and save the link.

Click it. it's not a direct link :p
[G1 Android Development] xyrcncp:
Ok, well I downloaded the .sh file and that answers my question, that no, not all of the caches are on that file.

So, if I wanted to add, let's say Google Maps cache to that .sh file from the info over at http://modmygphone.com/wiki/index.php/Caches_To_SD_Card

Does the code go like this?

mkdir /sdcard/cache/files/maps

busybox cp -a files /sdcard/cache/files/maps

rm -R files

ln -s /sdcard/cache/files/maps/files files

I noticed that the other ones in the .sh file don't have a "busybox" line. This would be the only other cache I would add. Or should I run the script and then add the Maps cache manually?

One last question. If I wanted to go back to storing the cache on the phone, what's the process to do it?
[G1 Android Development] Proxin:
Does this in any way decrease the life of the SD card?

For example, if you allocate extra RAM space on the SD card and redirect it to read that new RAM, it shortens the lifespan of the card...

Also, would like to know how to undo this as well- just in case.
[G1 Android Development] AsaSpades:
What about ShopSavvy?
[G1 Android Development] bhang:
franken script transfer.sh

I just took the OP's file and added the code from a couple posts in the thread to move the maps and steel....

change it from .txt to .sh but don't open it in any windows text app unless you know why you shouldn't and have a proper text app

bhang
[G1 Android Development] Beast84:
Can someone rewrite or make a new script to put all the cache's on the system/sd?
[G1 Android Development] spacezorro:
Move ALL your caches... even the ones you didn't know about...

Yes I can

Here you go...

Standard if you blow up your phone it's not my fault disclaimers apply...

#!/system/bin/sh
#
# |\|
#
# It's stupid and messy but it works for me!!

mkdir /sdcard/cache

for x in /data/data/*/cache
do
cd $x/..
if pwd |grep sdcard
then
echo "Already moved $x"
elif echo $x |grep /data/data/com.android.vending
then
echo "Moving Vending Cache..."
rm -rf /data/data/com.android.vending/cache
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache
elif echo $x |grep /data/data/com.google.android.street
then
echo "Moving Street Cache..."
rm -rf /data/data/com.google.android.street/cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache /data/data/com.google.android.street/cache
else
echo "Moving $x Cache..."
rm -rf cache
ln -s /sdcard/cache $x
fi
done
[G1 Android Development] Beast84:
Umm FAIL! Lol I want it on the /system/sd, not the sdcard. I wanna put the cache's on my ext2 partition along with my apps. But when I tried converting the transfer.sh, I got all kinds of errors so I figured I would ask here to see if anyone did anything different than I did
[G1 Android Development] sino8r:
Something odd happened to Google Maps after manually moving cache using this command (I modified it so I could manually input it using terminal emulator):

rm -R /data/data/com.google.android.apps.maps

mkdir /sdcard/cache/maps

ln -s /sdcard/cache/maps /data/data/com.google.android.apps.maps

Everything should work and it did but... then Google Maps application disappeared:eek: It left nothing but a dead shortcut on the homescreen and nothing in the menu. Obviously it became corrupted but how? I was just moving cache... Well, the whole reason I didn't use the script to move cache was simply because I don't use all those programs... Does anyone see if I missed something? I just want to manually type them in using terminal emulator... Thanks!
[G1 Android Development] bestwebs:
Hi Sin,

I never did the individual moves.

I did it all at once and no problems.

I used adb from the computer.

Here is a diagram I made just in case I had to do it again. :)

Maybe it will help.

:)
[G1 Android Development] spacezorro:
Try s|/sdcard/cache|/system/sd/cache|g

Ok then replace /sdcard/cache with /system/sd right? :confused:

or replace /sdcard/cache with /the/place/i/really/want/my/caches/to/go :rolleyes:

The script works... you are welcome for the working "FAIL Lol"

Here I rewrote it and changed it for you...

#!/system/bin/sh
#
# |\|
#
# Special version for Beast84!

#NEWCACHE="/sdcard/cache"
NEWCACHE="/system/sd/cache"

busybox mkdir -p $NEWCACHE

for x in /data/data/*/cache
do
cd $x/..
case `pwd` in
/data/data/com.android.vending)
echo "Moving Vending Cache..."
rm -rf /data/data/com.android.vending/cache
mkdir $NEWCACHE/marketCache
ln -s $NEWCACHE/marketCache /data/data/com.android.vending/cache
;;
/data/data/com.google.android.street)
echo "Moving Street Cache..."
rm -rf /data/data/com.google.android.street/cache
mkdir $NEWCACHE/streetCache
ln -s $NEWCACHE/streetCache /data/data/com.google.android.street/cache
;;
/data/data*)
echo "Moving $x Cache..."
rm -rf cache
ln -s $NEWCACHE $x
;;
*)
echo "Probably already moved $x"
;;
esac
done
[G1 Android Development] Proxin:
Can anyone provide an answer?
[G1 Android Development] xyrcncp:
Yes. To both questions please. I don't care much about the life of the SD card, but I wouldn't mind knowing, however, I would rather know if the cache moving can be undone and how.
[G1 Android Development] Nitro212:
i think this will do..

;;removes the symbolic link
rm -R /data/data/com.android.vending/cache
;;remove the cache dir
rm -R /sdcard/cache/marketCache
;;re-create the app cache dir
mkdir /data/data/com.android.vending/cache

thats for the market tho
[G1 Android Development] beagz:
Is the cache move really needed if data move is done?

Quick question. I was noticing the location of the cache files being moved and have to wonder... is the cache move even needed after moving the data?

here is an example

the cache for the browser is located in...

/data/data/com.android.browser/cache

if you have the /data/data folder on your ext2 partition of the sdcard then why move the cache to /system/sd/cache (if that is your choice) or even /sdcard/cache??

Isn't it already on the sdcard ext2 partition already???

Maybe this is a dumb question but I am curious.

note: all other cache files that are listed as movable are also notably located in /data/data/<<application>>/cache
[G1 Android Development] Nitro212:
i think this is just for people whom don't have an ect partition and/or just want to move the cache of browser and market..
[G1 Android Development] xyrcncp:
Thanks, that gives me an idea of how to go back if needed. Now, I have an 8GB SD card, I'm of course thinking of getting a 16GB. If I run the transfer.sh file on my current card as per the 1st post and then later I get a 16GB card, at that point should I just run on terminal:

#transfer.sh

?

I'm thinking yes, because I would have already created #mkdir /data/local/bin

and copied the file to that directory: #cp /sdcard/transfer.sh /data/local/bin

and given it permissions: #chmod 0755 /data/local/bin/transfer.sh

Right? :)
[G1 Android Development] Nitro212:
no, you just need to create the directories again in your sdcard, links are already set in the /data/data if you run the transfer.sh again you will get errors just need to create the folders.

mkdir /sdcard/cache/tunewikiCache
mkdir /sdcard/cache/imeemCache
mkdir /sdcard/cache/streetCache
mkdir /sdcard/cache/webviewCache
mkdir /sdcard/cache/marketCache
[G1 Android Development] xyrcncp:
Sweet. Now this is an answer :D

Thanks a lot.
[G1 Android Development] scrappyabs2:
HELP!!! My market app no longer works!!

I tried to move my Market cache and now my Market app no longer works!!

Here is what happened:

I did the first step:

mkdir /sdcard/cache

mkdir /sdcard/cache/files

Then I did this:

cd /data/data/com.android.vending

rm -R cache

No problems yet, and THEN:

mkdir /sdcard/cache/marketCache

for some reason the above step did not work. It said that this folder did not exist. Not sure why it did this.

I probably should have stopped there, but then I did the last command:

ln -s /sdcard/cache/marketCache cache

It processed the above command just fine. But now, when I open Market I get an error message and asked to "cancel" or "retry". When I hit "retry" it takes me to the market, but it doesn't list any applications. It just says "Loading..." and goes no further. It also gives me a force close message "The application Market (process com.android.vending) has stopped unexpectedly."

Is there anyway I can reverse the damage that was done?
[G1 Android Development] spacezorro:
Fixit

try this...

ls -l /data/data/com.android.vending/cache

it *should* look like this (with a different datestamp)

if it doesn't

do this

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

at this point it is "undone" and you can run market again

if you want to try to set it up again.. do this..

rm -r /data/data/com.android.vending/cache
busybox mkdir -p /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache /data/data/com.android.vending/cache

|\|

:)
[G1 Android Development] Fnorder:
This one should catch everything that uses 'webviewCache' - provided it's already created it's cache directory. It also has a configurable list for those that hog space in other ways.

#!/system/xbin/bb/ash
TARGET="/sdcard/cache"
CACHE="
/data/data/com.imeem.gynoid/cache
/data/data/com.google.android.street/cache
/data/data/com.android.vending/cache
/data/data/com.android.browser/app_thumbnails
/data/data/*/cache/webviewCache
"
sdtotal=0;mmctotal=0;successtotal=0;failtotal=0
if [ ! -d "$TARGET" ]; then
mkdir $TARGET
fi

for i in $CACHE; do
local odir=$(echo "$i"|sed s,^/data/data/,,)
local app=$(echo "$odir"|cut -d / -f1)
if [ -d "$i" ]; then
if [ ! -L "$i" ]; then
let mmctotal++
echo -e "$app:\n\t* Moving '$odir'..."
mkdir -p "$TARGET/$odir"
if [ ! -d "$TARGET/$odir" ]; then
echo -e "\t- Error creating directory: $TARGET/$odir"
let failtotal++
else
rm -r "$i"
ln -s "$TARGET/$odir" "$i"
if [ -L "$i" ]; then
echo -e "\t+ Success"
let successtotal++
else
echo -e "\t- Failure! Please investigate $i"
let failtotal++
fi
fi
else
let sdtotal++
fi
fi
done

echo "Matched cache dirs: $sdtotal symlinked, $mmctotal on mmc.";
if [ "$sdtotal" ]; then
echo "Successful moves: $successtotal, Failures: $failtotal"
fi
[G1 Android Development] Beast84:
Is there a way to undo this without having to clear the data from the settings?
[G1 Android Development] xyrcncp:
So I finally did this today, all the caches moved correctly, except Maps.

For some reason the transfer.sh file (from original post) didn't create /sdcard/cache/files so I created it manually, then ran the commands below manually:

cd /data/data/com.google.android.apps.maps

mkdir /sdcard/cache/files/maps

busybox cp -a files /sdcard/cache/files/maps

rm -R files

ln -s /sdcard/cache/files/maps/files files

at the busybox step I get a bunch of "operation not permitted" errors. However, when I browse via file manager, I see some files in the directory (but it shows as /sdcard/cache/files/maps/files/ )????

This is how it looks:
[G1 Android Development] androidmonkey:
1. So how much space is saved on the phone when moving the cache to the SD card?

2. Should you clear the cache from the phone before moving it to the SD card? If so, what is the command?
[G1 Android Development] Nismo300zx:
Browser cache not moved

On monday i applied the trasfer.sh script file and everything seemed to be going smooth except when i check my browser cache it still takes away from my internal memory. ive been searching for a fix if any or an explanation as to why this is happening?..ive also noticed that this question has been asked without any answer so plz any help would be appreciated..thanks
[G1 Android Development] LucidREM:
yes .. copy the cache back to the phone after you delete the link

for those wondering .. do not move your cache if you already moved /data/data
[G1 Android Development] xyrcncp:
I searched in the thread and couldn't find an answer (maybe I used the wrong terms), but how do I go about clearing the cache now that it's moved to my SD card? I thought I read somewhere that if I just hit "clear data" under Applications that it would remove the link to the folders in my SD card.
[G1 Android Development] wizern23:
I had to reset my phone and now its not re-applying the script and says that the dir doesn't exist even though i have used them so that it would work.

it says that it is not a directory
[G1 Android Development] Proxin:
That should work even though you encountered errors.
[G1 Android Development] xyrcncp:
Thanks. Would you be able to tell me how I go about clearing the cache now that it's on the sd card?
[G1 Android Development] wizern23:
You just go inside the folder on the sdcard and delete the files manually.

Now on to my problem I get stuck at the In -s step because it says that it doesn't exist when i try to do it manually. as i stated in an earlier post i can't get the script to work.
[G1 Android Development] kingblind:
can't get transfer.sh to work. .Please help

I can't get transfer.sh to work.. here is what I am doing (see screenshot below) please help
[G1 Android Development] androidmonkey:
Is this a freshly wiped phone? Maybe the cache folders dont exist because the system didn’t create them on the phone yet?
[G1 Android Development] kingblind:
I got it working.. I just had to do it manually.. weird..
[G1 Android Development] Proxin:
Any script to undo changes?

My cache folder has the following folders:

-files (contains map cache)

-imeemCache

-marketCache

-steelCache

-streetCache

-tunewikiCache

-webviewCache

What I want to do is move them from instead of being on the fat32 partition, have them on the ext2 partition.

Because it's annoying sometimes if I have the SD mounted on my computer and I want to run one of the apps that requires cache that's on the already-mounted fat32 partition :/

*Edit: Nvm this post; I just found this to answer my question:

http://xdaforums.com/showpost.php?p=3393160&postcount=111

I think instead I'll just keep the caches where they originally were placed, as I don't need that space for apps anymore they're on my ext2 partition. :)
[G1 Android Development] flumps:
is it possible to move the cache of any application? ie: tRSS ? if so how do you do it?
[G1 Android Development] emanuelemix:
Hi, can you post the link of file transfer.sh uploaded on megaupload? because rapidshare doesn't work! thank you!
[G1 Android Development] mitch1974:
Go back to the first page of this thread and scroll down to the 7th post.
[G1 Android Development] arunachalam:
what is terminal.where it is available
[G1 Android Development] phillyboi47:
terminal is an app for rooted phones. if you don't have it just download it off the market.
[G1 Android Development] jentzschman2000:
Maybe I missed it it scanning through the posts, but why do this? What benefits are there?

Thanks.

P: I guess the proses is the same on the mytouch 4g?
[G1 Android Development] Proxin:
If I remember correctly, this was back before apps2sd, if not at the same time.

G1 users are very familiar with the "Low on space" notification, this would theoretically help to free up extra space you could use to install more apps.

IE: move your cache out of /data, move more apps into /data

This caused a lot of stability and speed problems for me, though, so I wouldn't rely on it. As it takes longer for the cache to be written/read to/from the SD card than it does to read it from /data.

So if you're feeling adventurous, and have made a nandroid backup, you can go ahead and try it... I don't recommend it though.
[General Questions and Answers] eboy809:
Dose anyone know if i can configure my DX900 to:

Question 1

Make calls and answer on SIM1 and only answer on SIM2 (lock it from makings calls)?

Question 2

If i have 2 contacts A and B, can i configure so that contacts A always use SIM 1 and contacts B always use SIM 2?
[General Questions and Answers] axlastro:
I don't know but i would like to ask you where did you buy it from and how much does it cost. Here in Bulgaria they still don't have it in stores. Probably it's best to e-mail their support if they answer.
[General Questions and Answers] eboy809:
I got it from my work, they bought it direct from E-TEN.

Don´t ask me how...
[General Questions and Answers] FloatingFatMan:
Settings -> Personal -> Phone2 -> Services -> Call Barring -> Get Settings -> Block Outgoing Calls = All Calls.

No, you can't configure it that way, sorry.
[General Questions and Answers] eboy809:
Thx, I will try that :)
[General Questions and Answers] eboy809:
It dosen´t work :(

DX900 want some code for the provider and i don´t know what code it is.

It´s not my PIN.

3 part programs who will fix my problem?
[General Questions and Answers] chch:
Hi,

Thanks for info.

I found a site with some screen shots and I see that you are promted to choose a SIM when you make a call or text. Can you tell me if you disable a SIM from outgoing calls then will it no longer prompt the SIM decision question?

My plan would be to put a data SIM (one out of a USB HSDPA dongle) into SIM1 and use SIM2 for all calls. It is my cunning plan to avoid the fact that mobile data is charged at such an expensive rate. Any comments?

Cheers
[General Questions and Answers] Knightro:
Review

How's the performance of E-TEN Glofiish DX900, please. I am planning to buy the unit. Thanks.
[General Questions and Answers] espariz:
Hello, I have the DX900 from 3 weeks, and I am happy, but it still needs a better firmware, because some software issues are here, battery last for only one day or less... but we expect that the new ROM 551 or the very good roms that you make here would solve these issues... I need two sim cards for saving A LOT OF MONEY in my calls (I pay now $50 instead of $300 every month because I have two different plans for morning and afternoon in a single phone), and this the only model that I know with Windows Mobile and Dual SIM dual online (except for some chinese phones like Dubao or IGIC with a worse quality and only WM5...)
[General Questions and Answers] fingusio:
i have also question PL Rom exist for that model?
[General Questions and Answers] hystrix65:
I'd like to buy this device, as far as I know there isn't any dual sim win mobile phone still available. I know there's a dual sim Android phone, Sciphone N21, but it isn't an UMTS phone.

Anyone can write a short review about DX900 and the Sciphone N21?

Thanks in advance
[General Questions and Answers] FloatingFatMan:
The DX900 has been discontinued.
[General Questions and Answers] hystrix65:
It is as E-ten but it is sold as Acer DX900.

I read you have one Dx900, what do you think about it?
[General Questions and Answers] AMoosa:
Acer DX900 vs Sciphone N21

Hi,

I have owned both of these phones in the last 4 weeks and can offer the following information:

N21 -

Pros: Nice looking phone, nice form factor, light, Android is awesome!, Dual sim is really nicely implemented into Android.

Cons - screen is not very responsive, screen is a rubbish resolution and non-standard so some of the Android apps don't scale properly, text input is a nightmare, only 2.5G, Bluetooth only works when wi-fi is on (weird, huh?)

DX900 -

Pros: Ok looking phone, led flash on camera, VGA screen, Windows Mobile, 3G

Cons: A little heavy, Windows Mobile, text input is a nightmare, less slick but ok dual sim integration

What I have ended up doing is sending the N21 back (still waiting for a refund) and loading WM6.5.1 onto the DX900 along with the keypad from the Touch Diamond. This makes it VERY finger friendly and almost a joy to use! I just got this set up this morning so I'll let you know if I have any nightmares (so far, the only bugs on the WM6.5.1 ROM are that the vol keys don't work and can't connect with ASync to my PC, but I'm searching for a fix on these!)
[General Questions and Answers] hystrix65:
Thank you AMoosa, in the meantime i've bought a Dx900 and it should arrive soon, i hope
[General Questions and Answers] beginner:
Hi Amosa, what WM 6.5 are you installing? I have tested a few ones and the result is very bad. There is not -I couldn't find- large number of people hacking this device.

And about the keypad, can you guide me on where find the Touch Diamond keypad that works with dx900?

Thanks a lot.
[General Questions and Answers] seeb:
Rom DX900

Bonsoir, je recherche une rom 6.5 en Français "la dernière si possible" ?

merci
[General Questions and Answers] norne:
Install rom from Acer dx900 to Gsmart s1205

It is any chance to install Acer Dx 900 rom to Gsmart S1205
[Tilt, TyTN II, MDA Vario III General] higherbeing:
Hi Guys,

I'm having a huge issue with trying to sync my tytn with my laptop via bluetooth. I am able to pair them, and I'm even able to connect up using PAN DUN and connect out to the internet. but I am unable to sync via bluetooth. Everytime when i go into activesync on my phone and hit "Connect via bluetooth" it says "cannot find an existing bluetooth partnership with a PC that supports ActivesSync, Would you like to set up a partnetship now?" when I hit yes it takes me to my bluetooth settings page under the mode tab, where i can uncheck "Ton on bluetooth" or "Make this device visible to other devices"... other tabs are "devices" "com ports" "sim access" "ftp" "timeout" "profiles" and "security" Nothing I have tried will get these 2 things talking to each other via ActiveSync. What am I doing wrong. I checked my laptop and it allows via bluetooth under the Windows Mobile Device Center. I tried recreating the pairs, still nothing.

I looked up some tutorials about creating com ports and I tried that method 2 but it still didnt work. I had this working before I switched to the vista mobile v3 rom, so I'm wondering if this is a rom specific problem. I would greatly appreaciate some help on this. thanks
[Touch HD Themes and Apps] ixsus:
Hello everyone!

I have a question regarding Mediaplayer on Blackstone, can anybody tell me wich player can i use instead of Winamp? I need to open *.m3u files in order to listen to online radio.

Thank you for any sugesstions!
[Touch HD Themes and Apps] fastie:
GSPlayer very good