Skip to content

Preserve container configuration in rootfs exports and import - #346

Merged
ravindu644 merged 3 commits into
ravindu644:devfrom
Goldzxcbug:main
Oct 9, 2026
Merged

ravindu644 merged 3 commits into
ravindu644:devfrom
Goldzxcbug:main

Conversation

@Goldzxcbug

Copy link
Copy Markdown
Contributor

Problem

Exported rootfs archives did not include the container's current host-side configuration. When users imported an archive, they had to re-enter those settings in the setup wizard.

Changes

  • Include the container's current container.config as the first member of exported rootfs archives.
  • Read optional root-level configuration during import and prefill the setup wizard with those settings.
  • Keep hardware access and privileged mode behind their existing confirmation dialogs.
  • Keep rootfs validation in the installation path. Environment files are not imported.

UI

The change reuses the existing wizard layout, loading and error screens, and confirmation dialogs.

Verification

  • cd Android && ./build.sh — passed on the local anland branch after merging the current main changes.
  • Debug APK installed on a OnePlus OPD2413, SoC SM8750P, Android 16, kernel 6.6.89, aarch64.
  • Functional export/import and regression flows have not yet been verified.
  • Test rootfs: Ubuntu 26 KDE Wayland aarch64, from release v20261009-135022.
  • Published SHA-256: 0896a70afc4c47c2bdcb757af924fa8de131c4434d85e0ed5c17e2a79f5f1b79
48f845ad5205121d47450578faa4a693_720 1a9ca92d198514ada8ec2443c6eef46b

Signed-off-by: Goldzxcbug <Zxc20060226@outlook.com>
Signed-off-by: Goldzxcbug <Zxc20060226@outlook.com>
Signed-off-by: Goldzxcbug <Zxc20060226@outlook.com>
@Goldzxcbug

Copy link
Copy Markdown
Contributor Author

Additional note: I have verified both the rootfs import and export for the Droidspaces builds from the main branch and the anland branch. Detecting the recommended configuration takes less than 1 second.

@ravindu644
ravindu644 changed the base branch from main to dev October 9, 2026 17:01
@ravindu644
ravindu644 merged commit ff892de into ravindu644:dev Oct 9, 2026
2 checks passed
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.

2 participants