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
250 stars 16 forks source link

Add an attribute to plain text backup indicating signal vs sms message #13

Closed Kingwad closed 3 years ago

Kingwad commented 3 years ago

SMSBackupAndRestore will ignore unknown attributes in sms elements when restoring backups (I tested to confirm). Would it be possible to add an attribute to the backup indicating whether a message was an unsecured sms or a signal message? The app database knows this (shows unlocked icon on sms messages).

The use case here is to migrate away from using Signal as the system sms app, and to copy the sms conversation history out of Signal and into the system database.

One could export messages from signal, edit the xml to remove signal messages, and then import only sms messages into Android's stock sms database.

johanw666 commented 3 years ago

I am working on the plaintext export now to add other things (and fix a crash when the sender is null), I could add this too.

johanw666 commented 3 years ago

I just published 4.75.1.1-JW with an extra column "transport" in the plaintext backup export. It can get the values "-" (failed to send), "Pending", "Data", "SMS" and "MMS".