Skip to content

Temporary: adapt the app to the MDM-aware gomobile binding - #282

Merged
pappz merged 1 commit into
sessionwatch-suppress-late-warningsfrom
fix/mdm-binding-signature
Oct 7, 2026
Merged

pappz merged 1 commit into
sessionwatch-suppress-late-warningsfrom
fix/mdm-binding-signature

Conversation

@pappz

@pappz pappz commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Temporary fix

This is a stop-gap so #281 compiles again. It is not the Android MDM integration; that lands in #278, which rewrites these same three lines to pass the real policy fetcher.

Problem

#281 bumps the netbird submodule from 76ea72237 to 2b5293687. That range includes the mobile MDM bridge (netbirdio/netbird#6435), which changed two gomobile binding signatures the app calls:

Before After
Android.newAuth(configPath, mgmUrl) Android.newAuth(configPath, mgmUrl, PolicyFetcher)
Preferences.getPreSharedKey() : String Preferences.hasPreSharedKey() : boolean

build-debug fails in app:compileDebugJavaWithJavac with three errors, so unit-tests and instrumented-tests never start.

…ding

The netbird submodule bump pulls in the mobile MDM bridge
(netbirdio/netbird#6435), which changed two binding signatures the app
calls: Android.newAuth now takes a PolicyFetcher, and
Preferences.getPreSharedKey was replaced by hasPreSharedKey.

Pass a null fetcher, which the Go side treats as MDM enforcement off,
and switch the pre-shared key check to the new boolean getter. This is a
temporary bridge until the Android MDM support in #278 wires the real
fetcher through these call sites.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94d65ed1-3df9-4c2f-991b-535be6084008

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pappz
pappz merged commit 258cf1b into sessionwatch-suppress-late-warnings Oct 7, 2026
4 checks passed
@pappz
pappz deleted the fix/mdm-binding-signature branch October 7, 2026 08:08
pappz added a commit that referenced this pull request Oct 7, 2026
* Bump netbird submodule to the deadline-only session watcher

The engine no longer arms expiry-warning timers on Android and the
gomobile StateChangeListener drops OnSessionExpiring; the app
schedules the warnings itself from the deadline.

* Keep the scheduler tests from running the worker during schedule

With the SynchronousExecutor a job with zero initial delay runs inside
schedule(). The tests used a deadline 5 minutes out, so the T-10 job ran
immediately: it marked the warning fired and finished, which broke
workerSkipsOtherProfile and cancelAllKeepsFiredMarks and let the
in-window test pass on the automatic run instead of its own call.

Use a deadline an hour out where the test drives the worker itself, and
let the late-warning test assert on the automatic run directly.

* Bump netbird submodule to main with the deadline-only session watcher

* Adapt the setup-key login and PSK check to the MDM-aware gomobile binding (#282)

The netbird submodule bump pulls in the mobile MDM bridge
(netbirdio/netbird#6435), which changed two binding signatures the app
calls: Android.newAuth now takes a PolicyFetcher, and
Preferences.getPreSharedKey was replaced by hasPreSharedKey.

Pass a null fetcher, which the Go side treats as MDM enforcement off,
and switch the pre-shared key check to the new boolean getter. This is a
temporary bridge until the Android MDM support in #278 wires the real
fetcher through these call sites.
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