- API Reference
- Box API
- Devices
Restart the XProxy app on one or more Android phones
Use this first when an Android phone's proxy stops working; it is faster than a reboot. Restarts the XProxy app on each phone over ADB and counts successes and failures. status is true when at least one phone restarted.
/androidng/restart_appRequest 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 restart app | No phone restarted the app. | Check ADB authorization; try POST /androidng/reboot_phone. |
(exception text) | An unexpected error; msg is the error text. | Retry; check the box logs if it repeats. |