Torsten Grote
7f4b565d2a
First version bumps for Android 12
2021-10-13 16:25:41 +05:30
Torsten Grote
3ffb79b04f
Write metadata with new version 1
...
Reading still supports version 0
2021-10-13 16:15:20 +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
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
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
e77d5cad2c
Update storage design document and add some TODOs to the code
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
b8ac11e724
apply ktlint to storage.lib as well
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