Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > iPhone 3G (Rev. 2) > 3G General Talk

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2009, 08:55 PM
ult
Status: Offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Rep Power: 0
ult is on a distinguished road
Default Script to clear history/cookies/cache?

Looking for specifically what commands/process the iphone does when you select
Clear History, Clear Cookies, and Clear Cache.

I'm interested in using a shell script to automate the deletion of the files or follow the same procedure the iphoneOS does when you select these actions rather than have to constantly press through the menus each time.

If you know what commands or actions (I presume deleting specific files) it follows, please reply back and let's see if we can automate it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-21-2009, 03:53 AM
philvujovic's Avatar
philvujovic
Status: Offline
Junior Member
 
Join Date: Apr 2009
Posts: 19
Rep Power: 0
philvujovic is on a distinguished road
Default

Quote:
Originally Posted by ult View Post
Looking for specifically what commands/process the iphone does when you select
Clear History, Clear Cookies, and Clear Cache.

I'm interested in using a shell script to automate the deletion of the files or follow the same procedure the iphoneOS does when you select these actions rather than have to constantly press through the menus each time.

If you know what commands or actions (I presume deleting specific files) it follows, please reply back and let's see if we can automate it.
dude i was wondering the same thing! , i usually lend my family my phone when they really need it, and that includes my 10 year old sister, and i wouldnt want anyone to find some history, ..
or possibly some app like lockdown, that requires a password to access the applications you want to lock, but just for history?
__________________
- Filip Vujovic

[ -Iphone 3G, jailbroken 3.0 , ROGERS.- ]

+rep/thanks appreciated (:

[Come out with things unsaid,
Shoot an apple off my head]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-21-2009, 07:59 PM
ult
Status: Offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Rep Power: 0
ult is on a distinguished road
Default

lets start with the basics
We know one of the places mobilesafari keeps its cookies is in:
/private/var/root/Library/Cookies/Cookies.plist

We know one of the places mobilesafari keeps its history is in:
/private/var/mobile/Library/Safari/History.plist

We know one of the places mobilesafari keeps its cache is is:
/private/var/mobile/Library/Caches/Safari

We know when we clear cache/cookies/history it also clears:
/private/var/mobile/Library/Safari/SuspendState.plist

so we can all easily script deleting those files. But I'd like to identify if there are other files that are deleted as well. Wish I had a similar tool to filemon to execute here...

Last edited by ult; 05-21-2009 at 08:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 05-22-2009, 02:01 AM
ult
Status: Offline
Junior Member
 
Join Date: Jul 2008
Posts: 4
Rep Power: 0
ult is on a distinguished road
Default

Quote:
Originally Posted by ult View Post
lets start with the basics
We know one of the places mobilesafari keeps its cookies is in:
/private/var/root/Library/Cookies/Cookies.plist

We know one of the places mobilesafari keeps its history is in:
/private/var/mobile/Library/Safari/History.plist

We know one of the places mobilesafari keeps its cache is is:
/private/var/mobile/Library/Caches/Safari

We know when we clear cache/cookies/history it also clears:
/private/var/mobile/Library/Safari/SuspendState.plist

so we can all easily script deleting those files. But I'd like to identify if there are other files that are deleted as well. Wish I had a similar tool to filemon to execute here...

In addition to:

removing the following:
/private/var/mobile/Library/Caches/Snapshots/com.apple.mobilesafari-Default.jpg

and the contents of:
/private/var/mobile/Library/Caches/Safari/Thumbnails
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MacNN: Script Debugger 4.5 adds Unicode Leopard support hackint0sh Latest Headlines 0 11-28-2008 01:50 PM
[hAcx] iLiberty+ Script Generator (Windows) hacx Tools 26 07-04-2008 08:51 AM
script in Iphone lolof Free Toolchain Software 4 10-15-2007 06:03 PM
Fully automated automator script to do everything ? Bibyfok Tools 0 09-16-2007 12:49 PM
Local IMAP Server + Fetchmail + Script = Push Email? -cj- Free Toolchain Software 0 09-01-2007 08:51 AM



All times are GMT +2. The time now is 12:56 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105