Ask / Submit

Threema: Restore on Jolla C fails

asked 2016-07-23 14:36:07 +0300

lenggi gravatar image

updated 2016-07-23 15:28:40 +0300

When I try to restore a data backup of threema on the Jolla C, the app crashes with a segfault (as it seems):

I/DEBUG   (21736): Build fingerprint: 'Jolla/alien_jolla_l500d/alien_jolla_l500d:4.4.4/KTU84Q/eng.erin.20160505.154502:user/dev-keys'
I/DEBUG   (21736): Revision: 'unknown'
I/DEBUG   (21736): pid: 21870, tid: 21883, name: system_server  >>> system_server <<<
I/DEBUG   (21736): AM write failure (32 / Broken pipe)
I/DEBUG   (21736): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

The backtrace is as follows

I/DEBUG   (21736): backtrace:
I/DEBUG   (21736):     #00  pc 00003308  /system/lib/ (wl_proxy_marshal+7)

I/DEBUG   (21736):     #01  pc 0000ca33  /system/lib/ (WLAlienRuntime::data_device_selection(void*, wl_data_device*, wl_data_offer*)+70)
I/DEBUG   (21736):     #02  pc 00000a74  /system/lib/ (ffi_call_SYSV+56)
I/DEBUG   (21736):     #03  pc 00000c89  /system/lib/ (ffi_call+112)
I/DEBUG   (21736):     #04  pc 000045f1  /system/lib/ (wl_closure_invoke+284)
I/DEBUG   (21736):     #05  pc 00002d61  /system/lib/
I/DEBUG   (21736):     #06  pc 00002daf  /system/lib/
I/DEBUG   (21736):     #07  pc 00003751  /system/lib/ (wl_display_dispatch_queue+138)
I/DEBUG   (21736):     #08  pc 0000cef3  /system/lib/ (WLAlienRuntime::runDisplay()+6)
I/DEBUG   (21736):     #09  pc 0000d355  /system/lib/ (WLAlienRuntime::nativeWindowEventLoop()+164)
I/DEBUG   (21736):     #10  pc 0000fea9  /system/lib/
I/DEBUG   (21736):     #11  pc 0000d180  /system/lib/ (__thread_entry+72)
I/DEBUG   (21736):     #12  pc 0000d318  /system/lib/ (pthread_create+240)

Note: a restore of the ID works, but I would rather not miss all the media and chat protocols

Has anyone succeeded to restore? Any help is appreciated to solve the problem.

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2016-07-23 15:27:26 +0300

lenggi gravatar image

updated 2016-07-23 16:30:56 +0300

Okay, to answer my question, I succeeded as follows

  1. Install threema on Jolla C, start it, enter your license code, and close it again
  2. Copy folder /home/nemo/android_storage/Android/data/ to Jolla C (same location)
  3. Stop Android Support on Jolla 1 and Jolla C
  4. Login as root on Jolla 1
  5. Go to folder /opt/alien/data/data/
  6. Create a tar archive as follows

    tar czvf threema-manual-bck.tar.gz cache/ databases/ files/ no_backup/ shared_prefs/

    It's important that android support is stopped!

  7. Determine the uid/gid of threema in your system by having a look at the files in /opt/alien/data/data/, I'll refer to it as $THREEMAID below

  8. Copy the above tar archive to Jolla C and extract it when in folder /opt/alien/data/data/
  9. Fix ownerships by executing the following in /opt/alien/data/data/

    chown -R $THREEMAID:$THREEMAID cache/ databases/ files/ no_backup/ shared_prefs/

  10. Start Threema on Jolla C

Some notes on this

  • Threema can only run on one device, so once it is active on Jolla C, the app on Jolla 1 will become inactive

  • My contact avatars were totally mixed up and I had to manually relink them to fix this

  • If you require a more detailed walkthrough, let me know in the comments
  • I could successfully restore a backup made on the Jolla C
edit flag offensive delete publish link more

answered 2016-08-07 22:59:45 +0300

FloR707 gravatar image


I had no issue transferring my Threema account to the Jolla C. I followed the instruction on the Threema webpage.

  1. Make a full backup as stated in the FAQ. Then copy the backup from /home/nemo/android_storage/Threema/Backups to your new phone, I used my SD card.
  2. Turned off Threema background activity (Setting/Apps/Threema) and power off your Jolla to get the SD card.
  3. On the Jolla C go to the Threema homepage to download the app again. To be able to download the app you need you activation key you received during purchasing the app.
  4. After downloading and installing the app copy the backup from the SD card to the backup folder.
  5. Start Threema and choose restore from backup. In the next dialog window the backup you just copied should show up. Select it and your account should be fully restored.
  6. After restoring Threema will point out that push cannot be enabled because some Google service could not be found. As work arround Threema will offer you to activate polling.
  7. Go the Setting->Apps->Threema to enable the background activity.
  8. To get notifications you have to follow this thread.
edit flag offensive delete publish link more


Migrating Threema from Jolla1 (JP1301) to Xperia X Sailfish OS X (Both worked for me just as described above, except the paths where different for me: /opt/alien/home/nemo/android_storage/Threema/Backups

fl ( 2018-01-03 07:13:46 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2016-07-23 14:36:07 +0300

Seen: 300 times

Last updated: Aug 07 '16