Commit graph

1106 commits

Author SHA1 Message Date
Torsten Grote
f15018253c
Prevent NoClassDefFound error when a WebDAV server returns GetLastModified
which happens in the case of dufs (see last commit)
2024-06-14 09:17:52 -03:00
Torsten Grote
4ac02018fa
Fix uncaught throwable with dufs WebDAV server
The underlying issue will affect other functionality though: https://github.com/sigoden/dufs/issues/400
2024-06-14 09:17:52 -03:00
Torsten Grote
56e26083fc
Fix PROPFIND fallback for lighttpd as well 2024-06-14 09:17:51 -03:00
Torsten Grote
1dd898b068
Add fallback when WebDAV PROPFIND with depth=2 isn't supported 2024-06-14 09:17:51 -03:00
Torsten Grote
c522c460fd
Add trailing slash to WebDAV collection requests 2024-06-14 09:17:50 -03:00
Torsten Grote
b223af6413
Merge pull request #680 from bernhardreiter/patch-1
docs: (minor) Fix typo README.md
2024-06-13 09:03:26 -03:00
Bernhard E. Reiter
c2224df57a
docs: (minor) Fix typo README.md 2024-06-13 11:10:22 +02:00
Aayush Gupta
1b7686de08
Merge pull request #677 from grote/webdav-timeouts
Increase WebDAV timeouts and declare body one-shot
2024-06-12 19:52:35 +05:30
Torsten Grote
c483332b15
Try to fix issue where our transport doesn't get registered in emulator 2024-06-12 09:57:24 -03:00
Steve Soltys
08727651af
Skip magic package manager in assertions
We still don't know why, but after latest test fixes, the @pm@ package didn't have the the @meta@ key in the backup, but it did in restore.
2024-06-07 09:35:15 -03:00
Torsten Grote
e76ab1ca43
Increase WebDAV timeouts and declare body one-shot
As most output streams come from the system, we can't re-send them. So when okhttp wants to retry it tries to write to closed streams which will fail. We declare our outputstream writing as one-shot for this reason.
2024-06-05 12:40:42 -03:00
Torsten Grote
0e224b1238
Filter out @end@ helper package
it doesn't really exist and should probably not even be in the backup metadata. It messes up progress reporting, if we keep it in.
2024-05-31 17:11:34 -03:00
Torsten Grote
fa19261d8e
Improve app data restore process
Apps are now restored alphabetically to be consistent with the other lists. Some irrelevant apps are hidden. Under the hood, we now use an AsyncListDiffer like in the other lists.
2024-05-31 17:06:14 -03:00
Torsten Grote
b3f93adf77
Factor out code into new
AppDataRestoreManager

which was in RestoreViewModel before.
Now all three steps of app restore have their own dedicated manager class making the ViewModel more readable.
2024-05-31 15:07:35 -03:00
Torsten Grote
66f3852edf
Delete cached icons after restore is done 2024-05-31 13:35:55 -03:00
Torsten Grote
ebf68cfe73
Don't try to install system apps without APK
during restore process. These can usually not be manually installed anyway and just clutter the list making it harder for the user to find their important apps and potential failures there.
2024-05-31 12:16:01 -03:00
Torsten Grote
f408381d18
Fix backup/restore instrumentation tests 2024-05-31 11:50:59 -03:00
Torsten Grote
88619b94c1
Fix red error color
Resources$NotFoundException: Resource ID #0x7f060258 type #0x2 is not valid
2024-05-31 11:50:59 -03:00
Torsten Grote
f68fa0f3fc
Fix AOSP build 2024-05-31 11:50:59 -03:00
Torsten Grote
4b1c76d585
don't record excluded apps in backup 2024-05-31 11:50:59 -03:00
Torsten Grote
e54d96d548
Re-factor and improve ApkRestore 2024-05-31 11:50:59 -03:00
Torsten Grote
05c39e98fa
Add tests for AppSelectionManager 2024-05-31 11:50:58 -03:00
Torsten Grote
6143ec04ed
Upgrade Roboeletric and bump minSdk to 34 2024-05-31 11:50:58 -03:00
Torsten Grote
9cc72bfa38
Show size for (all combined) system apps when restoring 2024-05-31 11:50:58 -03:00
Torsten Grote
f5fb9ffffa
Factor out app restore selection code into new AppSelectionManager 2024-05-31 11:50:58 -03:00
Torsten Grote
332387fd58
Encrypt zip file with icons
While we still don't guarantee that an attacker with access to the storage can't find out which apps we use (APKs are still unencrypted after all), we go into this direction.

Also, this should make it impossible for an attacker that can modify files to replace or otherwise mess with the icons.
2024-05-31 11:10:12 -03:00
Torsten Grote
eecfcdb285
Improve icon display when selecting apps for restore 2024-05-31 11:10:12 -03:00
Torsten Grote
787b9346a8
Add meta item for restoring all (internal) system apps
This way we don't need to show the long complicated list, but provide an all or nothing option at least.
2024-05-31 11:10:11 -03:00
Torsten Grote
573e48f393
Sort app selection like backup status and show sections
system data comes first and then apps
2024-05-31 11:10:11 -03:00
Torsten Grote
af1b3de9cb
Fix icon colors (again!)
see 5662409ef5
2024-05-31 11:10:11 -03:00
Torsten Grote
a447895079
Cleaned up backup status list by separating system data and apps 2024-05-31 11:10:11 -03:00
Torsten Grote
1ac613f588
Also store icons of launchable system apps 2024-05-31 11:10:11 -03:00
Torsten Grote
a0a3e871e0
Show actual app name in app selection for restore 2024-05-31 11:10:11 -03:00
Torsten Grote
1667d44967
Sort apps that failed to install by name 2024-05-31 11:10:10 -03:00
Torsten Grote
56d8d64261
Store app name and whether it is a launchable system app in metadata
this is helpful for restore, so the user can see app names when deciding which apps to restore
2024-05-31 11:10:10 -03:00
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