API Reference
/- Cloud Phones
- Local API
/
Restart App
Restart an app on a Cloud Phone.
- Preconditions: the phone must be powered on and not held by another member. Whether the app is installed is not checked — a package that is absent simply does nothing.
- Completion: the response confirms the command was dispatched to the service, not that the app restarted. Confirm with
/cloudphone/app/installedListor by observing the device.
- MoreLogin Local endpointhttp://127.0.0.1:40000/api/cloudphone/app/restart
curl -i -X POST \
http://127.0.0.1:40000/api/cloudphone/app/restart \
-H 'Content-Type: application/json' \
-d '{
"id": "0",
"packageName": ""
}'Response
{ "code": 0, "msg": null, "data": true, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }