How to get your SMS messages from your previous Firefox OS phone to your foxfooding phone

Hello everyone,

We can’t restore our profiles from our previous firefox OS phones to the new foxfooding phone (otherwise we would lose the foxfooding features and we certainly don’t want that).
For me the most important thing that I wanted to keep from my flame were my SMS history. So with the help of the telegram Firefox OS hacking channel, here is the how to:

  1. Plug your old phone (flame, for example) (only one phone at a time)
  2. In a terminal, type
  • adb root
  • adb pull /data/local/storage/permanent/chrome/idb/226660312ssm.files ( :point_right: it’s the directory which contains the files attached to your messages: for example photos sent by MMS)
  • adb pull /data/local/storage/permanent/chrome/idb/226660312ssm.sqlite ( :point_right: it’s the database which contains your messages)
  1. Unplug your old phone
  2. Plug your new foxfooding phone
  3. In a terminal, type
  • adb root
  • adb push 226660312ssm.files /data/local/storage/permanent/chrome/idb/226660312ssm.files
  • adb push 226660312ssm.sqlite /data/local/storage/permanent/chrome/idb/

Your SMS are now on your new phone :grinning:

On linux, you need to edit /etc/udev/rules.d/android.rules and add the line:

SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="plugdev"

(0fce being for the xperia Z3C)

4 Likes

I think there was a backup/restore script for all data somewhere.

Ping @CodingFree

Yes of course, it allows you to backup and restore your profile. But you can’t use it on the foxfooding phone or you may lose the foxfooding features and get out of the program. Which you can’t.

AFAIK if you just restore installed apps and data that shouldn’t modify anything from the system build.

There was one in the TPE tool, but I am not sure if it works. https://bugzilla.mozilla.org/show_bug.cgi?id=1026531 is the bug tracking backup and restore.

Also QA compiled a good list of Tips and Tricks for Reference: https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks

1 Like

On Tue, Nov 10, 2015 at 11:51 PM, Marcia discourse@mozilla-community.org wrote:

There was one in the TPE tool
https://github.com/Mozilla-TWQA/B2G-flash-tool, but I am not sure if it
works.

It still works, I use it all the time. It just backs up and restores your
profile, so it should work both without and without the Spark distro. Note
that the tools is becoming un-maintained since we are moving to a tool that
is taskcluster based (vs. this tool which is pvt based). But I imagine the
profile manipulation stuff should work for a while.

Also note, that I keep my profile in git, so I have a history of my
profile. I use a command like this to backup:
./backup_restore_profile.py -b -p …/profile/dogfood

and this to retrore
./backup_restore_profile.py -r -p …/profile/dogfood