Skip to content

Commit 5aae545

Browse files
committed
feat(apple): read what an iPhone reports about its own developer tooling
`xcrun devicectl device info details` has always carried two separate answers about a device — `deviceProperties.developerModeStatus` for the Settings toggle and `ddiServicesAvailable` for the developer disk image — and #2682 read the payload for the tunnel only, so both states stayed invisible to the runner. `core/ios-device-readiness.ts` now reads them apart and publishes them through the physical-device control facet, which is the seam the runner already reaches devices through. The parser copies the tool's values without interpreting them; a state it does not recognise stays `unknown` rather than becoming either permission or accusation. `resolveCoreDeviceTunnelIp` now shares that one reader instead of re-running the command. The two reasons are declared as a subset of the startup vocabulary, apart from the rule-driven members, because no amount of tool text establishes them. The captured payload is committed with its device identifiers, hostnames and capture path masked.
1 parent 937ccdc commit 5aae545

11 files changed

Lines changed: 935 additions & 13 deletions
Lines changed: 361 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,361 @@
1+
{
2+
"info": {
3+
"arguments": [
4+
"devicectl",
5+
"device",
6+
"info",
7+
"details",
8+
"--device",
9+
"00000000-0000-0000-0000-000000000001",
10+
"--json-output",
11+
"<json-output>"
12+
],
13+
"commandType": "devicectl.device.info.details",
14+
"environment": {},
15+
"jsonVersion": 4,
16+
"outcome": "success",
17+
"version": "629.3"
18+
},
19+
"result": {
20+
"capabilities": [
21+
{
22+
"featureIdentifier": "com.apple.coredevice.feature.acquireusageassertion",
23+
"name": "Acquire Usage Assertion"
24+
},
25+
{
26+
"featureIdentifier": "com.apple.coredevice.feature.applicationcontrol",
27+
"name": "Application Control"
28+
},
29+
{
30+
"featureIdentifier": "com.apple.coredevice.feature.capturescreenshot",
31+
"name": "Capture Screenshot"
32+
},
33+
{
34+
"featureIdentifier": "com.apple.coredevice.feature.capturesysdiagnose",
35+
"name": "Capture Sysdiagnose"
36+
},
37+
{
38+
"featureIdentifier": "com.apple.coredevice.feature.configurationprofiles",
39+
"name": "Configuration Profile Management"
40+
},
41+
{
42+
"featureIdentifier": "com.apple.dt.serviceconnection.create",
43+
"name": "Create Service Connection"
44+
},
45+
{ "featureIdentifier": "com.apple.dt.servicesocket.create", "name": "Create Service Socket" },
46+
{
47+
"featureIdentifier": "com.apple.coredevice.feature.customizeappearancesettings",
48+
"name": "Customize Appearance Settings"
49+
},
50+
{
51+
"featureIdentifier": "com.apple.coredevice.feature.customizeliquidglass",
52+
"name": "Customize Liquid Glass"
53+
},
54+
{
55+
"featureIdentifier": "com.apple.coredevice.feature.customizeuistyle",
56+
"name": "Customize User Interface Style"
57+
},
58+
{
59+
"featureIdentifier": "com.apple.coredevice.feature.remote.devicecontrol.orientation",
60+
"name": "Device Orientation"
61+
},
62+
{
63+
"featureIdentifier": "com.apple.coredevice.feature.disableddiservices",
64+
"name": "Disable Developer Disk Image Services"
65+
},
66+
{
67+
"featureIdentifier": "com.apple.coredevice.feature.disconnectdevice",
68+
"name": "Disconnect from Device"
69+
},
70+
{
71+
"featureIdentifier": "com.apple.coredevice.feature.fetchappicons",
72+
"name": "Fetch Application Icons"
73+
},
74+
{
75+
"featureIdentifier": "com.apple.coredevice.feature.getauthlistingidentifiers",
76+
"name": "Fetch AuthListing Identifiers"
77+
},
78+
{
79+
"featureIdentifier": "com.apple.coredevice.feature.fetchddimetadata",
80+
"name": "Fetch Developer Disk Image Services Metadata"
81+
},
82+
{
83+
"featureIdentifier": "com.apple.coredevice.feature.getdeviceinfo",
84+
"name": "Fetch Extended Device Info"
85+
},
86+
{
87+
"featureIdentifier": "com.apple.coredevice.feature.fetchdyldsharecache",
88+
"name": "Fetch dyld Shared Cache Files"
89+
},
90+
{
91+
"featureIdentifier": "com.apple.coredevice.feature.filesystemoperation",
92+
"name": "File Handle Operation"
93+
},
94+
{
95+
"featureIdentifier": "com.apple.coredevice.feature.getdisplayinfo",
96+
"name": "Get Display Information"
97+
},
98+
{
99+
"featureIdentifier": "com.apple.coredevice.feature.getlockstate",
100+
"name": "Get Lock State"
101+
},
102+
{
103+
"featureIdentifier": "com.apple.coredevice.feature.getmediastreamserverstatus",
104+
"name": "Get Media Stream Server Status"
105+
},
106+
{
107+
"featureIdentifier": "com.apple.coredevice.feature.getmediasupportinfo",
108+
"name": "Get Support Info for Media Streams"
109+
},
110+
{
111+
"featureIdentifier": "com.apple.coredevice.feature.remote.hid.button",
112+
"name": "HID Button"
113+
},
114+
{
115+
"featureIdentifier": "com.apple.coredevice.feature.remote.hid.digitizer",
116+
"name": "HID Digitizer"
117+
},
118+
{
119+
"featureIdentifier": "com.apple.coredevice.feature.remote.hid.keyboard",
120+
"name": "HID Keyboard"
121+
},
122+
{
123+
"featureIdentifier": "com.apple.coredevice.feature.remote.hid.scroll",
124+
"name": "HID Scroll"
125+
},
126+
{
127+
"featureIdentifier": "com.apple.coredevice.feature.remote.hid.vendordefined",
128+
"name": "HID Vendor Defined"
129+
},
130+
{
131+
"featureIdentifier": "com.apple.coredevice.feature.installapp",
132+
"name": "Install Application"
133+
},
134+
{ "featureIdentifier": "com.apple.coredevice.feature.installroot", "name": "Install Root" },
135+
{
136+
"featureIdentifier": "com.apple.coredevice.feature.launchapplication",
137+
"name": "Launch Application"
138+
},
139+
{ "featureIdentifier": "com.apple.coredevice.feature.listFiles", "name": "List Files" },
140+
{ "featureIdentifier": "com.apple.coredevice.feature.listroots", "name": "List Roots" },
141+
{
142+
"featureIdentifier": "com.apple.coredevice.feature.default.user.credentials",
143+
"name": "Modify Credentials for Default Users for a Device"
144+
},
145+
{ "featureIdentifier": "com.apple.coredevice.feature.tags", "name": "Modify Tags" },
146+
{
147+
"featureIdentifier": "com.apple.coredevice.feature.monitorfilechanges",
148+
"name": "Monitor File Changes"
149+
},
150+
{
151+
"featureIdentifier": "com.apple.coredevice.feature.monitorprocesstermination",
152+
"name": "Monitor Process for Termination"
153+
},
154+
{ "featureIdentifier": "com.apple.coredevice.feature.pasteboard", "name": "Pasteboard" },
155+
{
156+
"featureIdentifier": "com.apple.dt.customer.postdarwinnotification",
157+
"name": "Post Darwin Notification"
158+
},
159+
{
160+
"featureIdentifier": "com.apple.coredevice.feature.processcontrol",
161+
"name": "Process Control"
162+
},
163+
{
164+
"featureIdentifier": "com.apple.coredevice.feature.provisioningprofiles",
165+
"name": "Provisioning Profile Management"
166+
},
167+
{
168+
"featureIdentifier": "com.apple.coredevice.feature.querymobilegestalt",
169+
"name": "Query MobileGestalt"
170+
},
171+
{ "featureIdentifier": "com.apple.coredevice.feature.rebootdevice", "name": "Reboot Device" },
172+
{ "featureIdentifier": "com.apple.coredevice.feature.renamedevice", "name": "Rename Device" },
173+
{
174+
"featureIdentifier": "com.apple.coredevice.feature.sendmemorywarningtoprocess",
175+
"name": "Send Memory Warning to Process"
176+
},
177+
{
178+
"featureIdentifier": "com.apple.coredevice.feature.sendsignaltoprocess",
179+
"name": "Send Signal to Process"
180+
},
181+
{ "featureIdentifier": "com.apple.dt.profile", "name": "Service Hub Profile" },
182+
{
183+
"featureIdentifier": "com.apple.coredevice.feature.servicexpcpeerconnection",
184+
"name": "Service XPC Peer Connection"
185+
},
186+
{
187+
"featureIdentifier": "com.apple.coredevice.feature.simulatelocation",
188+
"name": "Simulate Device Location"
189+
},
190+
{
191+
"featureIdentifier": "com.apple.coredevice.feature.spawnexecutable",
192+
"name": "Spawn Executable"
193+
},
194+
{
195+
"featureIdentifier": "com.apple.coredevice.feature.startaudiooutput",
196+
"name": "Start Audio Output"
197+
},
198+
{
199+
"featureIdentifier": "com.apple.coredevice.feature.startmediastream",
200+
"name": "Start Media Stream"
201+
},
202+
{
203+
"featureIdentifier": "com.apple.coredevice.feature.startvideooutput",
204+
"name": "Start Video Output"
205+
},
206+
{
207+
"featureIdentifier": "com.apple.coredevice.feature.stopmediastream",
208+
"name": "Stop Media Stream"
209+
},
210+
{
211+
"featureIdentifier": "com.apple.coredevice.feature.streamapplist",
212+
"name": "Stream Application List"
213+
},
214+
{
215+
"featureIdentifier": "com.apple.coredevice.feature.streamprocesslist",
216+
"name": "Stream Process List"
217+
},
218+
{
219+
"featureIdentifier": "com.apple.coredevice.feature.transferFiles",
220+
"name": "Transfer Files"
221+
},
222+
{
223+
"featureIdentifier": "com.apple.coredevice.feature.uninstallapp",
224+
"name": "Uninstall Application"
225+
},
226+
{
227+
"featureIdentifier": "com.apple.coredevice.feature.uninstallroot",
228+
"name": "Uninstall Root"
229+
},
230+
{
231+
"featureIdentifier": "com.apple.coredevice.feature.remote.universalhid",
232+
"name": "Universal HID Service Pool"
233+
},
234+
{
235+
"featureIdentifier": "com.apple.coredevice.feature.remote.universalhidservice",
236+
"name": "UniversalHIDService"
237+
},
238+
{ "featureIdentifier": "com.apple.coredevice.feature.unpairdevice", "name": "Unpair Device" },
239+
{
240+
"featureIdentifier": "com.apple.coredevice.feature.viewdevicescreen",
241+
"name": "View Device Screen"
242+
}
243+
],
244+
"connectionProperties": {
245+
"authenticationType": "manualPairing",
246+
"isMobileDeviceOnly": false,
247+
"lastConnectionDate": "2026-09-19T13:16:00.000Z",
248+
"localHostnames": [
249+
"apex-test-iphone.coredevice.local",
250+
"00000000-0000-0000-0000-000000000001.coredevice.local",
251+
"00000000-0000000000000000.coredevice.local"
252+
],
253+
"pairingState": "paired",
254+
"potentialHostnames": [
255+
"apex-test-iphone.coredevice.local",
256+
"00000000-0000-0000-0000-000000000001.coredevice.local",
257+
"00000000-0000000000000000.coredevice.local"
258+
],
259+
"transportType": "wired",
260+
"tunnelIPAddress": "fd1b:bdb2:2626::1",
261+
"tunnelState": "connected",
262+
"tunnelTransportProtocol": "tcp"
263+
},
264+
"deviceProperties": {
265+
"bootState": "booted",
266+
"bootedFromSnapshot": true,
267+
"bootedSnapshotName": "com.apple.os.update-A22D383A04712C2BCB9B7939F83D537AAD06280E44D5508E0212E24B9FE8587F",
268+
"ddiServicesAvailable": true,
269+
"developerModeStatus": "enabled",
270+
"hasInternalOSBuild": false,
271+
"name": "apex-test-iphone",
272+
"osBuildUpdate": "23G90",
273+
"osVersionNumber": "26.6.2",
274+
"rootFileSystemIsWritable": false,
275+
"screenViewingURL": "devices://device/open?id=00000000-0000-0000-0000-000000000001",
276+
"supportsCheckedAllocations": true
277+
},
278+
"hardwareProperties": {
279+
"cpuType": { "name": "arm64e", "subType": -2147483646, "type": 16777228 },
280+
"deviceType": "iPhone",
281+
"ecid": 6836093504208924,
282+
"hardwareModel": "V53AP",
283+
"internalStorageCapacity": 256000000000,
284+
"isProductionFused": true,
285+
"marketingName": "iPhone 17 Pro",
286+
"platform": "iOS",
287+
"productType": "iPhone18,1",
288+
"reality": "physical",
289+
"serialNumber": "C07NWHY2H0",
290+
"supportedCPUTypes": [
291+
{ "name": "arm64e", "subType": -2147483646, "type": 16777228 },
292+
{ "name": "arm64", "subType": 0, "type": 16777228 }
293+
],
294+
"supportedDeviceFamilies": [1],
295+
"thinningProductType": "iPhone18,1",
296+
"udid": "00000000-0000000000000000"
297+
},
298+
"identifier": "00000000-0000-0000-0000-000000000001",
299+
"properties": {
300+
"connection": {
301+
"lastConnectionDate": 811516560,
302+
"pairingState": "paired",
303+
"transportType": "wired",
304+
"tunnelIPAddressString": "fd1b:bdb2:2626::1",
305+
"tunnelTransportProtocol": "tcp"
306+
},
307+
"hardware": {
308+
"cpuCount": { "logicalCores": 6, "packages": 1, "physicalCores": 6 },
309+
"cpuType": { "subtype": 18446744071562067970, "type": 16777228 },
310+
"ecid": 6836093504208924,
311+
"internalStorageCapacity": 256000000000,
312+
"marketingName": "iPhone 17 Pro",
313+
"productType": "iPhone18,1",
314+
"reality": "physical",
315+
"serialNumber": "C07NWHY2H0",
316+
"udid": "00000000-0000000000000000"
317+
},
318+
"software": {
319+
"osBuildVersions": {
320+
"buildVersion": {
321+
"majorLetterComponent": "G",
322+
"majorNumberComponent": 23,
323+
"name": "23G90",
324+
"revisionVersion": {
325+
"components": [23, 7, 90, 0, 0],
326+
"originalComponentsCount": 5,
327+
"stringValue": "23.7.90.0.0"
328+
},
329+
"trainProgram": "iOS",
330+
"updateNumberComponent": 90
331+
},
332+
"supplementalBuildVersion": {
333+
"majorLetterComponent": "G",
334+
"majorNumberComponent": 23,
335+
"name": "23G90",
336+
"revisionVersion": {
337+
"components": [23, 7, 90, 0, 0],
338+
"originalComponentsCount": 5,
339+
"stringValue": "23.7.90.0.0"
340+
},
341+
"trainProgram": "iOS",
342+
"updateNumberComponent": 90
343+
}
344+
},
345+
"osVersionNumber": {
346+
"components": [26, 6, 2, 0, 0],
347+
"originalComponentsCount": 3,
348+
"stringValue": "26.6.2"
349+
}
350+
},
351+
"state": {
352+
"bootState": "booted",
353+
"developerModeStatus": { "enabled": { "mode": 1 } },
354+
"name": "apex-test-iphone"
355+
}
356+
},
357+
"propertyDisplayNames": null,
358+
"tags": [],
359+
"visibilityClass": "default"
360+
}
361+
}

0 commit comments

Comments
 (0)