Torsten Grote
23787a373e
Don't retry instrumentation tests
2024-03-08 09:52:23 -03:00
Torsten Grote
aa1c710624
Stop running instrumentation tests for SDK 33
2024-03-08 09:52:20 -03:00
Torsten Grote
19bfc41d95
Allow backups in metered network, if user wants that
2024-03-08 09:52:07 -03:00
Torsten Grote
4eaa806636
Expose scheduling options in the UI
2024-03-08 09:52:07 -03:00
Torsten Grote
f593b66e00
try more than once to upload metadata after APK backups
...
Failure to upload metadata after backup up APKs can be critical and flaky I/O can make it fail, so we try again.
2024-03-08 09:52:06 -03:00
Torsten Grote
e7e489e091
Only reschedule next app backup when not on USB storage
...
Currently, after a manual run, we need to schedule the background backups again, because the scheduling gets lost. However, we need to be careful not to do that when the backup destination is on removable storage. Then we don't want to run.
2024-03-08 09:52:06 -03:00
Torsten Grote
8a870d8942
Use WorkInfo for determining if a backup is already running
...
Backup and restore is not possible when a backup is running. We used to check notifications for this, but now can use WorkManager's WorkInfo which should be more reliable.
Also, we used to prevent the "Backup now" action when app backup was disabled. But the user may want to do a storage backup. This is now possible.
2024-03-08 09:52:06 -03:00
Torsten Grote
0c1898c198
Properly schedule/cancel backup workers when backup destination changes
...
When the user changes to USB storage, we need to cancel current schedulings, because the storage is not always available (maybe can use a trigger URI?). And if moving to a non-USB storage, we need to schedule backups again.
Unfortunately, there are two places in the code where we handle storage location changes. Ideally, those get unified at some point.
2024-03-08 09:52:06 -03:00
Torsten Grote
e615402458
During restore, show apps without APK as failed
...
Previously, we backed up APKs of apps we could not back up (even if APK backup was disabled) so the user had a chance to get at least the apps back when restoring. Now, it is enough to record metadata about the app and the user will be able to manually install the app. The install apps step won't be skipped anymore.
2024-03-08 09:52:06 -03:00
Torsten Grote
6e7bc89e2f
Respect when worker was stopped
...
and log worker ID as well as object, because we've seen two scheduled workers running at the same time, requesting a backup at the same time. This should not happen.
2024-03-08 09:52:06 -03:00
Torsten Grote
0d7156789e
Guard against BadParcelableException when getting app list
...
hopefully something rare, but it just happened to me while testing.
It seems it happens when there are many apps installed (>500) and the app list is open while a backup happens. Then, we keep reloading the list and hammer the package manager hard which it seems can't handle it. It does recover on its own though.
2024-03-08 09:52:05 -03:00
Torsten Grote
04fc90e9f7
Migrate to own backup scheduling
2024-03-08 09:52:05 -03:00
Torsten Grote
911a8dabf4
Expose time of next backup in UI
...
to help debugging scheduling issues
2024-03-08 09:52:05 -03:00
Torsten Grote
8da73ad8d1
Make 'Backup now' action use AppBackupWorker
2024-03-08 09:52:05 -03:00
Torsten Grote
49066be31b
Improve backup notification
2024-03-08 09:52:05 -03:00
Torsten Grote
fcd4e518a5
Move APK backup from BackupCoordinator to new ApkBackupManager
...
This is a preparation for doing APK backup ourselves in a worker and not hacked into the backup transport. The latter was prone to timeouts by the AOSP backup API. With a worker, we have a bit more control and can schedule backups ourselves.
2024-03-08 09:52:04 -03:00
Torsten Grote
92c87d3b5a
Merge pull request #631 from grote/aosp_atd
...
Try aosp_atd emulator for instrumentation tests
2024-03-08 09:48:47 -03:00
Torsten Grote
cfe45b4587
Try aosp_atd emulator for instrumentation tests
2024-03-07 17:30:35 -03:00
Torsten Grote
fb4e1711f2
Build AOSP with QPR2
2024-03-07 20:40:09 +05:30
Torsten Grote
0c8fe3ef20
Fix nullability issues that AOSP is complaining about now
2024-03-07 20:40:09 +05:30
Torsten Grote
c33486ee00
Adjust code for new library versions
2024-03-07 20:40:09 +05:30
Torsten Grote
9c7f4cb191
Update dependencies for Android 14 QPR2
2024-03-07 20:40:09 +05:30
Chirayu Desai
635a1ef9b4
strings: Call D2D alpha instead of experimental
...
Change-Id: I571989a04a2cfaa5684d2d182185799b48b51e9e
2024-02-23 23:37:00 +05:30
Chirayu Desai
2744ccdc7d
strings: Call Storage Backup beta instead of experimental
...
* Let's make it less scary
Change-Id: I889b04eb68df836aea3c5cc4ca97acd3f4c3af54
2024-02-23 23:37:00 +05:30
Torsten Grote
8c27814407
Merge pull request #613 from grote/backup-binder
...
Use BackupRequester to request backup in chunks
2024-02-22 13:10:23 -03:00
Michael Bestas
a050e73f7d
Update SetupWizard dark theme for U
...
Change-Id: I0a5b1a41cceba2b45b41cfd64e98b8105c8ad6b6
2024-02-22 01:18:45 +05:30
Torsten Grote
a586ee6b14
In instrumentation tests, keep incremental backups
...
If we request backup in several chunks, packages like 'pm@' or 'android' get backed up for each chunk, so due to incremental backups, we need to keep old data when comparing.
2024-02-14 11:23:22 -03:00
Torsten Grote
b47b4ade1e
Stop cleaning up notification when service is destroyed.
2024-02-13 16:20:02 -03:00
Torsten Grote
4014666c15
Improve notification progress reporting
...
It is still somewhat buggy when d2d is on, but this is easier to resolve when moving everything to own scheduling.
2024-02-13 16:20:02 -03:00
Torsten Grote
86c603e2d2
Use BackupRequester to request backup in chunks
...
Otherwise users with lots of installed apps with request a lot of packages causing binder transactions to reach their size limit and crash.
2024-02-13 16:20:02 -03:00
Torsten Grote
81fae1a240
Try to recover from corrupt metadata cache
2024-02-13 23:37:41 +05:30
Torsten Grote
6428399bed
Tolerate unexpected exceptions in DocumentsStorage and ApkRestore
2024-02-13 23:36:46 +05:30
Torsten Grote
758186392d
Properly handle exception while writing zip chunk entries
2024-02-13 23:36:19 +05:30
Torsten Grote
dc7405474e
Improve error reporting when reading snapshot version
2024-02-13 23:36:05 +05:30
Torsten Grote
fd90be8776
Don't include empty dirs in media backup
...
Otherwise, the directories would be treated as small files and we would try to backup their content which would fail.
2024-02-13 23:36:05 +05:30
Torsten Grote
09b7cabd99
Use own notification ID for success notification
...
and cancel observer notification when backup is finished. This is because when the success channel is disabled by the user, the observer notification could stick around and would never get removed.
2024-02-13 23:34:59 +05:30
Torsten Grote
cb9d3c701b
Fix flaky metadata decoding test
2024-02-13 23:34:59 +05:30
Torsten Grote
fcbd62ba3b
Remove warning from d2d expert setting as we now disable system scheduling for d2d
2024-02-13 23:34:59 +05:30
Torsten Grote
c832cd9886
Remove logWorkInfo as some part of it isn't in AOSP version of workmanger
...
It was meant for debugging only anyway
2024-02-13 23:34:59 +05:30
Torsten Grote
a380445693
Show success notification in a separate notification channel
...
so the user can disable it. This will be more of an issue now that it comes also for scheduled background backups.
2024-02-13 23:34:59 +05:30
Torsten Grote
de51ad2cc9
Use our own scheduling when doing d2d backups (experimental)
2024-02-13 23:34:59 +05:30
Hosted Weblate
d1f0fef718
Import translations from Weblate
...
Co-authored-by: 0que <0que@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Michael Bestas <mkbestas@gmail.com>
Co-authored-by: Morris Son <morrisson42@gmail.com>
Co-authored-by: Mother is a Gambler <dahlan@disroot.org>
Co-authored-by: Pander <pander@users.sourceforge.net>
Co-authored-by: nautilusx <translate@disroot.org>
Co-authored-by: r5jyhte <ioulykttr@proton.me>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/de/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/el/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/fr/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/id/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/nl/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pl/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ru/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault_storage/ru/
Translation: CalyxOS/Seedvault
Translation: CalyxOS/Seedvault storage backup
2024-02-11 02:05:51 +05:30
Steve Soltys
64d0c87013
Add support for RoundSync as a storage provider
2024-01-27 21:27:59 +00:00
Torsten Grote
9c4f9d8a67
Merge pull request #606 from seedvault-app/chore/version-bump
...
Bump version to 14-4.0 - D2D <3
2024-01-24 17:11:48 -03:00
Chirayu Desai
9097c8ced5
Bump version to 14-4.0 - D2D <3
...
Change-Id: Ida82c6eafa715069d62dc92eb19accf64ed6d51c
2024-01-24 21:28:09 +05:30
Steve Soltys
695c33e466
Merge pull request #603 from seedvault-app/bugfix/excluded-apk-backups
...
Stop backing up excluded app APKs
2024-01-19 09:41:51 -05:00
Torsten Grote
bd9ece2b11
Merge pull request #605 from grote/backup-size
...
Store and show the size of app backups
2024-01-19 11:40:37 -03:00
Steve Soltys
bc189546b3
Add '/build' folders to .gitignore
2024-01-19 03:34:38 +00:00
Steve Soltys
d1e577aec9
Stop backing up excluded app APKs
2024-01-19 03:34:30 +00:00
Torsten Grote
599240c79f
Show size of app backups in Backup Status screen
2024-01-17 13:37:58 -03:00