Ask / Submit

How can I migrate Android app, data and settings to Sailfish X?

asked 2017-11-08 13:33:16 +0300

hammerhead gravatar image

Taking WhatsApp as an example, which files from an existing Android device would I have to copy where on the Sailfish X in order to retain all settings and contents?

edit retag flag offensive close delete


In case of Whatsapp, you have to backup your chat history to a file and transfer that to your Xperia X before starting Whatsapp for the first time. The process is described in the Whatsapp FAQs.

The fact that Whatsapp has inbuilt backup/restore functions indicates that every Android app is responsible for their own data and settings.

ziellos ( 2017-11-08 15:14:08 +0300 )edit

For whatsapp, before running it on the Xperia, do that on your current phone (install Android Support on Xperia first):

scp -r ~/android_storage/WhatsApp nemo@<xperia_ip_address>:~/android_storage/

For the rest, you shouldn't use too much Android apps so just move on to Sailfish apps ;)

Sthocs ( 2017-11-09 11:11:23 +0300 )edit

Whatsapp backup on Google drive is not reliable, copy and paste your local backup works better. Nemo/android_storage/WhatsApp/Databases/msgstore.db.cypt12 However, image files are not stored in that backup file.

danfin ( 2017-11-09 11:15:37 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-11-09 11:01:24 +0300

DarkStarSword gravatar image

I copied settings for a few apps by copying the /opt/alien/data/data/ directory and fixing the permissions like so (using iMoodJournal as an example here):

  1. On source phone in the terminal:
    $ devel-su
    # cd /opt/alien/data/data
    # tar cvf ~nemo/moodjournal.tar com.inexika.imood
  2. Transfer tarball to destination phone via your preferred method (e.g.settings->storage->user data->pully menu->file manager->long tap on tarball->share->bluetooth)
  3. Run the app on the destination phone once, then close it (necessary to create the data directory for that app)
  4. On destination phone in the terminal:
    $ devel-su
    # cd /opt/alien/data/data
    # ls -l
  5. Note down the user ID of the app's data directory. In the below example I'm using 10042, but this will vary, so adjust accordingly:
  6. Unpack the data directory and fix the ownership:
    # tar xvf ~nemo/moodjournal.tar
    # chown -R 10042.10042 com.inexika.imood

Depending on the app there might be some more data you need to copy (e.g. ~/android_storage), but I've tried to avoid becoming an expert at Android, so I'm only figuring this out as I go ;-)

edit flag offensive delete publish link more


/opt/alien/data/data/ does not exist, I guess you mean /data/data/

Sebix ( 2019-03-04 15:02:38 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2017-11-08 13:33:16 +0300

Seen: 951 times

Last updated: Nov 09 '17