Skip to content

feat: Set up data transfer when changing Android device - #2029

Open
Elouan1411 wants to merge 3 commits into
mainfrom
transfer-data-change-phone
Open

feat: Set up data transfer when changing Android device#2029
Elouan1411 wants to merge 3 commits into
mainfrom
transfer-data-change-phone

Conversation

@Elouan1411

@Elouan1411 Elouan1411 commented May 28, 2026

Copy link
Copy Markdown

EDIT by @LouisCAD :
Depends on Infomaniak/android-core#825

Copilot AI review requested due to automatic review settings May 28, 2026 12:43
@Elouan1411
Elouan1411 enabled auto-merge May 28, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables Android backup/device-transfer support so selected app settings (and some local state) can be restored when a user changes to a new Android device.

Changes:

  • Enables app backup in the manifest and wires up dataExtractionRules + fullBackupContent.
  • Updates data extraction rules to back up shared preferences and selected internal files for cloud backup and device transfer (plus DB/Realm for device transfer).
  • Adds a new backup_rules.xml file intended to scope Auto Backup contents.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
app/src/main/AndroidManifest.xml Enables backups and references the new backup/data-extraction rule resources.
app/src/main/res/xml/data_extraction_rules.xml Defines cloud-backup and device-transfer include rules for prefs/files/DB/Realm.
app/src/main/res/xml/backup_rules.xml Adds full-backup-content rules intended to scope Auto Backup for pre-Android 12 behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/AndroidManifest.xml
Comment thread app/src/main/res/xml/backup_rules.xml
Comment thread app/src/main/res/xml/data_extraction_rules.xml
Comment thread app/src/main/res/xml/data_extraction_rules.xml Outdated
@Elouan1411
Elouan1411 force-pushed the transfer-data-change-phone branch 4 times, most recently from bbb050b to e87b01c Compare May 28, 2026 14:10
@tevincent
tevincent requested review from LouisCAD and tevincent June 10, 2026 14:52

@tevincent tevincent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to handle token derivation.

@Elouan1411
Elouan1411 force-pushed the transfer-data-change-phone branch from e87b01c to 9028ba9 Compare June 12, 2026 11:47
@sonarqubecloud

Copy link
Copy Markdown

@FabianDevel
FabianDevel marked this pull request as draft June 25, 2026 09:00
auto-merge was automatically disabled June 25, 2026 09:00

Pull request was converted to draft

@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch from 9028ba9 to cc03a8c Compare July 6, 2026 15:32
@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch 3 times, most recently from 153e4f2 to 5f8fa5d Compare July 21, 2026 15:36
@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch from a515a6c to ed5a821 Compare July 29, 2026 11:25
@LouisCAD
LouisCAD marked this pull request as ready for review July 29, 2026 11:32
@github-actions github-actions Bot added the dependent This MR depends on another PR label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR/issue depends on:

@LouisCAD

Copy link
Copy Markdown
Contributor

Token derivation is now handled.

@LouisCAD
LouisCAD requested a review from tevincent July 29, 2026 11:37
@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch from ed5a821 to dae399d Compare July 29, 2026 11:41
@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch from cb64bff to c929d15 Compare July 29, 2026 14:59
@LouisCAD
LouisCAD force-pushed the transfer-data-change-phone branch from c929d15 to 014480c Compare July 30, 2026 14:53
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependent This MR depends on another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants