| 20H392 |
BlueTool |
callchain |
|
BlueTool AppleBTMgmt selector calls: 0 PowerOn, 1 PowerOff (names inferred from log-string order) |
guess |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool arms a 30 s timer per request; on expiry it takes a stackshot and exits |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool arms a timeout per request; on expiry it takes a stackshot and exits |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool baud-change vendor cmd 01 18 FC 06 ; result checked with opcode 0xfc18 |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool branch target when neither vendor nor internal install (b.ne) |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool btwake on; stores fd, logs error level, no exit |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool connect to the UART kernel control |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool copies the request's Bluetooth address into a buffer; whether its bcm -A command consumes it is unconfirmed |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool draws a random LE address from six one-byte arc4random_uniform calls and logs it as a random address |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool kern.bootargs read for address generator tokens |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool load of the obfuscated MobileGestalt key for the HW model string |
guess |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool power ON = close of the held /dev/btpoweroff fd |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool powers the chip off by opening the btpoweroff device node read-only and keeping the descriptor open in its context |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool puts the UART in raw mode (cfmakeraw), sets the speed and a cflag of 0x38b00 through TIOCGETA/TIOCSETA |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool raw write 01 2E FC 00 (0xfc2e minidriver) with usleep(0xc350)=50 ms |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool raw write of H4 packets on the control socket |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool read/select on the control socket |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool reads the UART CTS line with the TIOCMGET ioctl and logs its state |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool retries with a short sleep (~41 ms) up to 8 iterations while Wi-Fi is not up, logging each iteration |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool runCommandForCurrentConfig: override script lookup only if exactly one of _isVendorInstall/_isInternalInstall; else jumps to builtin step |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool socket(PF_SYSTEM) for kctl com.apple.uart.bluetooth (no .sk.) |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool stat of the override script file |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool status check of the 0xfc2e minidriver reply; chip-name switch follows |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool usleep(0xc350)=50 ms after minidriver cmd |
bin |
|
| 20H392 |
BlueTool |
callchain |
|
BlueTool's XPC reply carries an int64 result, an int64 manufacturer id and a firmware string |
bin |
|
| 20H392 |
BluetoothManager |
callchain |
|
BluetoothManager C callbacks call ObjC methods directly e.g. addDeviceIfNeeded: |
bin |
|
| 20H392 |
BluetoothManager |
callchain |
|
BluetoothManager _attach handleFailureInMethod when shared queue nil on a non-main thread |
bin |
|
| 20H392 |
BluetoothManager |
callchain |
|
BluetoothManager _restartScan calls _BTDiscoveryAgentStartScan: device-list scan, not via a CoreBluetooth session |
bin |
|
| 20H392 |
BluetoothManager |
callchain |
|
BluetoothManager setDevicePairingEnabled: does nothing (no error) while its session object is still nil |
bin |
|
| 20H392 |
MobileBluetooth |
callchain |
|
MobileBluetooth client: bluetoothd dropped first message -> non-dictionary reply -> result 0x515, retry with backoff |
bin |
|
| 20H392 |
MobileBluetooth |
callchain |
|
MobileBluetooth delays a session attach with an exponential retry/backoff on its async attach queue |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
AppleBTHci selector 2 (hci_write) takes a struct input of N items of 16 bytes each |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
BTDiscoveryAgentStartScan starts a classic inquiry in bluetoothd (a session asks for a classic scan) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd 1 s usleep before _exit(1) in the power-init failure path |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd A2DP SDP gate: attr 4 found -> state 4 else state 1 |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd AppleBTMgmt selector calls: 0 PowerOn, 1 PowerOff (names inferred from log-string order) |
guess |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd AudioPipe nexus attrs: SLOT_BUF_SIZE 0x800, TX/RX_RINGS 1, TX/RX_SLOTS 8, MHINTS 2 |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd RX loop skips zero-length slots; RX slots carry raw UART bytes any chunking |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd SIGTERM (15) dispatch source set |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd VSC bitmap init id-9-only branch, not applicable to BCM_4357 |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd XPC listener event handler for the CB mach services |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd accepts the LE report while callbacks exist |
guess |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd adsupport-style Discoverable/Connectable state set, read |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd assert in 0xfd48 parser when the reply has no instance-id byte |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd builds the BlueTool XPC request as a dictionary with a script name (e.g. boot) and the Bluetooth address as text |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd chipset-class reset wrapper: calls virtual slot +0x10 of this then slot +0x8 if 0; no BlueTool call (slot meaning unknown) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd chooses the Skywalk audio path or the shared-memory path through a virtual predicate on the audio device object (predicate not resolved) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd chooses the Skywalk or the plain control transport on one boolean check |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd close of the /dev/btwake fd |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd configures A2DP right after the streaming channel opens |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd connect(fd, sockaddr_ctl, len 0x20) to the UART control |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd creates the AudioPipe Skywalk server channel and logs its registration |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd doesDeviceMatch returns 0 (no match, no log) when the session gate check fails |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd exit(0) tail after the errx gate, reached BEFORE session attach and the runloop |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd exits with status 0 (no Bluetooth) when the device tree local-mac-address is absent or all zero |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd filters duplicate advertisements per session in doesDeviceMatch (a per-session advertisement-data map) and logs the drop |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd function prologue building the 0x110b UUID key |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd gate decision point (BD address + IOService present) at the end of the main preamble |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd kBTAudioMsgPropertyNexusUuid / SkywalkKey property sites |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd keeps looping (no exit) when chip power init returns a non-timeout error, logging that it stays in high power |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd limited-discoverable filter (inactive in the plain scan path) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd logs which service mask it connects to a device and whether the device is paired |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main CFRunLoopRun after server attach |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main attaches its local session (com.apple.bluetoothd) only after the presence gate passes |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main calls CBDaemonServer activate, entering -[CBDaemonServer _activate] |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main first sets its user dir suffix, then sets up its SCDynamicStore |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main reads the BT_DEVICE_ADDRESS environment variable (colon hex) and lets it override the device tree address |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main returns 1 when the local Bluetooth session cannot be attached, printing the error to stderr |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main session attach logs (com.apple.server.bluetooth); never reached when the gate errx fires |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main sscanf of BT_DEVICE_ADDRESS aa cc:dd:ee:ff |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main: IOService name gate (marconi-bt / bluetooth) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main: SCDynamicStore setup after _set_user_dir_suffix |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd main: no-address fallback via sysctl kern.bootargs wlan.debug.generate-mac / wlan.factory, stored in CFPreferences (rule not decoded in 109) |
guess |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd matches the AppleConvergedIPCInterface IOService and dlopens AppleConvergedTransport.dylib (converged-IPC transport) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd matches the AppleConvergedIPCOLYBTControl IOService (transport 7) and rings its doorbell with a scalar IOConnect call |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd new peer connection path; no entitlement/TCC check before the object is built |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd non-sk path creates RxLoop thread after TIOCSETA |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd only logs when opening the btwake node fails and returns without changing the result (silent failure path) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd open of /dev/uart.log (uart.log file); none of its opens takes a bluetooth tty |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd opens one XPC mach-service connection to com.apple.BlueTool per request |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd opens the btwake device node read-only before opening the HCI socket, and closes it later; failure is logged as a BT_WAKE error |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd os_channel_create(uuid) then kqueue + os_channel_get_fd; I/O is on channel rings |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd parses kCBScanOptionAppleFilter* options (Payload, PayloadMask, Rssi, PuckType, ForceDups, Peers) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd power init success: power state 1, return 1 |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd presence gate: if the cu.bluetooth device node is accessible it skips the IOService check (it does not open it) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd presence gate: if the uart.bluetooth device node is accessible it skips the IOService check (it does not open it) |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd puts the Bluetooth address as text under the btaddress key of the BlueTool XPC request |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd puts the stage name under the script key of the BlueTool XPC request |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd read-back of paired devices from keychain |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd reads DT/IOService property transport-speed from the node named bluetooth |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd reference to the sk control name; com.apple.uart.bluetooth does not exist in bluetoothd |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd removes a stale local address from its plist and logs it |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd runBlueTool has an internal-diagnostics override gate before it asks BlueTool to boot the chip |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd runBlueTool use of the com.apple.BlueTool mach service name |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd second client UUID array gate |
guess |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd sends a generic HCI_Reset (opcode 0x0c03) during bring-up |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd setenv call tied to BT_DEVICE_ADDRESS handling |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd socket(PF_SYSTEM=0x20,SOCK_DGRAM,SYSPROTO_CONTROL) for the UART kernel control |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd stores the link key in the keychain as 16 dash-separated hex pairs |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd stores the link key type in the keychain separately from the key data |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd treats a dotted bundle id outside com.apple.* as an app when BackBoardServices has no entry for it |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd tries to dlopen AppleConvergedTransport.dylib, which is absent on this root |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd wait point blocking in CFRunLoopRun when AppleBTHci is absent |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd waits 1 s and exits with status 1 when booting the chip times out or the platform/chipset combination is unknown |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd waits for the AppleBTHci IOService by name matching plus a first-match notification |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd wrapper pattern producing a logged 'VSC failed' only |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd xpc_connection_activate of the com.apple.bluetooth.xpc listener |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd's SDP parser recognises service-class UUID elements (element type 3) and writes a per-record attribute map |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
bluetoothd's singleton wrapper creates the Skywalk nexus provider |
bin |
|
| 20H392 |
bluetoothd |
callchain |
|
with multi-advertising off, bluetoothd uses a single advertising instance and sets the random address itself (HCI_LE_Set_Random_Address, type byte + 6 bytes) |
bin |
|
| 20H392 |
bluetoothd |
selector |
AppleBTHci sel 0 |
AppleBTHci user-client selector 0 = hci_open, no args; item layout not decoded |
bin |
|
| 20H392 |
bluetoothd |
selector |
AppleBTHci sel 1 |
AppleBTHci user-client selector 1 = hci_close, no args; item layout not decoded |
bin |
|
| 20H392 |
bluetoothd |
selector |
AppleBTHci sel 2 |
AppleBTHci user-client selector 2 = hci_write: structIn N x 16-byte items, structOut >= 0x40 B + size word; item layout not decoded |
bin |
|
| 20H392 |
bluetoothd |
selector |
AppleBTHci sel 3 |
AppleBTHci user-client selector 3 = hci_read: structIn N x 16 B, structOut + size (kAppleBTHciRead, EINTR retry); item layout not decoded |
bin |
|
| 20H392 |
bluetoothd |
selector |
AppleBTHci sel 4 |
AppleBTHci user-client selector 4 = hci_transport_reset, no args; item layout not decoded |
bin |
|