iPhone SMS Database Merger for iOS 3.x, 4.x and 5.0 (BETA)

This script merges your 2 SMS databases into one. Please note following restrictions:

First sms.db:

Second sms.db:

Length of telephone numbers in your country (eg. +1 0XX XXX XX XX)
Show debug output

How-To:

  1. Jailbreak your iPhone
  2. Install DiskAid and download the sms.db file to your computer (location on phone: /var/mobile/Library/SMS/sms.db)
  3. Upload the 2 files and and click "Merge".
  4. When the merge is complete, save the new database to your folder on the iPhone (/var/mobile/Library/SMS) as sms.db (replace the old one)
  5. iOS 5: Delete sms.db-shm and sms.db-wal if present
  6. Restart your iPhone
  7. Enjoy! :)
  8. Important: You have to replace to old file, to keep the old permission settings
  9. If the SMS App crashes after sending a SMS please check the permissions on the file. The owner and group should be mobile. The permission rw-r--r-- or 0644.
Or New:
  1. Use iBackupBot to get sms.db from backup and restore to iPhone without jailbreaking.(Not tested by myself) Here is a guide that may help.

Caution: Don't delete your old sms.db files unless you are sure the merging worked!
v0.11, Copyright © Simon (simismail@gmail.com)