Commit graph

971 commits

Author SHA1 Message Date
Torsten Grote
5a2f1187a8
Store app icons in separate file
so they can be shown when selecting apps for restore which is before we have downloaded the APK files to extract icons from
2024-05-31 11:10:10 -03:00
Torsten Grote
905340770c
Allow user to choose which apps should get restored 2024-05-31 11:10:10 -03:00
Torsten Grote
4803288629
Show other (launchable) system apps in backup status 2024-05-31 11:10:10 -03:00
Torsten Grote
16813395c7
Change app excludes from switches to checkboxes
apparently this is closer to the material design specs:
https://m2.material.io/components/checkboxes#usage
2024-05-31 11:10:10 -03:00
Torsten Grote
af15b4afdf
Merge pull request #669 from theimpulson/gradleUpdates
Misc Gradle updates
2024-05-31 11:09:37 -03:00
Aayush Gupta
d1660990ba github: workflows: Validate Gradle wrapper before building
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 10:24:30 +05:30
Aayush Gupta
b1909025c0 gradle: Migrate from kapt to ksp
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-30 12:20:20 +05:30
Aayush Gupta
09c9132ff0 gradle: Drop non-required buildscript blocks
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-30 12:07:51 +05:30
Aayush Gupta
6953f154b3 gradle: Migrate to recommended method of build version catalogs
This fixes broken AGP Upgrade Assistant in Android Studio as well as detects
the version catalog files in Android view.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-30 12:07:51 +05:30
Aayush Gupta
18c85a76c7 gradle: Bump to latest AGP and Gradle version
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-30 11:44:42 +05:30
Torsten Grote
d9642aec9d
Fix InstallRestriction
We had a logic bug where isAllowed actually meant isDisallowed
2024-05-28 14:33:28 -03:00
Torsten Grote
5184020f2f
Merge pull request #666 from chirayudesai/78-fixup
fixup! restore: Skip installing APKs if not allowed by policy
2024-05-23 10:05:55 -03:00
Chirayu Desai
0a81c42fd1 fixup! restore: Skip installing APKs if not allowed by policy
Change-Id: Iaa1590df84e3d1785baf0f938da0a2b2fe43ccd0
2024-05-23 16:06:44 +05:30
Torsten Grote
8b4caec272
Use absolute link to FAQ in README.md (#660)
* Use absolute link to FAQ in README.md

Fixes #533
2024-05-23 15:56:10 +05:30
Michael Bestas
1653e6d302 Make Seedvault almost REUSE compliant 2024-05-23 00:44:51 +05:30
Michael Bestas
ecf3b99ac2 misc: Add SPDX copyright headers 2024-05-23 00:44:51 +05:30
Michael Bestas
1baf4b871e app: Add SPDX copyright headers 5/5 2024-05-23 00:44:51 +05:30
Michael Bestas
bfd51350b2 app: Add SPDX copyright headers 4/5 2024-05-23 00:44:51 +05:30
Michael Bestas
a46e93261c app: Add SPDX copyright headers 3/5 2024-05-23 00:44:51 +05:30
Michael Bestas
7f7861aba4 app: Add SPDX copyright headers 2/5 2024-05-23 00:44:51 +05:30
Michael Bestas
c1c2385bd5 app: Add SPDX copyright headers 1/5 2024-05-23 00:44:51 +05:30
Michael Bestas
297f335fa9 Add missing newlines at the end of the files 2024-05-23 00:44:51 +05:30
Hosted Weblate
2bbf46bc4a Import translations from Weblate
Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: lucasmz-dev <git@lucasmz.dev>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/de/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/es/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pt/
Translation: CalyxOS/Seedvault
2024-05-23 00:44:39 +05:30
Torsten Grote
54f9e08c71 Fix scheduling for removable drive users 2024-05-23 00:42:47 +05:30
Hosted Weblate
54d9cfcbe7 Import translations from Weblate
Co-authored-by: Fjuro <fjuro@alius.cz>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: lucasmz <git@lucasmz.dev>
Co-authored-by: lucasmz-dev <git@lucasmz.dev>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/cs/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pl/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ro/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/tr/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/zh_Hans/
Translation: CalyxOS/Seedvault
2024-05-18 22:48:59 +05:30
Hosted Weblate
684ce8201b Import translations from Weblate
Co-authored-by: Fjuro <fjuro@alius.cz>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: Kristian Nordin <kristian.po@proton.me>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: ikya91 <weblate.haq9g@simplelogin.com>
Co-authored-by: lucasmz <git@lucasmz.dev>
Co-authored-by: lucasmz-dev <git@lucasmz.dev>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: 大王叫我来巡山 <hamburger2048@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/cs/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/es/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/fr/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pl/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/ro/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/sv/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/tr/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault_contactsbackup/sv/
Translate-URL: https://hosted.weblate.org/projects/calyxos/seedvault_storage/sv/
Translation: CalyxOS/Seedvault
Translation: CalyxOS/Seedvault contacts backup
Translation: CalyxOS/Seedvault storage backup
2024-05-14 22:21:35 +05:30
Torsten Grote
6dfc0583e5
Merge pull request #502 from chirayudesai/78-skipapk
Skip installing APKs if not allowed by policy
2024-05-14 13:35:25 -03:00
Chirayu Desai
422e3f547d restore: Skip installing APKs if not allowed by policy
* We should not bypass the OS-wide APK install restriction.
* Simply treat that as just not having the APK in the first place,
  since we do support that as an option.
* This still lets users install apps via the store it was downloaded
  from, if said store is installed and allowed to install apps.
* Introduce InstallRestriction to make testing easier.

Co-Authored-By: Torsten Grote <t@grobox.de>
Change-Id: Ic0a56961c9078d4dd542db5d9fc75034abb27bea
2024-05-14 20:34:33 +05:30
Torsten Grote
bb562a4cb2 Catch out 507 HTTP error when using WebDAV
Nextcloud has a bug that lets us write chunked transfers over quota:
https://github.com/nextcloud/server/issues/7993

However, when we upload small files, we can get the proper 507 response and thus detect out of space situations and warn the user about them.
2024-05-14 20:31:15 +05:30
Torsten Grote
066b147315 Catch out of space exception during FullBackup 2024-05-14 20:31:15 +05:30
Torsten Grote
860733d238 Don't retry backup on removable storage 2024-05-14 20:31:15 +05:30
Torsten Grote
49262682d1 Don't do backup, if space is already low, warn instead 2024-05-14 20:31:15 +05:30
Torsten Grote
36910fc777 Catch out of space errors and show error notification 2024-05-14 20:31:15 +05:30
Torsten Grote
5cae1b202d Show app restore sets sorted by latest first 2024-05-14 20:31:15 +05:30
Torsten Grote
7ec80d4ebb Store total backup size and show it when restoring
This is done by storing also the APK sizes in addition to the app data size we already store.
2024-05-14 20:31:15 +05:30
Torsten Grote
1d8c438723 Implement a storage plugin method to get free space 2024-05-14 20:31:15 +05:30
Torsten Grote
81cbb6e4dc Get free space for storage authority if not available by other means 2024-05-14 20:31:15 +05:30
Torsten Grote
c04ddfa9a0 Add helper text for WebDAV URL field 2024-05-08 19:10:46 +05:30
Torsten Grote
d0cf168198
Merge pull request #647 from grote/webdav
Implement a native WebDAV plugin
2024-05-06 13:41:45 -03:00
Torsten Grote
1931024a10
Introduce constant for files snapshot file extension 2024-05-03 16:09:41 -03:00
Torsten Grote
2f6edf6b4b
Rename StoragePluginEnum to StoragePluginType 2024-05-03 15:59:28 -03:00
Torsten Grote
4651ad5eb3
Replace field naming _foo with mFoo 2024-05-03 15:57:01 -03:00
Torsten Grote
01dbcf5f2f
Move StorageProperties class into its own file 2024-05-03 15:54:04 -03:00
Torsten Grote
bf40b53863
Merge pull request #652 from grote/scheduling-i18n
Always update next scheduling time in UI
2024-04-29 13:46:06 -03:00
Torsten Grote
b041c208ac
Always update next scheduling time in UI
Also avoid hard-coded strings and log when no backups are scheduled.
2024-04-29 12:00:39 -03:00
Torsten Grote
0b4bd09e7d
Don't assume SAF-based storage is available
it may be WebDAV now
2024-04-25 14:13:32 -03:00
Torsten Grote
0e51c00bca
Properly migrate existing users to new plugin setup 2024-04-25 09:51:46 -03:00
Torsten Grote
a95ba41196
Reset WebDAV config state when the UI is left 2024-04-25 09:51:46 -03:00
Torsten Grote
f4366d930f
Adapt integration test to new plugin structure 2024-04-25 09:51:46 -03:00
Torsten Grote
a4cccabc5e
Don't allow changing backup location while backup is running 2024-04-25 09:51:45 -03:00