Skip to content

K2GO-568 refactor(rootfs): one source for the rootfs paths - #765

Merged
luisguzman-adfa merged 1 commit into
mainfrom
refactor/K2GO-568-rootfs-path-single-source
Nov 13, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
refactor/K2GO-568-rootfs-path-single-source

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

What changes

  • SystemStateEvaluator.rootfsBaseDir() and rootfsDir() are the only place that spells the rootfs paths.
  • All callers use them (server, terminal, environment, install, clone, disk guard, sync, dashboard version, backup, restore, downloads, box import). EnvironmentControl.rootfs is removed.

Why

  • About 15 hand-written copies of files/rootfs/installed-rootfs/iiab. One owner stops them from drifting apart.

Verifications

  • :app:assembleStandardDebug :app:testStandardDebugUnitTest green.
  • Backup and restore run on a device (OnePlus 7T, Android 16) with this stack.
    • Coordination: first PR of a stack. The K2GO-570 and K2GO-569 PRs build on this branch.

Notes

  • No behavior change.

SystemStateEvaluator owns the rootfs base dir and the installed tree;
EnvironmentControl.rootfs and the hand-written copies now use it.
@luisguzman-adfa
luisguzman-adfa merged commit 8a05d6b into main Nov 13, 2026
4 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.

1 participant