title: Read sms.db and call_history.db file on iOS?
body: <p>I am developing an application for a jailbroken iPhone 5s (iOS 7.1.1) to fetch call logs and messages stored in the respective .db files.I have certain queries:</p>
  
  <ol>
  <li><p>I have a valid certificate, provisioning profile and my app is signed using this profile, so is it necessary to remove this profile and sign the app with ldid (if so why and what are the steps?)</p></li>
  <li><p>Does my app needs to have root permission to access the databases (/var/wireless/Library/CallHistory/call_history.db) and (/var/mobile/Library/SMS/sms.db), if so how to grant root permission to my app. I have tried the solution: <a href="https://stackoverflow.com/questions/7841344/gaining-root-permissions-on-ios-for-nsfilemanager-jailbreak/8796556#8796556">Gaining root permissions on IOS for NSFilemanager jailbreak</a> but my app installed using this method just shows a blank screen on click and then fades away (I have signed my app using a valid developer certificate and provisioning profile)</p></li>
  <li><p>Any code related to fetching call_logs and sms would be helpful,i tried some of the codes suggested but none of them worked,may be due to above issues.</p></li>
  </ol>