Skip to content

Run on a Quest

PuppetXR covers interaction tests on the desktop. What it cannot show is how the app runs on a headset: frame rate, heat, the Android build. geppetto device keeps a development Quest fit for unattended runs on a computer it is plugged into, and measures an app on it.

Partly validated on a headset

On a Quest 3 (Horizon OS 210), geppetto device check and the readings watch relies on (model, build, battery, thermal status, wakefulness, the app in front, the frame-rate line from the app's own process) match what it expects, and prepare, a 20 s watch and restore passed. Recovery from sleep, a dropped connection or a dialog, and the Quest 3S, are not validated yet.

What it keeps in check

A headset left on a stand sleeps, raises its boundary, shows blocking dialogs, drops off USB and heats up. Geppetto reads these states over adb and fixes the ones with a safe remedy, mildest first:

Problem Remedy
adb lost the device adb reconnect, then wait for it, up to three times
asleep wake it and report the headset as worn (the proximity sensor broadcast)
auto-sleep, boundary or blocking dialogs back on turn Meta's scriptable-testing properties back on
another activity in front bring the same running app to the front; never start it again
hot before launch wait for it to cool, up to --cool-timeout
will not wake, before launch with --allow-reboot only: reboot

Some problems need a person, so nothing is tried: an unauthorized computer, the wrong model, or a battery below --min-battery that is not charging. Geppetto never factory-resets a device.

A remedy during the measured window makes the run inconclusive: the numbers no longer describe an undisturbed run. A run is never picked up halfway; it is run again from the start. The run fails when the app stops running, when its process is no longer the one launched (it crashed and restarted between two reads), or when the device log holds a crash report for it from this launch; the receipt quotes the crash. An app pushed behind is brought back only while the launched process still lives, because starting it again would hide a crash.

Set up a device

  1. Put the Quest in developer mode, signed in with a test user, and accept USB debugging for the computer once.
  2. Keep the test user's Store PIN where only the runner reads it, such as the macOS Keychain, and give it to Geppetto in GEPPETTO_QUEST_PIN. Geppetto never takes it as an argument and never prints it; it sends it to the device's shell on stdin, so it is in no command line on the computer. On the headset it is an argument of content call, as Meta's interface takes it.
  3. Stand the headset where its cameras see a lit, textured scene, so tracking holds. Power it through a hub that keeps up with it under load.
export GEPPETTO_QUEST_PIN="$(security find-generic-password -s geppetto-quest-pin -w)"
geppetto device list
geppetto device check --serial SERIAL --model "Quest 3"

check only reads. It exits 0 when nothing stands in the way and 1 when it lists problems.

Measure an app

geppetto device watch --serial SERIAL --model "Quest 3" \
  --package com.example.app --apk Builds/app.apk --seconds 120 --warmup 20 \
  --min-fps 70

watch checks the device, turns on what an unattended run needs, installs the APK and checks the device holds exactly that file, starts the app fresh, and reads the device's state every --interval seconds through the warm-up and the measured window. Then it stops the app and puts back what it changed. A runner's cancel (SIGTERM) or Ctrl-C still puts it back.

The receipt, device-receipt.json, sits next to device-log.txt, which holds the device log lines it read. It records the model, codename and OS build, the APK's SHA-256 as the device computes it, every problem and remedy with its phase, and the frame rate over the window. The frame rate comes from the VrApi log line, which arrives once a second: median, minimum, fifth percentile and stale frames. Only lines from the launched app's process, logged after the launch, count. They must cover at least 80% of the window's seconds and leave no stretch longer than 1.5 s without one, at its start, in between or at its end. Reading goes on for 1.5 s after the window, so a freeze in its last second still shows as the missing line that should follow it. An app that stops rendering stops them, so such a window is never a pass. A serial appears only as a hash, also in adb's own error messages. Read device-log.txt yourself before sharing it.

As with geppetto run, three outcomes are kept apart:

  • product: pass when the app ran through an undisturbed window, fail when it stopped or ran too slowly, inconclusive when the device got in the way.
  • evidence_outcome: complete when the window has a frame rate.
  • outcome: pass only when both passed and cleanup succeeded. error means it never reached a window.

Without --min-fps, a pass says only that the window was measured cleanly, not that the frame rate was good enough. With it, a measured window whose fifth percentile falls below the minimum fails the product. The fifth percentile lets a single hitch through but not a sustained drop. Below 20 readings it is the lowest one. Set the minimum against the display's refresh rate, such as 70 on a 72 Hz Quest. The receipt records the minimum in config.min_fps and frames.min_fps. A window without a frame rate stays inconclusive whatever the minimum.

watch exits 0 on a pass, 1 on a failure and 2 otherwise.

Keep a device prepared between runs

geppetto device prepare turns the properties on and reports the headset worn until geppetto device restore. It records exactly what it turned on in geppetto-runs/devices/, and restore turns off only that. A watch run on a prepared device leaves it prepared. Restore a device when you are done with it: the properties survive a reboot, and left on they risk display burn-in and drain the battery.

What it does not show

A pass shows the app ran on this device for this window without a crash and at this frame rate, with the headset still on a stand. It does not show interaction, real tracking or what a wearer sees. Interaction on a device needs input replayed into the app, such as Meta's Tapedeck record and replay.