Skip to content
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

Add experimental support for forcing D2D transfer backups #562

Merged
merged 4 commits into from
Jan 15, 2024

Conversation

stevesoltys
Copy link
Member

@stevesoltys stevesoltys commented Sep 22, 2023

This adds a toggle in expert settings which enables D2D transfers for backups. Each backup will have a flag in the metadata indicating whether or not it was produced with the D2D transfer toggle enabled.

@grote
Copy link
Collaborator

grote commented Sep 22, 2023

We probably need to do #484 cleanly first. Did you not encounter that issue in your tests?

@stevesoltys
Copy link
Member Author

Didn't test this just yet but I had done tests with the original D2D branch in the emulator and it didn't have this problem (I produced the static test data backup from that branch).

I also think it didn't have 300 packages though.

@stevesoltys stevesoltys force-pushed the feature/d2d-transfer branch 3 times, most recently from 482469e to 66f0640 Compare September 24, 2023 02:45
@grote grote linked an issue Sep 25, 2023 that may be closed by this pull request
3 tasks
Base automatically changed from feature/e2e-test to android13 September 25, 2023 10:27
@stevesoltys stevesoltys changed the base branch from android13 to android14 November 1, 2023 01:11
@stevesoltys stevesoltys force-pushed the feature/d2d-transfer branch 2 times, most recently from 6e14477 to d8aba14 Compare November 1, 2023 01:25
grote and others added 2 commits November 29, 2023 23:55
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 <[email protected]>
Change-Id: I5a23d68be66f7d8ed755f2bccb9570ab7be49356
@stevesoltys stevesoltys requested a review from grote November 30, 2023 05:09
@stevesoltys stevesoltys force-pushed the feature/d2d-transfer branch 5 times, most recently from 3661914 to fa4c52f Compare December 30, 2023 20:53
@grote
Copy link
Collaborator

grote commented Jan 2, 2024

There's still a DO NOT MERGE commit in this PR. Can we remove that?

* 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
@stevesoltys stevesoltys force-pushed the feature/d2d-transfer branch from bacfc20 to fe27f82 Compare January 4, 2024 23:24
@stevesoltys stevesoltys force-pushed the feature/d2d-transfer branch 5 times, most recently from a88af6f to 7af5dd8 Compare January 12, 2024 05:09
@grote grote merged commit 0319d73 into android14 Jan 15, 2024
7 checks passed
@grote grote deleted the feature/d2d-transfer branch January 15, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to back up all apps by pretending to be a device to device transport
4 participants