reboot_device
Restart Android devices in normal, bootloader, or recovery modes for development, testing, and debugging workflows.
Instructions
Reboot the device.
mode: 'normal', 'bootloader', 'recovery'
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | normal | |
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:997-1007 (handler)The handler function for the 'reboot_device' tool. Decorated with @mcp.tool() which handles registration in FastMCP. Executes ADB reboot commands based on the mode: normal, bootloader, or recovery. Returns the output from run_adb or an error message for invalid mode.def reboot_device(mode: str = "normal", device_serial: str | None = None) -> str: """ Reboot the device. mode: 'normal', 'bootloader', 'recovery' """ if mode == "normal": return run_adb(["reboot"], device_serial) elif mode in ["bootloader", "recovery"]: return run_adb(["reboot", mode], device_serial) return "Invalid mode. Use: normal, bootloader, recovery"