Skip to content

Hooks: app_hook in every language, and its capture on MobiumApp - #8

Merged
lana-20 merged 1 commit into
mainfrom
gray-box-hooks
Oct 6, 2026
Merged

lana-20 merged 1 commit into
mainfrom
gray-box-hooks

Conversation

@lana-20

@lana-20 lana-20 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

app_hook arrives in Mobium (mobiumdev/mobium#135): a test calls a function the
app registered with its gray-box library, by name, and gets back what it answered.

  • A canonical scenario, mobium hook raiseToast "Toast raised by test script",
    with its translation in all five clients.
  • capture.py gains its plan entry; the capture is on a Pixel 7 emulator
    (Android 15), MobiumApp launched with --gray-box: the app's own toast at the
    top says what the hook was sent, and Android's system toast below it.
  • data/runs.json gains the run's verbatim output.

Checked locally: every example in all five languages, and the site builds.

mobium hook raiseToast "Toast raised by test script" on an Android 15
emulator launched with --gray-box: the app's own toast, drawn at the top
of the screen, says what the hook was sent.
@lana-20
lana-20 merged commit ae3aba1 into main Oct 6, 2026
2 checks passed
@lana-20
lana-20 deleted the gray-box-hooks branch October 6, 2026 06:51
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