+ Reply
Results 1 to 3 of 3

Thread: SMS trouble

  1. #1
    What's Jailbreak?
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SMS trouble

    Dear all, I'm a new iphone "developer", but not an ufficial one, just for fun.

    I start develop an application that works on sms.db.
    I want to enable the full delete of message sent by a fixed persons.

    If I try to make a SELECT statement to message table all works fine.
    Problems comes when I try to make a DELETE from the db, I get an "attempt to write a readonly database" error message.

    I think that is a problem of permission on sms.db, there exist a method to lunch my application as "root user" to enable it on modify this file?
    Any other ideas on how resolve this problem?

    Cheers
    Massimo
    Last edited by giomax; 11-21-2008 at 09:38 AM.

  2. #2
    iPhone? More like MyPhone
    Join Date
    Nov 2007
    Posts
    206
    Thanks
    8
    Thanked 32 Times in 29 Posts

    well if you're using the sdk to make your application then it definitely wont let you write/delete to sms.db

    but if you're using the toolchain, try chmod'ing the sms.db to 777 or chroot'ing your application to root.
    hit thanks if thanks are due.

  3. #3
    What's Jailbreak?
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yes I use the SDK, but I don't know what toolchain are.
    Can you tell me more about it, or give me some link?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts