Commit graph

1142 commits

Author SHA1 Message Date
Michael Bestas
acc332b0fd Move LocalContactsBackup to product partition
Change-Id: I0f463d4310647765266b948276d62171a7f46243
2021-08-27 17:17:59 +05:30
Michael Bestas
532ed5e3f1
Add newline at the end of all files
Change-Id: I85718a4d8254d27e36f1712e4430e82863ba721e
2021-08-25 18:25:00 +03:00
Michael Bestas
d0cf968d06
Improve .editorconfig setup
Add rules for all the project files.
Inspired by android studio editorconfig, results in
all files containing newlines at the end of file for
consistent code style throughout the app.

Change-Id: Ifc98fcf75f8e78526a0e186b2b14d44f0f7e45ac
2021-08-25 18:24:53 +03:00
Torsten Grote
b29a50fdb6
Merge pull request #291 from luca020400/patch-1
Don't backup on metered networks
2021-08-25 10:21:54 -03:00
Luca Stefani
bc24c7804d Don't backup on metered networks
* We better not overuse metered networks as such connections
* are usually sensitive to heavy data usage due to monetary costs and/or data limitations.
2021-08-25 14:59:49 +02:00
Chirayu Desai
96ffcc258d Bump version to 11-2.1
* Only change here is the BIP39 dependency replacement, however
  I'm still bumping version so that it's easy to figure out in case
  there ever was a build with just 2.0 and not this due to whatever reason

Change-Id: I9783d5e038d002e871c09be6fe61174c5a5b901f
2021-07-06 00:02:14 +05:30
Torsten Grote
05640ebb63 Replace novacrypt BIP39 library with the zcash one
which is MIT licensed instead of GPLv3

Change-Id: I30041de5ab1c1f8c7d5f57d6c60e28300a285259
2021-07-05 23:50:18 +05:30
Chirayu Desai
fd4c92bd84 SeedVault 2.0: Now with storage backup!
Change-Id: Ifd639c3c9205b417d1ec37c8e7a11a2119b5cb48
2021-07-05 22:35:08 +05:30
Torsten Grote
23e8f6503c Upgrade storage lib after recent set of changes 2021-07-05 20:08:29 +05:30
Torsten Grote
d13b9ea3fd Always run storage backups in a foreground service
otherwise we get killed for using too much CPU
2021-07-05 20:08:29 +05:30
Torsten Grote
056bdc3bf3 Fix crash that happens when starting RestoreActivity without key
This instantiates all sorts of classes down to Restore which accessed the streamKey that is still unavailable at this point. Now it is only instantiated lazily when actually starting a restore.
2021-07-05 20:08:29 +05:30
Torsten Grote
781bcd28d3 Remove storage snapshots from list if we can't decrypt them 2021-07-05 20:08:29 +05:30
Torsten Grote
26e35e1820 Make 'skip' buttons bigger so they are easier to tap 2021-07-05 20:08:29 +05:30
Torsten Grote
a4cbb0b6df Only request app backup when it is actually enabled 2021-07-05 20:08:29 +05:30
Torsten Grote
1ff8e54748 Re-initialize backup location when changing recovery code
* delete all storage backups for current user
* clears the storage backup cache
* start a new app data restore set and initializes it

