Francis Devereux

June 4, 2011

Copy SMSes from Nokia S60 phones to Android phones

Filed under: Android, Symbian — Tags: — frankoid @ 8:59 pm

I’ve just written a Python utility to help me copy my SMSes from my N95 to my HTC Desire. I’ve uploaded it to github in case anyone else needs to migrate text messages from a Nokia phone to an Android-based one.

To use it:

  • export your messages to CSV using Nokia PC Suite
  • convert the CSV to XML using
  • copy the XML file to sdcard/SMSBackupRestore/ on your Android’s SD card
  • install SMS Backup and Restore and use it to restore the XML file

If you want to copy both sent and received messages you’ll need to repeat the procedure for the Inbox and Sent folders on your Nokia.



  1. I’m having a error, can you help me?

    C:\Users\user\Downloads\frankoid-nokia-sms-to-android-fd7e849> messages.csv messages.xml
    Traceback (most recent call last):
    File “C:\Users\user\Downloads\frankoid-nokia-sms-to-android-fd7e849\”, line 95, in
    File “C:\Users\user\Downloads\frankoid-nokia-sms-to-android-fd7e849\”, line 88, in main
    File “C:\Users\user\Downloads\frankoid-nokia-sms-to-android-fd7e849\”, line 35, in populate_sbr_element
    sms_el.setAttribute(‘address’, self.other_party)
    AttributeError: SMS instance has no attribute ‘other_party’

    Comment by José — July 5, 2011 @ 7:26 pm

    • I’ve added some code to help debug this, please can you try again with the latest version and send me the output (I’m interested in what the script prints on the console, not the XML output file – I’ve changed it so that it prints a message when it doesn’t understand a row in the CSV file).
      Even if it works I’d be curious to see the output so that I can find out what’s in your CSV file that wasn’t in mine.

      Comment by frankoid — July 5, 2011 @ 8:06 pm

  2. I’ve got this error when trying to use the script

    dpacific@sweet-brew-1% ./ nokia_smses_in.csv sms_backup_restore_out.xml
    File “./”, line 83
    with open(nok_filename, ‘r’) as nok_file:
    SyntaxError: invalid syntax

    could you help me about that?

    Comment by Davide — May 22, 2012 @ 7:35 am

  3. i’hv never used python can you plz tell me how to convert csv to xml using

    plz explain the procedure….

    Comment by Mirza Touqeer Afzal — March 30, 2014 @ 10:01 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: