Uhm, well, it’s been a while, but here’s something useful for a change. I’ve been working quite a lot with MobilEDIT to transfer data between various devices. It’s been working quite fine but ever since they took away ability to write back SMS between phones i couldn’t find anything else to replace that feature. Transfering messages between Android based devices could be done perfectly via SMS Backup & Restore so that’s something to start with. I wrote a small Tcl script that does all the job and convert .xml file between formats. Output file can be then simply copied to the device and imported easly. Script, as anything wrote in Tcl is cross-platform compatible so it can be used on Windows, OS X and Linux/BSD systems. It does require tdom component which is installed by default in ActiveTcl for Windows/OS X and can be easly installed via repositories in most Linux distributions or compiled manually if needed.

 

Usage is quite simple. It’s a console tool so open your terminal or cmd window and type:

tclsh MEDxml2SMSBackupRestore.tcl sample_messages.xml

It’ll output something like that:

MEDxml2SMSBackupRestore >> tclsh MEDxml2SMSBackupRestore.tcl sample_messages.xml
MEDxml2SMSBackupRestore by Arcain v1.0.5
> Found correct header, will convert sample_messages.xml with 4 messages
> Processed 4 messages, saved as: sample_messages.xml.smsbackup.xml

 

Once you get it, you’re done. Copy the *.smsbackup.xml file to device, find it in SMS Backup & Restore app and you’ll get back your messages after a while.

 

DOWNLOAD: HERE

 

// Update @ 24.01.2016

Updated the script to convert file with proper sorting. Previous version first took care of sent messages, then received. This makes imported messages to look a bit weird on the phone. Now, it’s parsed just like it was saved, either acending or descending by date from MOBILedit. I’ve also fixed the missing “draft” check which made those messages previously marked as sent anyway and added sms.xsl stylesheet that allows you to preview the converted file in any web browser.

April 8, 2015 General