johanw666 / Signal-Android

Fork from a private messenger for Android with extra options added: full backup and (partial, ony text) xml backup of messages. Restore can happen at any time, not only after a fresh install. Import SMS database. Import of (unencrypted) WhatsApp databases. Removed apk expire. Choose between passphrase protection and the Android screenlock. Choice for the backup location (internal or removable storage on Android < 11 (on 11 and higher this is already possible)). Set the maptype in the place picker. Option to treat view-once media as normal media. Option to ignore remote deletion. Choose between FCM or websocket notification delivery.
https://johanw.home.xs4all.nl/Signal/signal-jw.html
GNU Affero General Public License v3.0
245 stars 16 forks source link

Best practice backup vanilla signal and restore it #5

Open marcoMik opened 4 years ago

marcoMik commented 4 years ago

I'm looking for best practice to backup vanilla signal (all messages including picture and file attachment) and restore to a new device running in multidevice mode as second device.

Vanilla signal version: 4.50.6 Second device signal version: 4.43.8.0-JW with multidevice patch from https://github.com/esscue23/Signal-Android

Is there a solution for this ?

johanw666 commented 4 years ago

That will be complicated, there have been changes in the database. Plain Signal will refuse to restore the backup because it's from a newer version. If you make a custom build with this restriction removed it might work, it might not, I don't have exactly in mind what the exact changes are.

Is there a specific reason why you want to port those changes to 4.43.8.0-JW? Would it be a lot of work to port them to the latest 4.50 or 4.51 version?

marcoMik commented 4 years ago

I realize that is not so easy. I patched the restriction but after import of backup app crashed.

The multidevice patch is 4.43.8.0 porting it to a newer version is atm no option for me (new to java and signal source). I have look into it but there is a lot of refactoring and changes. Maybe on holiday i will look deeper and try it.