Delet call_history.db data programatically

Discussion in 'iOS Development' started by amitchauhan, Jul 27, 2009.

  1. amitchauhan

    amitchauhan New Member

    Joined:
    Jun 23, 2009
    Messages:
    24
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Dear All,

    Could you please help me to get these below.

    1) How to block USSD message programatically
    2) How to get the Roaming Notification
    3) How to pick the incomming Call programatically from Specific No.
    4) How to get the incoming call no. programatically.
    5) How to delete the Cakll History from @"/private/var/mobile/Library/CallHistory/call_history.db";
  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    You may want to spend some time trying to reverse CoreTelephony and see if you can find something that you could use. Apple generally(I believe) encryptes all their databases, so you'll have a hard time modifying that without breaking it, unless, again, CoreTelephony has some function to modify it.
  3. amitchauhan

    amitchauhan New Member

    Joined:
    Jun 23, 2009
    Messages:
    24
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I have already use the CoreTelephony framework and getting Telephony Notification successfully.Now i need how to delete the recent call from Call History.
    Any permission issue is there or something else.

    Regards,
    Amit
  4. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    Just run strings on the Phone application's binary and find the relevant SQL.

    I swear you've asked this question before.
  5. amitchauhan

    amitchauhan New Member

    Joined:
    Jun 23, 2009
    Messages:
    24
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Yes,
    I have asked this question many times,but not get satisfied answer.

    What string i should run on the Phone Application binary?

    I have decelared the call_history.db path

    Nsstring *path=@"/private/var/mobile/Library/CallHistory/call_history.db";
    sqlite *database;

    if(sqlite3_open([path UTF8String],&database)==SQLITE_OK)
    {

    }

    But i am unable to open the database.

    Can anyone help me to fix this issue.

    Regards,
    Amit
  6. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    When I said run strings on it, I meant to literally run strings on it.
    Code:
    strings /Applications/MobilePhone.app/MobilePhone
    That'll spit out all the ASCII in the binary and you can look for the SQL you need.
  7. amitchauhan

    amitchauhan New Member

    Joined:
    Jun 23, 2009
    Messages:
    24
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Many thanks to you!

    How can i run it. I have jailbroken iPhone 2.2.1.

    Could you please help me in details.

    Thanks in Advance.
    or could you please provide me your avaliablity on Yahoo IM for 15 min only.

    My Yahoo IM is amit_kushvaha@yahoo.com

    Regards,
    Amit
  8. shikhardadhich

    shikhardadhich New Member

    Joined:
    Nov 28, 2009
    Messages:
    2
    Likes Received:
    0
    Device:
    iPhone
    Gettting the same issue...

    Is any one able to resolve the issue!!!
    Please help me. I am not able to access the path:

    /private/var/mobile/Library/CallHistory

    Thanks
    Shikhar
  9. Gershmer

    Gershmer Active Member

    Joined:
    May 2, 2009
    Messages:
    1,628
    Likes Received:
    1
    Device:
    iPod touch
    ^ Nice 4 month bump.

Share This Page