- API Reference
- Box API
- Devices
Reboot one or more Android phones used as modems
Use this when a phone stops serving its proxy and restarting the app did not help. Sends a reboot to each phone over ADB and counts successes and failures. status is true when at least one phone rebooted.
/androidng/reboot_phoneRequest body application/json · required
ADB serials of the phones.
One ADB serial (older clients).
Authentication
Needs dashboard Basic credentials when dashboard authentication is enabled; trusted callers (loopback, LAN unless "force auth for local" is on, whitelisted IP, allowed Tailscale) pass without them.
Responses
Counts or a refusal.
True when at least one phone succeeded.
The caller is not trusted (not loopback, LAN, whitelisted or allowed Tailscale) and sent no valid Basic credentials. The body depends on whether "Basic auth for all API" is on. Routes that also use the panel login can answer a plain-text 401 "Unauthorized Access" instead.
Unhandled error, for example a non-integer position or a missing required parameter.
Error name, e.g. internal_server_error or bad_request.
Errors returned in msg
| msg | Meaning | What to do |
|---|---|---|
Missing parameters | Neither serials nor serial was sent. | Send serials from GET /androidng/list_device_info. |
An error when reboot | No phone accepted the reboot. | Check ADB authorization and the USB connection. |
(exception text) | An unexpected error; msg is the error text. | Retry; check the box logs if it repeats. |