We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

[Xperia + Jolla 1] Migrating problems to the xperia (Update every step)

asked 2017-10-29 12:51:30 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-11-01 22:41:47 +0200

DDH87 gravatar image

TL;DR: I'm having a hard time migrating to the xperia. Restore backup doesn't work. Any tips?

Hi All,

I have installed Sailfish X on my Xperia. Now I want to transfer/migrate everything (well 99%) of what is on my Jolla 1 tot the Xperia.

I have tried loading the backup on my Xperia but it keeps hanging on importing the messages. So no contacts or call history gets imported.

But if this worked I still have to export the Ambiance, I have all of other half. And how do I export my whatsapp conversations to the new device.

I can't find any guide to help with this. And Jolla doesn't offer any graphical export only import.

I'm probably not the only one with this problem. I think a lot of people with a Jolla 1 are planning to switch.

Best regards, ddh

p.s. I'm happy to use cmd and ssh to sync.

Updates:

  1. The "old" ambienses are made to have a architecture. So no joy coping them. Made a bug-report/feature-request for this. @Edz had a good comment will try this.
  2. Did a full copy of /home/nemo Between the devices. I copied the content to my PC using scp and uploaded to the Xperia using scp.

ToDo

  • Restore backup without issues.
  • Copy ambiences
  • [DONE] Move all user files, Android storrage, downloaded files, documents, ...

Ad 1.

I was able get a logfile from the backup restore process.
cat sailfish_backup_2017-10-29T10-33-49Z_restore_log.txt 
Status = Preparing                                                                                                                                                                                                                                                             
[UI] Preparing to restore files from /media/sdcard/7CAA-1741/sailfish_backup_2017-10-29T10-33-49Z.tar                                                                                                                                                                          
Preparing to restore units: Accounts, Browser, Calendar, Gallery, Media, Messages, Notes, People, Phone from /media/sdcard/7CAA-1741/sailfish_backup_2017-10-29T10-33-49Z.tar                                                                                                  
Status = LoadingArchive                                                                                                                                                                                                                                                        
[UI] Extracting data from backup file                                                                                                                                                                                                                                          
Start: tar --exclude */*/*/* -tf /media/sdcard/7CAA-1741/sailfish_backup_2017-10-29T10-33-49Z.tar                                                                                                                                                                              
Done: tar [OK]                                                                                                                                                                                                                                                                 
Standard out was:                                                                                                                                                                                                                                                              
./                                                                                                                                                                                                                                                                             
./Accounts/                                                                                                                                                                                                                                                                    
./Accounts/blobs/                                                                                                                                                                                                                                                              
./Accounts/data/                                                                                                                                                                                                                                                               
./Browser/                                                                                                                                                                                                                                                                     
./Browser/blobs/                                                                                                                                                                                                                                                               
./Browser/data/                                                                                                                                                                                                                                                                
./Calendar/                                                                                                                                                                                                                                                                    
./Calendar/blobs/                                                                                                                                                                                                                                                              
./Calendar/data/                                                                                                                                                                                                                                                               
./Gallery/                                                                                                                                                                                                                                                                     
./Gallery/blobs/                                                                                                                                                                                                                                                               
./Gallery/data/                                                                                                                                                                                                                                                                
./Media/                                                                                                                                                                                                                                                                       
./Media/blobs/                                                                                                                                                                                                                                                                 
./Media/data/                                                                                                                                                                                                                                                                  
./Messages/                                                                                                                                                                                                                                                                    
./Messages/blobs/                                                                                                                                                                                                                                                              
./Messages/data/                                                                                                                                                                                                                                                               
./Notes/                                                                                                                                                                                                                                                                       
./Notes/blobs/                                                                                                                                                                                                                                                                 
./Notes/data/                                                                                                                                                                                                                                                                  
./People/                                                                                                                                                                                                                                                                      
./People/blobs/                                                                                                                                                                                                                                                                
./People/data/                                                                                                                                                                                                                                                                 
./Phone/                                                                                                                                                                                                                                                                       
./Phone/blobs/                                                                                                                                                                                                                                                                 

Mount archive /media/sdcard/7CAA-1741/sailfish_backup_2017-10-29T10-33-49Z.tar to /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z                                                                                             
Start: archivemount -o allow_other -o nosave /media/sdcard/7CAA-1741/sailfish_backup_2017-10-29T10-33-49Z.tar /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z                                                                 
Done: archivemount [FAILED] Exit code: 1                                                                                                                                                                                                                                       
Standard error was:                                                                                                                                                                                                                                                            
fuse: mountpoint is not empty                                                                                                                                                                                                                                                  
fuse: if you are sure this is safe, use the 'nonempty' mount option                                                                                                                                                                                                            

[ERROR] 3 Process exited with non-zero exit code or status, quitting.                                                                                                                                                                                                          
Status = Finalizing                                                                                                                                                                                                                                                            
[UI] Finalising operation                                                                                                                                                                                                                                                      
Unmount /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z
Start: fusermount -u /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z
Done: fusermount [FAILED] Exit code: 1
Standard error was:
fusermount: failed to unmount /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z: Device or resource busy

