Commhistory-tool_groups.dump converter

Hi folks,

I am leaving the SFOS platform, switching to Android (OnePlus 11).

So far the migration went well (I managed to import my contacts and calendar events from a backup).
However it would be great if the SMS conversations could be preserved. Did anyone poked with the commhistory-tool_groups.dump? Is the format documented somewhere?

I’m sure ‘commhistory’ has been discussed, have you searched here and also on

It’s in sqlite format:

$> file ~/.local/share/commhistory/commhistory.db
/home/defaultuser/.local/share/commhistory/commhistory.db: SQLite 3.x database, user version 4, last written using SQLite version 3037002, writer version 2, read version 2, file counter 79, database pages 80, cookie 0xe, schema 4, UTF-16 little endian, version-valid-for 79

There’s a command line tool that shows you everything in clear text:
commhistory-tool listgroups
Why is that not good enough? You want to import it back to your Android phone?


Many thanks for the answer!

You want to import it back to your Android phone?

Yes, well technically not back, but forward :smiley:

If found the oppositeway script here:

So I went on and created a python script:

It has some personal tailoring to remove MFA codes etc., but at some day it could be helpful to someone who wants to migrate with some python knowledge.