Skip to content

mdm: define OnboardingFlow syspolicy on Android #648

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zbuchheit
Copy link

@zbuchheit zbuchheit commented May 12, 2025

Adds an MDM setting OnboardingFlow which allows for the intro screen to be skipped when set to true.

Adds MDM Setting update to the top of MainActivity onCreate to ensure the latest MDMSettings are accurate.
When attempting to rely on MDMSettings being updated during onResume it created a race condition where occasionally OnboardingFlow was being evaluated to the default value show when in reality it should be set to hide.

Updates https://github.com/tailscale/corp/issues/27966

Copy link

review-ai-agent bot commented May 12, 2025

Pull Request Revisions

RevisionDescription
r6
Refactored onboarding flow logicExtracted onboarding display logic into separate shouldDisplayOnboarding() method and updated onboarding flow string
r5
Simplified onboarding flow navigation logicRemoved unnecessary comment and condensed onboarding flow navigation check with minor code formatting adjustments
r4No changes since last revision
r3
Android strings and restrictions updatedModified onboarding-related string and app restrictions, changing key and string names with updated configuration
r2
Modified MDM onboarding flow settingsReplaced tailscaleOnboardingSeen boolean with onboardingFlow ShowHide setting and updated navigation logic
r1
Added MDM control for intro screenIntroduced MDM setting to allow administrators to skip the initial onboarding/intro screen for Tailscale Android app

☑️ AI review skipped after 5 revisions, comment with `/review` to review again
Help React with emojis to give feedback on AI-generated reviews:
  • 👍 means the feedback was helpful and actionable
  • 👎 means the feedback was incorrect or unhelpful
💬 Replying to feedback with a comment helps us improve the system. Your input also contributes to shaping future interactions with the AI reviewer.

We'd love to hear from you—reach out anytime at [email protected].

@zbuchheit zbuchheit force-pushed the zbuchheit/skip-intro-screen branch from fed79d4 to ae71490 Compare May 19, 2025 00:07
@zbuchheit zbuchheit force-pushed the zbuchheit/skip-intro-screen branch from ae71490 to 3511552 Compare May 19, 2025 00:12
@zbuchheit zbuchheit force-pushed the zbuchheit/skip-intro-screen branch 2 times, most recently from 2d54d76 to 63ff494 Compare May 19, 2025 00:20
Copy link
Member

@barnstar barnstar left a comment

Choose a reason for hiding this comment

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

Thank you @zbuchheit !

Just a few small changes to use the existing policy name for consistency with other platforms.

Adds an MDM setting `OnboardingFlow` which allows for the intro screen to be skipped when set to true.

Adds MDM Setting update to the top of MainActivity onCreate to ensure the latest MDMSettings are accurate. When attempting to do this while
relying on MDMSettings being update during onResume it created a race condition where occasionally OnboardingFlow was being evaluated to the
default value `show` when in reality it should be set to `hide`.

Signed-off-by: zbuchheit <[email protected]>
@zbuchheit zbuchheit force-pushed the zbuchheit/skip-intro-screen branch from 63ff494 to 42a4de1 Compare May 20, 2025 21:48
@zbuchheit zbuchheit changed the title mdm: define TailscaleOnboardingSeen syspolicy on Android mdm: define OnboardingFlow syspolicy on Android May 20, 2025
@zbuchheit
Copy link
Author

@barnstar I made some of the changes you suggested. I am also happy to change it to TailscaleOnboardingSeen if that's what you all decide to finalize it as. @nickkhyl suggested changing it to OnboardingFlow.

@zbuchheit zbuchheit requested a review from barnstar June 3, 2025 18:44
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.

3 participants