linphone-android icon indicating copy to clipboard operation
linphone-android copied to clipboard

Export/import call history and messages

Open brianjmurrell opened this issue 2 years ago • 9 comments

Hi.

It would be nice, particularly for the new device experience if messages and call history could be transferred (export/import or otherwise) to the new device.

Really, this should be part of the Android backup data, IMO, however if you want to make it some external user-actionable item, that would at least be a good second choice.

Absent any actual current method of doing this, is there a workaround, using adb (or otherwise) to transfer the call/message database from one device to another?

brianjmurrell avatar Aug 01 '22 16:08 brianjmurrell

Hi. Is there any work-around/manual procedure to do this?

brianjmurrell avatar Sep 09 '22 13:09 brianjmurrell

If you have access to the app data folder you can try to copy/paste the following files:

  • call-history.db
  • linphone.db
  • linphonerc
  • .linphonerc
  • x3dh.c25519.sqlite3
  • zrtp-secrets.db

Viish avatar Sep 09 '22 14:09 Viish

Thanks much for that info! I am sure it will be helpful to me and/or others wanting this same functionality while we wait for the export/import functionality and/or automated Android backup (which doesn't have to be Google -- one can back up to one's own private cloud or local [USB even] storage -- for those that are paranoid about Google) to be able to back up and restore these data.

brianjmurrell avatar Sep 09 '22 14:09 brianjmurrell

This is on our roadmap, it's just it's not that easy to implement as there are many factors involved (such as VFS).

Viish avatar Sep 09 '22 14:09 Viish

call-history.db linphone.db linphonerc .linphonerc x3dh.c25519.sqlite3 zrtp-secrets.db >

hi @Viish, Where do we copy in linphone manager or linphonerc folder? Can you give specific instructions?

hieujames avatar Sep 14 '22 03:09 hieujames

@hieujames Here's the code that installs the files the first time, you can easily extend it to do the backup / restore: https://gitlab.linphone.org/BC/public/linphone-android/-/blob/master/app/src/main/java/org/linphone/core/CorePreferences.kt#L622

Viish avatar Sep 14 '22 11:09 Viish

This is on our roadmap, it's just it's not that easy to implement as there are many factors involved (such as VFS).

Still on the roadmap? Has anything happened to bring this closer to fruition?

brianjmurrell avatar Mar 05 '23 17:03 brianjmurrell