Torsten Grote
b184f208c4
Show storage backup notification immediately
2021-10-13 16:25:41 +05:30
Torsten Grote
97398f1c5c
Build build storage backup lib within AOSP
...
This removes the AAR binary from the repo as it isn't needed anymore. Also room schema migrations will need to be one manually in the future as schema export doesn't seem to work in AOSP.
2021-10-13 16:25:41 +05:30
Torsten Grote
579919d5e7
Code style and lint after Android 12 version bumps
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
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