The reason is that old backups won't be readable anymore with the new key. We also can't delete other backups safely as we did before, because we can't be sure that they don't belong to a different device or user.
2021-07-05 20:08:29 +05:30
Torsten Grote
347d2a316f Allow using the same storage location on different devices or user profiles
Previously, we would put our files directly in the root of the storage location and delete any existing backups there. When used by different devices or user profiles, these would keep deleting each other's backups.
2021-07-05 20:08:29 +05:30
Torsten Grote
a762d1b64e Upgrade gradle and test libraries 2021-07-05 20:08:29 +05:30
Torsten Grote
342bd2068a Clear existing storage snapshots from storage medium
because that scenario isn't supported at the moment
2021-07-05 20:08:29 +05:30
Torsten Grote
f373f4bb97 release 0.9.7 of storage demo app 2021-07-05 20:08:29 +05:30
Torsten Grote
801dcc42ed add READMEs and tie them together in main README 2021-07-05 20:08:29 +05:30
Torsten Grote
e77d5cad2c Update storage design document and add some TODOs to the code 2021-07-05 20:08:29 +05:30
Torsten Grote
858954e82d Add user dictionary to repo for spellchecker 2021-07-05 20:08:29 +05:30
Torsten Grote
0aee5cc2aa Provide correct version to associated data 2021-07-05 20:08:29 +05:30
Torsten Grote
e7a8ad50e8 Add version number to chunks cache
so we can later do in-place version upgrades and find out which chunks we need to store new versions for
2021-07-05 20:08:29 +05:30
Torsten Grote
61fe823a04 Check that version in snapshot matches the one in chunks 2021-07-05 20:08:29 +05:30
Torsten Grote
be9a84d704 Add storage design document 2021-07-05 20:08:29 +05:30
Torsten Grote
e21207de32 Only require network for storage backups when storage needs network 2021-07-05 20:08:29 +05:30
Torsten Grote
b8ac11e724 apply ktlint to storage.lib as well 2021-07-05 20:08:29 +05:30
Torsten Grote
d6bd36ad8b Backup now: run storage backup before app backup 2021-07-05 20:08:29 +05:30
Torsten Grote
9ca6cf2aae Allow to skip app restore to reach file restore 2021-07-05 20:08:29 +05:30
Torsten Grote
bdefb04a0d Add UI for restoring files after app restore 2021-07-05 20:08:29 +05:30
Torsten Grote
fa123f07a0 Improve finding restore sets
now that we store more things in the same folder
2021-07-05 20:08:29 +05:30
Torsten Grote
5b2b75047e handle storage backup when USB is used as target 2021-07-05 20:08:29 +05:30
Torsten Grote
6c633b70c3 Add storage library (and demo app)
and use for periodic files backup
2021-07-05 20:08:29 +05:30
Torsten Grote
1cd3a3a0e6 Fix log message when canceling full backup 2021-07-05 20:08:29 +05:30
Chirayu Desai
8e18b68608
Merge pull request #278 from seedvault-app/android11-merge-master/11-1.2
11-1.2:
2021-07-05 20:01:17 +05:30
Chirayu Desai
cda1e0c98e
Merge branch 'android11' into android11-merge-master/11-1.2 2021-07-05 19:46:24 +05:30
Chirayu Desai
5bfc5da3f7 Bump version to 11-1.2
Change-Id: I3817cf2320379504a8205125e7fa4894e3e57deb
2021-07-05 19:38:58 +05:30
Dhina17
7f9c2b4eb1 colors: Sync with Settings theme
Change-Id: I69366b7744a76658607bd48a81e06975c4c6060c
2021-07-05 19:20:08 +05:30
Torsten Grote
11564c8c35 Make recovery code fit on smaller screens 2021-07-05 18:56:01 +05:30
Chirayu Desai
d7e2cd67e9 l10n: zh-rCN: Fix xliff:g
Change-Id: I2506aa8f92ec57bd2bb1a1426c45742a283b1400
2021-07-05 18:21:48 +05:30
Chirayu Desai
c102fb5166 l10n: my: Remove English strings
* Only added since I couldn't figure out how to delete this translation from weblate

Change-Id: I8127dbee63a9dcf15ef8d404ce4313a52d7ca4b4
2021-07-05 18:21:48 +05:30
Chirayu Desai
12fe1ef6ef l10n: fi,it: Fix < and >
Change-Id: I28b19ca0de11eb07d233416271fd5f5a0fd76ac3
2021-07-05 18:21:48 +05:30
Chirayu Desai
bf70bec4f0 Translated using Weblate (Burmese)
Currently translated at 51.1% (69 of 135 strings)

Translated using Weblate (Burmese)

Currently translated at 50.3% (68 of 135 strings)

Translated using Weblate (Burmese)

Currently translated at 48.8% (66 of 135 strings)

Co-authored-by: Chirayu Desai <chirayudesai1@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/my/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
Daisuke Masamura
3c2eeb089f Translated using Weblate (Japanese)
Currently translated at 17.7% (24 of 135 strings)

Co-authored-by: Daisuke Masamura <weblate.p1q2j@8shield.net>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ja/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
matuo
cb967f874f Translated using Weblate (Japanese)
Currently translated at 17.7% (24 of 135 strings)

Co-authored-by: matuo <longman.longest@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ja/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
Daimar Stein
964f13c63e Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (135 of 135 strings)

Co-authored-by: Daimar Stein <570cxat11@relay.firefox.com>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pt_BR/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
Artem
71c016e68c Translated using Weblate (Russian)
Currently translated at 100.0% (135 of 135 strings)

Co-authored-by: Artem <KovalevArtem.ru@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ru/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
Michael Bestas
abfc82c981 Translated using Weblate (Greek)
Currently translated at 100.0% (135 of 135 strings)

Co-authored-by: Michael Bestas <mkbestas@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/el/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30
m4sk1n
8ee9b2555a Translated using Weblate (Polish)
Currently translated at 99.2% (134 of 135 strings)

Translated using Weblate (Polish)

Currently translated at 51.8% (70 of 135 strings)

Co-authored-by: m4sk1n <me@m4sk.in>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pl/
Translation: CalyxOS/Seedvault
2021-07-05 18:13:56 +05:30