Move or reset the device clock
emu_clockFast-forward the Android emulator clock to fire long-delay local notifications now, then reset it to host time with automatic time enabled.
Instructions
action "forward" turns automatic time off and moves the device clock minutes ahead, so long-delay local notifications fire now (needs this session's lease: NO_LEASE means emu_start first). action "reset" puts the clock back to host time with automatic time on; it works without a lease and is refused only while another session holds the emulator (BUSY: wait or ask the person). After a forward always call reset, also when the check failed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "emu_clock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avd | No | AVD name (default "unity-test", or the EMU_AVD environment variable of the server). | |
| action | Yes | "forward" (needs minutes) or "reset". | |
| minutes | No | forward: minutes to move ahead (for Unity notifications: past fire time + 1 h). |