Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 21, 2009, 04:13 AM   #1
strife07
macrumors newbie
 
Join Date: Jul 2009
How do backup utilities like phoneView access iPhone sqlite db

Hi,

Does anyone know how programs like phoneView access the sqlite db (for example, SMS, Address Book, Notes) in the iPhone? I know there's an Addressbook API for iPhone SDK but I'm not sure if that is usable for this.
And if I'm not wrong, phoneView requires iTunes to be installed. So I was thinking, it might be using some kind of API from iTunes? Just feeling curious.
strife07 is offline   0 Reply With Quote
Old Jul 21, 2009, 11:11 AM   #2
admanimal
macrumors 68040
 
Join Date: Apr 2005
Quote:
Originally Posted by strife07 View Post
Hi,

Does anyone know how programs like phoneView access the sqlite db (for example, SMS, Address Book, Notes) in the iPhone? I know there's an Addressbook API for iPhone SDK but I'm not sure if that is usable for this.
And if I'm not wrong, phoneView requires iTunes to be installed. So I was thinking, it might be using some kind of API from iTunes? Just feeling curious.
PhoneView just reads from the backup file that iTunes creates/updates on your hard drive every time you sync the phone.
admanimal is offline   0 Reply With Quote
Old Jul 21, 2009, 12:06 PM   #3
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
iTunes backs up the iPhone data in modified SQLite DB's. Some desktop apps search for, unmodify, and do SQL queries on the resulting DB's after an iTunes Sync.

But all bets are off with the new 3GS encrypted backups.
firewood is offline   0 Reply With Quote
Old Jul 21, 2009, 09:38 PM   #4
strife07
Thread Starter
macrumors newbie
 
Join Date: Jul 2009
Quote:
Originally Posted by admanimal View Post
PhoneView just reads from the backup file that iTunes creates/updates on your hard drive every time you sync the phone.
I just tested PhoneView on my Macbook. Have never tried to sync my iPhone with iTunes prior to this. And I've disabled autosync for iTunes.

So here's what I did:
I opened PhoneView then plugged in my iPhone. PhoneView starts to sync.
I noticed that it created this directory:
user/Library/Application Support/PhoneView
with the file fe1377cfc20ba33585b865ecc1141eda2353a585.db.

If I'm not wrong, the iTunes backups are in user/Library/Application Support/MobileSync/Backup. But I don't seem to find that on my Mac.

I managed to edit some notes in my iPhone with PhoneView. So I was wondering, if it is in fact using the iTunes backup file, how would it be possible to commit the changes to the iPhone?
strife07 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
thread Thread Starter Forum Replies Last Post
Using UUID as pkey in sqlite db mraheel iPhone/iPad Programming 9 Dec 2, 2011 01:28 PM
How Do People Sell Their Allocation of iPhone 4S on eBay? HUGE AL Jailbreaks and iOS Hacks 2 Oct 10, 2011 09:16 PM
Besides backup, How do you get back an older version of an iOS App? v5point0 iPhone and iPod touch Apps 0 Mar 7, 2011 05:40 AM
How do I completely restore as new iphone then retrieve backup data? shinythings iPhone Tips, Help and Troubleshooting 1 Nov 30, 2009 06:17 AM
Most likely iBook 700MHz G3 - how do you guys like them? slooksterPSV Buying Tips, Advice and Discussion (archive) 8 Jun 10, 2005 01:09 AM


All times are GMT -5. The time now is 08:34 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC