Greyson Parrelli
71a34dac5f
Fix backup/import issue with expiring messages.
...
There was an issue where we were backing up group receipts and attachments
that were for expiring messages (which are already excluded from the backup).
This commit excludes these items from the backup, and for backups made
before this change, this commit also deletes these invalid entries at
the end of the restore process.
We also do a little database migration to cleanup any bad state that may
have been imported in the past.
2018-06-21 19:07:27 -07:00
Greyson Parrelli
2b45b3caa2
Fixed export and restore of FTS tables.
...
First, FTS index contents do not need to be exported. They will be recreated naturally.
Second, we can't export the secret FTS tables, or SQLite will think it's corrupted.
2018-06-06 20:12:17 -07:00
Greyson Parrelli
b7282589de
Fixed issue with backup and restore when creating new tables.
...
Fixes #7863
2018-06-06 09:07:38 -07:00
Moxie Marlinspike
2ac0179d65
Handle odd sized buffers on backup import decrypt
...
Fixes #7701
2018-04-18 21:20:06 -07:00
Moxie Marlinspike
3f3d7f549b
Make an attempt to store/retrieve backups from removable storage
...
Fixes #7521
2018-04-16 17:33:26 -07:00
Moxie Marlinspike
b9f99f9941
Manually calculate length of attachments if they're super old
...
Fixes #7560
2018-04-02 10:03:26 -07:00
Moxie Marlinspike
d6610f0dd0
Add profile avatars to backup
...
Fixes #7450
2018-03-19 14:10:21 -07:00
Moxie Marlinspike
b168e14985
Move salt outside the loop
2018-03-15 10:18:14 -07:00
Moxie Marlinspike
73233c01ba
Fix backup NPE
...
Fixes #7526
2018-03-14 23:40:01 -07:00
Moxie Marlinspike
90006e81db
Add salt to backup header
2018-03-14 10:28:41 -07:00
Moxie Marlinspike
64afce5f66
Switch to parameterized statements for backup
...
Fixes #7507
2018-03-13 09:27:58 -07:00
junitas
7f7aab044c
Escape single quotes in SQLite entries for message backups
...
Fixes #7491
Closes #7497
2018-03-11 17:00:53 -07:00
Moxie Marlinspike
11ce4ee807
Actually increment event count
2018-03-09 14:29:15 -08:00
Moxie Marlinspike
34ed55d3ac
Post backup progress event for every item
...
Fixes #7483
2018-03-09 11:03:18 -08:00
Moxie Marlinspike
a2d04f4806
Prevent us from sql injecting ourselves on backup/restore
...
Fixes #7478
2018-03-08 16:39:57 -08:00
Moxie Marlinspike
3970a30e14
Add chunk IV to chunk MAC
2018-03-05 16:11:49 -08:00
Moxie Marlinspike
24e573e537
Support for full backup/restore to sdcard
2018-03-05 16:11:49 -08:00