Skip to content

Developer Image

Overview

HTTP OpenAPI for Developer Disk Image (DDI) operations. Matches script helpers utils · Developer Image (mountDevImage / unmountDevImage / checkDevImage).

After a device reboot the image usually unmounts and must be loaded again. If USB HID sessionStart remounts a newer image and automation then fails, unmount then mount before restarting automation. See USB HID.


Mount developer image

POST /openapi/mountDevImage

{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"
}

Examples

import requests
body = {"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"}
r = requests.post("http://127.0.0.1:8019/openapi/mountDevImage", json=body, timeout=180)
print(r.json())

Response

{
"code": 0,
"msg": "",
"data": true
}

Unmount developer image

POST /openapi/unmountDevImage

{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"
}

Examples

import requests
body = {"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"}
r = requests.post("http://127.0.0.1:8019/openapi/unmountDevImage", json=body, timeout=180)
print(r.json())

Response

{
"code": 0,
"msg": "",
"data": true
}

Check mount status

POST /openapi/checkDevImage

Query only — does not auto-mount.

{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"
}

Examples

import requests
body = {"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"}
r = requests.post("http://127.0.0.1:8019/openapi/checkDevImage", json=body, timeout=60)
print(r.json())

Response

{
"code": 0,
"msg": "",
"data": {
"mounted": true,
"result": true,
"path": "/path/to/DeveloperDiskImage.dmg"
}
}
FieldTypeDescription
data.mountedbooleanWhether the image is mounted
data.resultbooleanSame as mounted
data.pathstringImage path when mounted; empty when not