The ModMyTM Family of Sites.
   
Go Back   Android and G1 Forums, Mods, Hacks, News, Downloads, Skins, Themes, and more! | ModMyGphone > Android Modding > Jailbreak (Root Access)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Jailbreak (Root Access) Discussions on gaining and using root access
Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2008, 05:03 AM
V_RocKs V_RocKs is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 4 Times in 1 Post
Default Move your Internet Cache to the SDCard...

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.


Next up....
Working on the databases and figuring out how they play into this...

Last edited by V_RocKs; 11-07-2008 at 05:31 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
The Following 4 Users Say Thank You to V_RocKs For This Useful Post:
chulo333 (11-07-2008), heldc (11-12-2008), Manup456 (11-10-2008), NFauteux (11-07-2008)
  #2  
Old 11-07-2008, 05:46 AM
V_RocKs V_RocKs is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 4 Times in 1 Post
Default

One caveat: If you delete the browser data from the Settings/Applications/etc/etc menu you will also delete this symbolic link...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #3  
Old 11-07-2008, 09:11 AM
NFauteux NFauteux is offline
Who needs an iPhone?!?!
 
Join Date: Nov 2008
Posts: 145
Thanks: 5
Thanked 24 Times in 10 Posts
Default

thank you very much for the tutorial! i tried to do that directly on the phone through terminal emulator but it said i did not have permission, but i had jailbroken it last night. i ended up doing it through telnet on the computer (which kept freezing when the phone went idle and turned off the screen. I eventually got it done though. lol. I really appreciate your research, and the fact that you were willing to share it. This should save some memory on my phone.


edit------------

well. i found ou it was my error gaining root on the phone, i had tried terminal emulator, and pterminal with telnet on the phone. i had changed "local host" to the phones IP address. That was what stopped me from performing the mod directly on the g1

Last edited by NFauteux; 11-07-2008 at 09:19 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #4  
Old 11-07-2008, 02:37 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Doesn't Work?

Followed direction directly.
All commands successful.
DID NOT clear cache (as stated above deletes the symbolic command)

Browser starts with 4k
SD Card has 7592 total
Available 5651
Phone Memory 20MB

Browser ends with 2MB
SD Card has 7592
Available 5639 MB
Phone Memory 18MB

So...looks like a 12MB change on SD Card for some reason
and 2MB of INternal memory.

Perhaps 2MB of internal memory will not increase and the rest is going to sd card (should be 8 mb of cache...visited myspace/cnn...so the sd card could be right)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #5  
Old 11-07-2008, 02:48 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default UPDATED Stats

More browsing (MSNBC/VCDQuality/NEWZBIN) with these stats:

Browser 3MB
SD Card 5623 Available (from 5639 before)

So I lost 16MB more from the SD Card and 1 MB from INternal Memory.


Anybody venture to guess what is actually happening here?

Cause I have been browsing without using SD as cache and have not seen the the Browser memory above like 10MB before (after 2 or 3 days and then I cleared it out).

And I wasn't losing SD Card before.



So if I am still getting moderate loss of internal memory, what's the point?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #6  
Old 11-07-2008, 02:59 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

On Clear Data button:

But it seems things just go back to normal when I do that, doesn't really break anything (except that cache no longer goes to SD).

Right?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #7  
Old 11-07-2008, 03:17 PM
NFauteux NFauteux is offline
Who needs an iPhone?!?!
 
Join Date: Nov 2008
Posts: 145
Thanks: 5
Thanked 24 Times in 10 Posts
Default

no internal memory loss for me. it works great. Do you think we can use this same concept with the /data/app folder? that is the folder where all of the installed programs go. i wonder if we can shortcut that also
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #8  
Old 11-07-2008, 03:25 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by NFauteux View Post
no internal memory loss for me. it works great. Do you think we can use this same concept with the /data/app folder? that is the folder where all of the installed programs go. i wonder if we can shortcut that also
My guess would be there are database entries for apps that would extend beyond simply moving a folder.

You know like a web temp folder is just a folder, but apps make commands to operate and if they call on a specific location it may be a little bit of a hassle.

Of course I CAN'T WAIT till someone is brave enough to try it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #9  
Old 11-07-2008, 03:26 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by NFauteux View Post
no internal memory loss for me. it works great. Do you think we can use this same concept with the /data/app folder? that is the folder where all of the installed programs go. i wonder if we can shortcut that also
Would you post your numbers? Internal memory/sd card/browser data
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #10  
Old 11-07-2008, 03:43 PM
NFauteux NFauteux is offline
Who needs an iPhone?!?!
 
Join Date: Nov 2008
Posts: 145
Thanks: 5
Thanked 24 Times in 10 Posts
Default

before i was at phone 37mb , sd 3537 after clearing the folder on memory card. i also cd to the shortcut in the terminal before deleting. i had lots of files in there. after clearing on card, i cd again and it was empty. i checked with "ls". anyways, after browsing the internet a ton just to check the numbers, i ended up with phone 37mb , sd 3529. i lost no memory at all internally and it only saves files onto the memory card. i was a great workaround!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
The Following User Says Thank You to NFauteux For This Useful Post:
MinisterSin (11-07-2008)
  #11  
Old 11-07-2008, 03:56 PM
NFauteux NFauteux is offline
Who needs an iPhone?!?!
 
Join Date: Nov 2008
Posts: 145
Thanks: 5
Thanked 24 Times in 10 Posts
Default

Quote:
Originally Posted by MinisterSin View Post
Would you post your numbers? Internal memory/sd card/browser data
i posted most of my numbers in the post before, but i don't know how to find my browser data numbers. i know the browser app takes up 3mb. lol
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #12  
Old 11-07-2008, 04:31 PM
MinisterSin MinisterSin is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by NFauteux View Post
i posted most of my numbers in the post before, but i don't know how to find my browser data numbers. i know the browser app takes up 3mb. lol
Under Settings...Applications...Manage Applications...Browser inside you will see Total Memory, Application Memory and Data Memory.

I can clear data and end up with Browser showing as 0b memory (no data, no total) but then it starts moving up again (moved from 2mb to 3mb after a browsing session or two).

I know the browser does take up some space (even though Application Memory says 0b), but that is actually taken into account in the memory allocated for the OS. It means the browser takes 0b of AVAILABLE memory.

I'm just going to keep watching and see if it moves above 3
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #13  
Old 11-07-2008, 04:58 PM
ballaholyk84 ballaholyk84 is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Worked Awesome! Thanks guys
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #14  
Old 11-07-2008, 06:18 PM
NFauteux NFauteux is offline
Who needs an iPhone?!?!
 
Join Date: Nov 2008
Posts: 145
Thanks: 5
Thanked 24 Times in 10 Posts
Default

browser total 3mb, application 0mb, data 3mb. it hasnt moved up for me. i dont want to clear data through the G1 software because it will remove the link to the SD card
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #15  
Old 11-07-2008, 06:38 PM
ballaholyk84 ballaholyk84 is offline
Actually, I prefer Yahoo.
 
Join Date: Nov 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you were to clear it though and the link is removed couldnt you always build it back?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:10 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2007-08, ModMy LLC