Search code examples
iosiphoneiphone-privateapi

How to access Safari history from iPhone App using Private Frameworks


I got a situation something like, i can use Private Frameworks of Apple in order to know the operations being performed on iPhone Safari( i.e History the Tabs being browsed and time spend on browsing kind of info).

I have gone through some of the things like Dumping Private frameworks. But i don't know which Framework to Dump i guess WebKit may help. Can some body please give the needful info to solve this problem.

i have imported the Dumped classes to Frameworks i.e WebHistory.h, WebHistoryItem.h, WebPreferences.h Please let me know in case i miss anything

 #import "WebHistory.h"

 - (void)viewDidLoad {

   [super viewDidLoad]; 

   WebHistory *history=[WebHistory optionalSharedHistory];
    NSLog(@"%@",history);

}

Solution

  • We can find the history.plist in /var/mobile/Media/Safari/ and this we can read in jailbreaken iPhone.