-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Reverse direction - encode backups #52
Comments
Hey, this sounds like a great idea, however I currently don't have enough time to implement it. This would also lead to us needing to update Signal Backups consists of Analysing the content of this database is left as an exercise to the reader (there are multiple tools to do that afaik). This way, signal-backup-decode does not need to be updated if signal adds a new table, changes the database layout etc. Only if they change the frame format, which they did for example to add stickers. Those changes do not happen often, so it's not too much effort to do this for me. However to generate a "valid" signal backup we need to update the internal database format more often to match that of the real app. While the "output" should be more stable, as the signal app migrates older versions on start. However the formats we get the data from (for example signal desktop backups) needs to be updated more often. I currently don't have the resources to do so, but would be happy to have someone else maintain it |
Wow, thank you very very much for your valuable insights! I can definitely provide some support, especially with smaller fixes, but cannot guarantee that I'll be able to keep it always up-to-date within the first days (unless there is a plan to introduce a ci pipeline somehow able to detect incompatibilities with the newest Signal version as soon as it is updated). If you tag me on issues (or i see them), I'll do my best to provide help. About the technical details, I'll look into them and see what i can do. As mentioned there also is a project doing exactly the export of Signal Desktop backup, and I'll see if it seems reasonable to make use of this to get a more stable input, or atleast look through the commits to understand how often there are breaking changes in the Desktop backups. |
Hey, so it org.thoughtcrime.securesms.database.MmsDatabase in Signal-Android contains the media data, but i'm having trouble connecting this to the format of signal-backup-decode/proto/Backups.proto Line 72 in 31100a3
|
The actual MmsDatabase-Class is less interesting for the backup itself. The whole export happens in the full backup exporter, which
All these backup functions use the I hope this answers your question, if not please feel free to ask again |
Hi!
What
I'd like to ask, if the reverse direction could also be implement without too much work.
Right now, i haven't yet deep dived into the code, but i assume there's no asymmetric part that would require any code from the original Signal devs, right? So given the needed data (clean text backup), you could encrypt it using this tool?
In case you need help testing or finding more information, maybe you could give me hints how to help?
Why
I'm trying to enable the use case described here: johanw666/Signal-Android#50 - given a backup of a Signal Desktop Instance (which can be decrypted by others tools like https://github.com/tbvdm/sigtop) i'd like to import this data back into Signal.
Issues
I assume that not all data is present in the Signal Desktop client that is available in a Signal Android client? But seeing that until recently-ish, Signal was able to import SMS (and ports with relatively lightweight changes can do so even now (and even WA backups): https://github.com/johanw666/Signal-Android) i think these fields can be left empty as optional.
The text was updated successfully, but these errors were encountered: