Skip to content

Offer device lock for Android terminal and key transfer - #379

Merged
n0rpan merged 6 commits into
mainfrom
mobile/android-device-owner-policy
Dec 3, 2026
Merged

n0rpan merged 6 commits into
mainfrom
mobile/android-device-owner-policy

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on the Android prompt bridge merged in #378 and implements the Android device-lock settings for #95. The existing Rust terminal and reviewed key-transfer flow asks the phone to authenticate before the protected operation. Android can opt in to each setting from Host settings. Existing Android installs keep both options off until the user enables them. The phone requires authentication to change either option.

In local Android 16 integration QA, a missing screen lock explained how to enable one. Cancelling the system prompt left the setting off, PIN success saved terminal protection, and opening Host Terminal required a fresh unlock. Cancelling that prompt returned to OX. The fixture was offline. A physical-device test and real key transfer remain open.

The shared policy passed the iPhone device-target Linux build before the Android bridge was stacked. Firebase preflight, documentation links, and the stacked diff check passed on the original stack.

Checked against main at 66f5317. The reconciled settings screen retains the Reduce motion switch from #409 and both device-lock switches. The branch includes its signed Ubuntu ARM archive fallback for the failed Linux dependency installation. Combined terminal-key and device-lock verification on #413.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T21:01:42.803793Z 75d6def Draft marked ready
🔒 Security Review ✅ Completed 2026-12-03T21:03:14.127522Z 75d6def Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The final stacked head 90d3db5 also built the standalone Android arm64 release APK on Linux. The APK passed 16 KiB ZIP alignment verification.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Local Android packaging QA passed for the device-lock stack combined with the Play bundle PR (#352). Both arm64 release AABs passed bundletool validation. Each contains the private device-owner prompt activity, biometric permission, and device-prompt JNI bridge. Only the Firebase fixture variant contains the messaging service. These were unsigned local bundles built with a synthetic Firebase configuration. The Play upload and physical-device checks remain open.

Base automatically changed from mobile/android-device-owner-prompt to main December 3, 2026 15:04
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 4629c59

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 75d6def is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 4629c59.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 4629c594df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 15:17
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 15:17
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The failed Fast Linux workbench job exited 100 in “Install toolchain and runtime.” The pinned ARM64 Ubuntu Snapshot returned 502/503 for package indexes. The job stopped before it could compile OX or run tests.

I merged main at 20f8288 locally to pick up #386. Its apt helper recognizes the errors in this job and switches the Ubuntu sources to the signed ARM archive. The apt fallback regression tests passed locally. The diff against main still contains only the five device-lock files. I also checked #413's terminal keys with this branch and posted the results on its discussion.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue c4acfae

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit c4acfae.

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 19:12
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 19:12
@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
…-owner-policy-reconcile

# Conflicts:
#	desktop/ox-mobile/src/mobile.rs
@n0rpan
n0rpan removed this pull request from the merge queue due to a manual request Dec 3, 2026
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 75d6def

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 75d6def.

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 21:00
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 21:00
@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

I checked the exact device-lock head 75d6defa with the landed terminal-key controls in #413 and the pending notification stack on local integration 72597c9. The branches merge cleanly. The 396 mobile tests and 238 host tests passed. The Firebase ARM64 fixture bundle passed bundletool and 16 KiB alignment checks, and the unsigned iPhone executable linked with xtool. Both binaries contain the terminal controls and their platform’s device-authentication text.

Those are build and test results. The combined prompt and terminal flow still needs a physical-device run.

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

On merge candidate 32232f6, the Stock clients (latest) job downloaded OpenCode v2.4.4. The loopback fixture failed at tests/fixtures/stock_opencode.py:193 because opencode models ox exited 1 with “Unexpected positional argument: "ox".” The stock-client baseline passed on the same candidate. #379 changes only OX Mobile, and leaves that fixture and the OpenCode invocation untouched. The existing CI workflow treats latest as advisory for merge groups and blocking in the nightly run.

The candidate also includes #413's terminal keys. I ran the combined device-lock and terminal-key harness directly against the candidate source. Cancellation opened no connection, and all five keys stayed blocked until the reviewed process reported running.

The Intel desktop package job later failed in the diagnostics artifact upload. It found the output file, validated the artifact name and path, then the GitHub artifact request failed with ENOTFOUND. The queue has already started replacement candidate bf4735c4. Its OX Mobile tree is identical to the candidate tested above.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The Intel macOS package job built the app, ran the stock client checks and opened its project window. GitHub then failed to create the package artifact with ENOTFOUND. I requested one retry of that job on the existing queue candidate. Intel package log

Merged via the queue into main with commit bf4735c Dec 3, 2026
27 of 28 checks passed
@n0rpan
n0rpan deleted the mobile/android-device-owner-policy branch December 3, 2026 23:34
@n0rpan
n0rpan deployed to auto-queue December 3, 2026 23:34 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
auto-queue — 75d6defa Deployed Dec 3, 2026 by n0rpan via Queue when green and reviewed #8471
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