Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

SMS.db access

User Post

11:10 am
January 1, 2009


teog

Noob

posts 1

1

Hi to all,

I'll try to access to SMS.db to read sms (only read mode) inside my application (jaylbreacked Iphone 2.2).

I'm using sqlite3 library to access to SMS.db. 

To test my app I was copyed (by ssh access) sms.db in a bundle “documents” directory and then i can access sucesfully to the DB.

But, when I try to access direct to /var/mobile/Library/SMS/sms.db to open DB it could be not possible, sqlite3_open return not OK !!?? (insuffcients permissions !?)

….

NSString *path = @”/var/mobile/Library/SMS/sms.db”;
    // Open the database. The database was prepared outside the application.
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK

…..

Inside my application I had try, at startup,  to copy sms.db in a bundle directory, and then access locally to it,  but Filesystem “copy” operations return error to open original file….

same ideas?

-is it possible run application as root?

-how can I manage sms.db?

BR

 Matteo

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

omh1280

6 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 935 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.