Skip to content

Update ADB Connection Status

Request

Turn ADB access on or off for one or more Cloud Phones.

  • Preconditions: only phones whose SKU supports ADB are considered; if none of the supplied phones qualifies, the call is rejected. Phones that never had an instance allocated are skipped.
  • Effect: sets the ADB switch with the service and persists it for the phones the service accepted.
  • Partial failure: if some phones succeed and others do not, the call still reports an error. Treat a failure as “some phones may have been changed” and re-read state.
  • Completion: synchronous. Read the connection details with /cloudphone/batchAdbInfo, which only returns data for phones that are powered on and ADB-capable.

Documented business errors: 33350, 33401. See Error Codes for what each code means. Any operation can additionally return the common codes.

Security
Authorization
Bodyapplication/jsonrequired
enableAdbbooleanrequired
idsArray of stringsrequired
POST
/cloudphone/updateAdb
curl -i -X POST \
  https://api.morelogin.com/cloudphone/updateAdb \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "enableAdb": true,
    "ids": [
      "1633612946805630"
    ]
  }'

Responses

OK

Bodyapplication/json
codeintegerrequired

Return result code 0:Normal Other codes are exceptions.

msgstring or nullrequired

Error message

requestIdstringrequired

Operation Request ID

Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }