New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] Initial support for backup of D2D-only apps #478
Conversation
My goal was to have this be enough to actually test this functionally on the device, and we could continue further refinements on the original PR |
14597: [D2D] System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 |
Adding my testing notes... Apps for testing:
Verify:
Ways of triggering a backup:
Other things to look at:
|
1868cd0
to
4686caf
Compare
* Bump version * 33030020 -> 13-3.2 * 33030021 -> d2d test seedvault-app#478 * 33030022 -> This, to go back to normal build after testing * This is to allow going back to a build without D2D safely, because otherwise to uninstall the update to an app you have to wipe data. * Also set the testing property to false Change-Id: I1a9530102c851ac8ea05711b947ef7390e3a0dc8
* Bump version * 33030020 -> 13-3.2 * 33030021 -> d2d test seedvault-app#478 * 33030022 -> This, to go back to normal build after testing * This is to allow going back to a build without D2D safely, because otherwise to uninstall the update to an app you have to wipe data. * Also set the testing property to false Change-Id: I1a9530102c851ac8ea05711b947ef7390e3a0dc8
* Spread out the version code a bit to allow for more releases per one name Change-Id: I70b6ba92e359a1f229ee470f4032c04b9fd25e5b
Change-Id: Ieab13cb15b64e09798ec0c1081d3b3cd975e0811
Allow backup of apps that would otherwise only support device-to-device migration. This is an initial-support patch to help determine the viability of this approach. Known issues / TODO: * System-scheduled backups will not handle D2D-only apps, unless accompanied by a framework change forcing OperationType.MIGRATION. Backups triggered by the connection of a USB device or by Seedvault's StorageBackupService (files) scheduling are not affected, so they *will* back up D2D-only apps as expected; otherwise, the user may need to perform a backup manually via Backup Now. * Apps with `allowBackup="false"` will appear in Backup Status under "Installed Apps" rather than "Apps that do not allow data backup", and their status will always be blank until they have been backed up. If they are not eligible for migration, it will never change. Other notes: * The unit test for excluding the Storage Plugin provider from backups was discussed, deemed unnecessary, and removed. Co-authored-by: Oliver Scott <olivercscott@gmail.com> Change-Id: I5a23d68be66f7d8ed755f2bccb9570ab7be49356
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test seedvault-app#478 * 33030022 -> Next, to go back to normal build after testing seedvault-app#489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
4686caf
to
66334db
Compare
Hi @chirayudesai @t-m-w , could you update on the current status? What is the current status? Needs testing, needs review, needs to have some known bugs resolved, ...? |
Hey. All 3 of those are currently on our list. For testing we have a plan to release it in a way that would make public testing easier, but that'll take some time to setup. |
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
* Bump version * 33030020 -> 13-3.2 * 33030021 -> This, d2d test #478 * 33030022 -> Next, to go back to normal build after testing #489 * Set the testing property to true so that the system sends us the right app list 14597: Optionally have System-scheduled backups act as migrations | https://review.calyxos.org/c/CalyxOS/platform_frameworks_base/+/14597 Change-Id: I278091b6659db095716e01b6c3894ce345219283
Resolved via #562. |
(It was proposed that a more minimal initial-support PR be opened, vs #473, to make it easier to test functionality on-device.)
Allow backup of apps that would otherwise only support device-to-device migration. This is an initial-support patch to help determine the viability of this approach.
Known issues / TODO:
allowBackup="false"
will appear in Backup Status under "Installed Apps" rather than "Apps that do not allow data backup", and their status will always be blank until they have been backed up. If they are not eligible for migration, it will never change.Other notes:
Co-authored-by: Oliver Scott olivercscott@gmail.com
Change-Id: I5a23d68be66f7d8ed755f2bccb9570ab7be49356