Skip to main content

shake

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Shake the device — what shake-to-undo, shake-to-report and a debug menu listen for. These call app_shake.

shake​

shake(): Promise<void>

Shakes an emulator or simulator; a real phone refuses.

Examples​

Shake the device​

await device.shake()

The same call from the command line, mobium shake, printed on an Android 15 emulator:

sent a shake on the emulator's accelerometer, ±20 m/s² side to side for about 1.5s, then back at rest; whether the app reacts is up to its own shake detector