Skip to content

StrongBox hide: WebUI tab + omk-sbh auto-build - #2

Open
Najip wants to merge 25 commits into
mainfrom
feat/strongbox-hide
Open

Najip wants to merge 25 commits into
mainfrom
feat/strongbox-hide

Conversation

@Najip

@Najip Najip commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Adds a lean StrongBox hide feature to the OMK WebUI. Validated end-to-end on a 14T Pro: Duck Detector TEE Aligned/Clear and "all checks report no StrongBox support", Play Integrity MEETS_STRONG_INTEGRITY.

How the four Duck checks are hidden:

  • 1-3 (PackageManager feature, VINTF, ServiceManager): standalone KernelSU-mounted sbhide 0.6.0 overlay (originals-store, so a reinstall over a live overlay still stages from the real files)
  • 4 (keystore2 level): omk-sbh mask_strongbox_feature

Includes:

  • StrongBox tab: Hide toggle, 4-check status, Install patched OMK (omk-sbh), Save diagnostic (.txt to /sdcard/Download)
  • selfupdate.sh sbh-fetch/sbh-install; self-update ignores omk-sbh-* releases
  • omk-sbh auto-build workflow: daily cron tracks OMK's latest full release, builds + publishes omk-sbh-<sha> as a pre-release, opens an issue if the patch stops applying
  • bundled overlay tracked (gitignore *.zip exception)

Notes:

  • Merging activates the daily cron (workflows schedule only from the default branch).
  • Gating of the Hide toggle is deferred.

Najip added 25 commits December 5, 2026 10:17
New StrongBox tab installs the KernelSU-mounted overlay (Duck checks
1-3) and flips OMK's mask_strongbox_feature (check 4); obtains the
patched omk-sbh from this addon's releases; exports a diagnostic
.txt to /sdcard/Download. The overlay stays a standalone module so
the manager mounts it with the right SELinux label; the addon only
installs it. No Zygisk, no manual mount, no keystore2 restart.
Daily cron tracks OMK's latest full release and builds the patched
omk-sbh (qwq233 OMK submodule @7742865 + mask_strongbox_feature),
publishing omk-sbh-<sha> as a pre-release the Hide StrongBox flow
fetches. A branch-push trigger builds the first one now. Self-update
pickers ignore omk-sbh-* so it is never offered as an addon update.
0.5.0 re-stages its overlay from the live (already-blanked) vendor
files, so reinstalling over a mounted overlay staged nothing and lost
checks 1-2. 0.6.0 keeps an originals store and builds from the real
files. Also track the bundled overlay zip: gitignore *.zip was
dropping it, so a CI-built addon shipped the overlay empty.
The first omk-sbh release is built; daily cron + manual dispatch take
over once this is on main (workflows schedule only from the default
branch).
Carried over from the omk-sbh branch, rewritten for the clean model
(no Zygisk/targets):
- Health tab: flags a half-applied hide (overlay missing/empty, a
  check still showing, mask off) with an Open shortcut to the tab.
- Main card: a StrongBox row when the hide is active.
- Config guard: back up config.toml before an omk-sbh swap; a
  restore-only post-fs-data.sh puts it back if a swap wiped it.
- Updates: when the mask is on, offer omk-sbh updates (never stock
  OMK, which would un-hide), held until that build is published.
- Overlay module is now headless (no WebUI, no sbctl); the addon is
  the sole controller. Version pinned v0.0.1 (internal, force-installed).
- StrongBox tab: an Advanced expandable with per-option toggles (HAL
  stop, keystore2 mask, OMK re-detect), greyed/inert when hide is off.
- Scan-lock: toggles lock with a spinner during a status scan.
- strongbox.sh: cfg KEY [VAL] reads/writes the overlay knobs.
- Dropped the last 6666-fork mentions.
Shorter notes in the StrongBox tab and no detector name in the UI;
the detail lives in the repo.
The omk-sbh build workflow is gated to run only on forks, so the main
repo never builds or publishes the patched binary. Source (submodule
+ patch) stays public so anyone can fork and self-build. The existing
omk-sbh-* release should be deleted from the main repo manually.
Main repo no longer hosts omk-sbh, so the download finds none: the
"no release" toast now points to a fork/manual build, and the update
state reads "Needs omk-sbh <tag>" instead of "building".
status now emits VARIANT (sbh|unknown) from a build marker or the
patched build's log line. Shown as a soft pill in the OMK card;
"unknown" means unconfirmed, never a failure, so a working hide is
never downgraded. omk-sbh builds stamp the marker file.
KS2 now comes from IKeystoreService.getSecurityLevel(STRONGBOX), the
same question Duck asks, parsed as probe.sh v3 does with the TEE
level as control; the mask flag is only a fallback (KS2SRC says
which). With a real check 4 the variant follows from behaviour:
mask on + hidden = honoured (sbh), mask on + visible = pending
(reboot, or stock OMK). Health check gains that row (sbh.ks2).
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