Skip to content

android: load MDM settings before starting tailscale#738

Merged
kari-ts merged 1 commit intomainfrom
kari/mdmload
Feb 23, 2026
Merged

android: load MDM settings before starting tailscale#738
kari-ts merged 1 commit intomainfrom
kari/mdmload

Conversation

@kari-ts
Copy link
Collaborator

@kari-ts kari-ts commented Feb 20, 2026

rsop loads a policy snapshot during startLibtailscale(), but MDMSettings have not been loaded and are in the default state. This results in a bug where the device may register with the wrong hostname.

-Fixes this by loading MDM settings before startLibtailscale(), so that the state is populated before the rsop initial load
-Also separates MDMSettings.update() and Notifier.state.collect() into different launch blosck as they are unrelated and should not be bundled together
-This also ktfmts these files

Updates tailscale/corp#37561

rsop loads a policy snapshot during startLibtailscale(), but MDMSettings have not been loaded and are in the default state. This results in a bug where the device may register with the wrong hostname.

-Fixes this by loading MDM settings before startLibtailscale(), so that the state is populated before the rsop initial load
-Also separates MDMSettings.update() and Notifier.state.collect() into different launch blosck as they are unrelated and should not be bundled together

Updates tailscale/corp#37561

Signed-off-by: kari-ts <kari@tailscale.com>
@kari-ts kari-ts merged commit 5295798 into main Feb 23, 2026
4 checks passed
@kari-ts kari-ts deleted the kari/mdmload branch February 23, 2026 19:21
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