Related
Has anyone tried this
http://modmygphone.com/forums/showthread.php?t=4851
Root the phone. How to do it is already here...
Now:
cd /data/data/com.android.browser/cache
rm -R webviewCache
mkdir /sdcard/webviewCache
ln -s /sdcard/webviewCache webviewCache
You are changing to the cache directory.
Deleting the web cache directory.
Making a new one on the sdcard.
Linking symbolically the new one to the old one.
Now open your browser and surf. Your phone does NOT know you did this and it thinks it still has the old one. If you plug your phone into your computer and check you will see a lot of files with 8 character names. (after having surfed of course)
To your phone it is as though the webviewCache is still in the same spot. In reality it is on your SD Card where you have plenty of room for it.
******Warning*****
After doing this to my phone a few hours I tried dowloading an app from the market and I was getting error messages. So I reset my phone thinking it would fix the problem but when i tried to get pass the google log in screen it said my account didn't have the data plan. I re-flashed using the RC28 update.zip file and got it back up. just my experience
can some one help..when i run the first line cd /data/data/com.android.browser/cache it said canr cd to thats location....wat is the problem???
i just noticed that the first line only works if u have cache saved already....i cleared mine n thats y it didnt read the whole line lol opps
saul972 said:
Has anyone tried this
http://modmygphone.com/forums/showthread.php?t=4851
Root the phone. How to do it is already here...
Now:
cd /data/data/com.android.browser/cache
rm -R webviewCache
mkdir /sdcard/webviewCache
ln -s /sdcard/webviewCache webviewCache
You are changing to the cache directory.
Deleting the web cache directory.
Making a new one on the sdcard.
Linking symbolically the new one to the old one.
Now open your browser and surf. Your phone does NOT know you did this and it thinks it still has the old one. If you plug your phone into your computer and check you will see a lot of files with 8 character names. (after having surfed of course)
To your phone it is as though the webviewCache is still in the same spot. In reality it is on your SD Card where you have plenty of room for it.
Click to expand...
Click to collapse
The last line could essentially save apps on the SD card as well can it not?
BTW apps are saved in several locations, the main apk is in /data/app/ while the data itself is saved in /data/data/ I wonder if you could just link to /data/ as sdcard/data/
quick question.. where does the cache go if u remove the sdcard and/or you mount it to a pc?
does it save on the device?
does it just not save?
or does it give you an error?
it just doesn't save, I tried it
undo changes??
Happy Thanksgiving everyone,
I was wondering if anyone could write out the code on how we could undo these changes. I'm sure its very similar to what stericson wrote for the market cache but I just wanted to make sure on the details. Thank you!
hbguy
The undo for this would be:
Code:
cd /data/data/com.android.browser/cache
rm webviewCache
mkdir webviewCache
chmod 771 webviewCache
busybox chown app_18 app_18 webviewCache
rm -R /sdcard/webviewCache
To explain:
- change to the correct directory
- remove symbolic link to the sd card
- re-create original directory
- change the access permissions back to defaults
- change ownership back to defaults
- remove cache on the sd card
Few points on this.
I've not actually done this completely, just used my linux knowledge, and tested the chmod/chown steps procedure on my TC5-RC8, but not really sure if it's necessary (there for the sake of accuracy)
Had to use busybox chown as chown not natively found
I'm new to android and have made the assumption everyone's webviewCache is orginally owned by app_18? For all I know, this is randomly generated. I'm sure someone can confirm.
I wouldn't use this method and randomly remove the sdcard...that would be asking for data corruption on the sd card...
thanks budvar!
can someone confirm please?
hbguy
webcache owner
Don't think the app owner is always 18. Permissions on my webcache dir are for app_24
Web on da as would be sweet throw 8gb In and have no worries about on board space or lag time as the unit deletes cache I hope to see this added to the next firmware for users that plan on using a bigger sd card g1 is a great phone
so what lines do i change from budvars explanation? also how would I find with app_xx i am suppose to use if his explanation?
hbguy
Open the browser, then get a terminal on your phone
type
Code:
ps a
(can just use 'ps' but 'ps a' brings back a shorter list)
under the name column look for 'com.android.browser'
on the far left you will see the owner (in my case app_18)
just swap your app_xx in my original example.
Would this not also undo actions
Settings->applications->manage applications->browser: clear data
There are other ways to move cache to your microSD..
http://androidcommunity.com/forums/f7/modified-rc30-the-real-benefits-8090/
damnitpud said:
EDIT:
I found a few things you can do after having JesusFreke's RC30 loaded. I did not come up with these hacks, i just found them and want to put them in one place, i will give credit to the people who posted them.
Move Browser Cache to SDCard: By grickson from XDA
cd /data/data/com.android.browser/cache
rm -R webviewCache
mkdir /sdcard/cache/webviewCache (if you have already made the cache folder in your microSD)
ln -s /sdcard/webviewCache webviewCache
Move Market Cache to SDCard: By grickson from XDA
cd /data/data/com.android.vending
rm -R cache
mkdir /sdcard/cache/
mkdir /sdcard/cache/marketCache
ln -s /sdcard/cache/marketCache cache
Move StreetView cache to microSD: By grickson
cd /data/data/com.google.android.street
rm -R cache
mkdir /sdcard/cache/streetCache
ln -s /sdcard/cache/streetCache cache
Click to expand...
Click to collapse
...which is the same method as described in the 1st post...
But thanks for the other examples.
I feel a script coming on...
umm...didnt work
so im still new to this android programming thing...
iso i followed the steps on the 1st page and everything worked as it should...i think...
Yet when i browse the market or the web i still use up the phones memory and not the sdcard. Anyone have any ideas as to what i did wrong?
haitiankid4lyf said:
Would this not also undo actions
Settings->applications->manage applications->browser: clear data
Click to expand...
Click to collapse
Sure does... I just spent the last 30 minutes figuring that out... It makes sense though, apparently a "Clear Data" from the Manage Applications location will remove everything in the /data/data/com.android.browser/ folder - everything except for lib. However, if you have a symlink in there... like this how-to suggests, that gets removed as well.
On the bright side... once you do this, you shouldnt have to worry about clearing the data cache again... none the less, something to keep in mind...
I found another location for a sym link as well, if you have a huge calendar (mine is 6MB+) create a symlink from
/data/data/com.android.providers.calendar/databases/calendar.db
I dropped mine on the sdcard, I have a folder called sys with all these caches in it. Now calendar storage reads 4kb...
Anyone find a way to move the gmail cache to the sdcard?
s0niqu3 said:
Anyone find a way to move the gmail cache to the sdcard?
Click to expand...
Click to collapse
That one is located here:
/data/data/com.google.android.providers.gmail/databases/mailstore.{your_email_address}.com.db
Also, in case anyone has not figured this one out... You can move all your notifications and ringtones to your sdcard as well. They are located in:
/system/media/audio/
I forgot which app installs a media folder to your sdcard, I think it's ringdroid... either way, it's a symlink to the above location - you can either use that or create your own... All I did was adb pull the folders above, and then push them to my /sdcard/media/audio/.
I think with all the hacks in this post we've cleared up a good 15 to 20 megs from the internal memory. I know my market app was up to 11mb, browser was around 3, and my calendar 6... That's quite a bit of room...
I think we need to sticky this post, and update the first post with all the subsequent locations...
hey guys,
there are a few threads that are similar to this and should be stickied and compiled together for better organization (mods please ) one is called cache to sd and another is called market to sd.
on to my question. i'm not sure if you all use the app steel as the browser but i was wondering how we would do a similar cache to sd as we do for the webviewCache for android browser?
hbguy
Probably a stupid question, I just don't know enough yet.
I need to put some entries in my g1's hosts file. However, the OS seems to have it locked down on my 1.2 rc30. Terminal Emulator tells me chown is not found. I don't have access to the SDK where I am right now, however, but I'm hoping someone can point out what I'm missing.
adnans said:
Probably a stupid question, I just don't know enough yet.
I need to put some entries in my g1's hosts file. However, the OS seems to have it locked down on my 1.2 rc30. Terminal Emulator tells me chown is not found. I don't have access to the SDK where I am right now, however, but I'm hoping someone can point out what I'm missing.
Click to expand...
Click to collapse
busybox has chown in it. RC1.2 has busybox. Also, you must use uids and gids, and can't use user names or group names with busybox on Android.
ah, there's chown, thanks! now i gotta play around and figure out what to chown it to. i tried 0 and 777 (i just recently got back into linux, i haven't done jack with it since slackware 3 came out), and it's still telling me that /etc/hosts: Read-only file system.
adnans said:
ah, there's chown, thanks! now i gotta play around and figure out what to chown it to. i tried 0 and 777 (i just recently got back into linux, i haven't done jack with it since slackware 3 came out), and it's still telling me that /etc/hosts: Read-only file system.
Click to expand...
Click to collapse
you need to remount your /system as read write first.
mount -oremount,rw /dev/block/mtdblock3 /system
Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.
Please read the problem completely before answering and saying something.
I have S3 Feel os ROM in my HTC Pico.
When i tried to copy any files inside /system/ its saying : Permission denied read only file system.
I tried to use chmod 777 to system through terminal emulator its also given same warning.
Then I tried remounting with the command: mount -o rw,remount /system (using terminal emulator) didn't do the trick for me.
Can you guys tell what should i do to get the write permission. (Its actually showing read and write permission when I saw file/folder properties with a file explorer inside the system directory, but actually its not allowing to write).
It should be fine if you try with some file manager that can get root permissions. (my choice is 'es')
But if you are using the new oc kernel, there things might be different.
What is terminal emulator giving you back?
You also can try by flashing superuser, I have not tryed exactly this rom, but there may be something wrong with su
shortyoko said:
It should be fine if you try with some file manager that can get root permissions. (my choice is 'es')
Click to expand...
Click to collapse
Yes I am using ES File explorer only. Still it says, error permission denied to copy a new file/create a new file/overwrite a file.
shortyoko said:
But if you are using the new oc kernel, there things might be different.
Click to expand...
Click to collapse
I have flashed a oc kernal almost a month back. In between I have changed lot of roms and got back to S3 Feel os rom. I think that won't effect now right?
shortyoko said:
What is terminal emulator giving you back?
Click to expand...
Click to collapse
If I give chmod 777 /system, it's giving permission denied (I have granted super user permission to terminal emulator and i am in su mode)
When I tried mount -o rw,remount /system, it didn't output any thing. Then again I tried to copy a file into system dir, still its the same result.
shortyoko said:
You also can try by flashing superuser, I have not tryed exactly this rom, but there may be something wrong with su
Click to expand...
Click to collapse
Its the last choice I have now, will try.
Try changing mounting
smartksr said:
Please read the problem completely before answering and saying something.
I have S3 Feel os ROM in my HTC Pico.
When i tried to copy any files inside /system/ its saying : Permission denied read only file system.
I tried to use chmod 777 to system through terminal emulator its also given same warning.
Then I tried remounting with the command: mount -o rw,remount /system (using terminal emulator) didn't do the trick for me.
Can you guys tell what should i do to get the write permission. (Its actually showing read and write permission when I saw file/folder properties with a file explorer inside the system directory, but actually its not allowing to write).
Click to expand...
Click to collapse
Had same problem with same ROM. So i go to ES then root explorer then mount R/W then change both path and system to RW and restart.. that solved my problem. try it.
shree15 said:
Had same problem with same ROM. So i go to ES then root explorer then mount R/W then change both path and system to RW and restart.. that solved my problem. try it.
Click to expand...
Click to collapse
Thanks bro, it has solved me the problem.
I think I'm starting to go slightly insane here.
Can't for the life of me mount /system as rw, it's only ro.
Ways I've tried:
- using mount command in terminal emulator
- using rw remount button in total commander
- using adb shell to do the same thhing as terminal emulator
i have supersu and all of the above were granted superuser but still no luck
here's relevant part of console output, but it doesn't do anything.
Code:
D:\Downloads\adt-bundle-windows-x86_64-20131030\sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # mount
mount
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
[email protected]:/ # mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
the directory stays read-only.
the whole reason i'm trying to do this is so i can stick in a boot animation (link) into system/media ...is there an easier way? i've tried 3 different file explorers with super but they all fail because it's not rw.....
and adb cant push to it either because it's rw.......
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
rootSU said:
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
Click to expand...
Click to collapse
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
DryEagle said:
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
Click to expand...
Click to collapse
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
rootSU said:
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
Click to expand...
Click to collapse
thank you!! this solved it!
No worries
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit