Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

teog

macrumors newbie
Original poster
Hi 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, because 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….

any ideas?

-is it possible run application as root?
-how can I manage sms.db?
-applications as bitesms how can access to sms subsystem?

BR
Thanks!!!

TeoG
http://www.teog.it


PS
I'm developing a multilanguage SMS talker program. I've just porting multilanguage espeak TTS (text to speech) library to iphone.
 
hi teog. did u find any way to resolve this. i have the same issue. it seems that the /var/mobile/Library/SMS/sms.db is not accessible. the sqlite_open always returns no, if (sqlite3_open([path UTF8String], &database) == SQLITE_OK always returns NO.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.