Ignoring fusermount process failure on cleanup
Status = Finished
Removing working files in /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z
wser/data --home-dir /home/nemo
Done: vault-browser [OK]
Status = UnitScriptFinished
Running unit script Calendar (3 of 9)
Status = UnitScriptStarted
[UI] Reading data
Start: /usr/libexec/jolla-vault/units/vault-calendar --action import --name Calendar --bin-dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Calendar/blobs --dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Calendar/data --home-dir /home/nemo
Done: vault-calendar [OK]
Status = UnitScriptFinished
Running unit script Gallery (4 of 9)
Status = UnitScriptStarted
[UI] Reading data
Start: /usr/libexec/jolla-vault/units/vault-gallery --action import --name Gallery --bin-dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Gallery/blobs --dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Gallery/data --home-dir /home/nemo
Done: vault-gallery [OK]
Status = UnitScriptFinished
Running unit script Media (5 of 9)
Status = UnitScriptStarted
[UI] Reading data
Start: /usr/libexec/jolla-mediaplayer/vault-mediaplayer --action import --name Media --bin-dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Media/blobs --dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Media/data --home-dir /home/nemo
Done: vault-mediaplayer [OK]
Status = UnitScriptFinished
Running unit script Messages (6 of 9)
Status = UnitScriptStarted
[UI] Reading data
Start: /usr/libexec/jolla-vault/units/vault-messages --action import --name Messages --bin-dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Messages/blobs --dir /home/nemo/.local/share/system/privileged/Backups-tmp/mount/sailfish_backup_2017-10-29T10-33-49Z/Messages/data --home-dir /home/nemo

On to the next step.

edit retag flag offensive close delete

Comments

1

I had no problem restoring a backup from my Jolla 1 to the Xperia. Which version of SFOS do you use on the Jolla 1?

ossi1967 ( 2017-10-29 14:10:05 +0200 )edit

I thought Whatsapp conversations were held on Whatsapp servers not on your phone - do I have that wrong?

As for ambience and as the owner of a J1, you should be able to download and install ambience via terminal on your SonyX, using such commands; pkcon install ambience-the-first-one - this works if you are actually the owner of The First One TOH and so on, this means you can still use the ambience even if you lost/sold/broken your original TOH.....having said that, some of the earlier ambience will look a bit odd on XperiaX I think, as the wallpaper dimension are 540w X 1600h px.

If some inexplicable reason you cannot download your ambience on your SonyX, then you could rebuild the RPM package on your J1 using 'rpmrebuild' from openrepos, this does what it says on the tin, rebuilds the package into an RPM, send RPM to SonyX device, install, smile move on with your life :)

p.s. I don't own a SonyX.........yet, so your mileage may vary according to what I've said above.

Spam Hunter ( 2017-10-29 14:20:51 +0200 )edit
1

@ossi1967 My 1 is 2.1.2.3 and the xperia is 2.1.3.5? But I get stuck and can't force the phone to go to the next step... Do you know of a cmd I can use?

@Edz Thanks I'll try that. There are a lot to try. No the "old" ambiences aren't listed. If I search I only find the new ones. I'm working on seeing where the differences are in the repo's.

DDH87 ( 2017-10-29 14:26:08 +0200 )edit
1

Whatsapp messages/files/backups are in the 'Whatsapp' folder in the Android folder on your SDcard. Just copy the whole folder to your new device, and then install whatsapp AFTER that. On first start it will ask you if you want to restore the backup . It is also possible that you enabled cloud backup in Whatsapp, then it's easier to restore but you should not do so if you value your privacy(although using Whatsapp in the first place isn't helping).

yomark ( 2017-10-29 14:46:30 +0200 )edit
2

@DDH87 So you have the same version on the Jolla 1 as I have. Strange. I thought the OS version on the Jolla 1 might be a problem because often backup/restore isn't possible between versions. But it worked for me in the exact same configuration you have. So my idea was obviously wrong. :(

ossi1967 ( 2017-10-30 12:56:09 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2017-11-02 11:16:44 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-11-02 11:16:44 +0200

OlivierJolla gravatar image

Just a quick tutorial to migrate android app data, feel free to ask for more details or to update it (it is a wiki).

On the Jolla 1, Android data is located in /data/data/ but it changes on the Jolla C (and Aquafish) and on the Xperia, it is now located in /home/.android/data/data. The difficulty is that you cannot simply copy the file since each android app is tied to one particular Unix user: you thus need to change the owner of the files to stick with the user on the new device.

For each application you want to migrate to your new device, do the following:

  • Install the app on the new device
  • In a terminal, becomes root with devel-su
  • Get the UID of the app on the new device with stat /home/.android/data/data/com.example.yourapp/ (probably something like 100XX)
  • Copy the files from the old device to the new one
  • Check the newly created directories
  • Recursively change the owner of the newly created directory (so do not change anything for the lib symlink) with chown UID:UID -R new_directory (where UID is the value previously obtained with stat)

It will probably not work with Whatsapp since it seems to be really tied to a particular phone (probably with MAC address or IMEI, or anything), so it may be better to follow the Whatsapp documented procedure to migrate.

edit flag offensive delete publish link more

Comments

I've made a small script for this, you don't have to run the android app before executing it:

copy to a file, change ANDROID-BACKUP according to your device, enter /home/.android/data/data and execute the script with the com.app.xxx as the first parameter:

#!/bin/sh
cp -r ANDROID-BACKUP/data/data/$1 . ;
chown -Rh `stat -c %u $1`:`stat -c %u $1` $1;
chown -h install:install $1/lib;
till ( 2018-09-28 19:09:14 +0200 )edit
0

answered 2017-11-05 16:42:33 +0200

TomC gravatar image

Related issue: https://together.jolla.com/question/172690/call-history-restored-in-contacts-but-not-in-phone-app-xperia/

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2017-10-29 12:51:30 +0200

Seen: 892 times

Last updated: Nov 05 '17