ZuneDesktopDecomp · technical design document · as built
How the Zune 4.8 desktop client syncs with a Zune
The design we recovered from the binaries: music, podcasts, audiobooks, video and pictures; firmware updates; games, apps and XNA. Device focus: Zune 30 “Keel” on firmware 3.30.
Status: static analysis only, nothing captured yet. Every statement was read in decompiled code or data of the desktop modules and the Keel 3.30 firmware, or reasoned from them, so every wire sequence below is a prediction. We know which code issues an operation, not yet which MTP operation the driver picks for a WPD call, what the device answers, how packets are framed or how long anything takes. Capture day (§12) settles those.
protocol/EVIDENCE.md, which holds the rest; Module!0xADDR an address in the Ghidra export
1Executive summary
The client has one road to the device. ZuneNativeLib.dll, the client's only module that talks to a Zune, opens the device's private interface through the inbox WPD API (Windows Portable Devices, the object API and driver model behind MTP on Windows) and sends every MTP operation as a WPD command. ZuneDriver.dll, a WPD driver in the user-mode driver framework (UMDF 1.9), maps standard WPD calls to MTP operations of its own choosing and passes vendor operations unchanged to an MTP engine over WinUSB. On the Keel MtpSvc.dll answers from a media library the PC never writes directly. In Android terms the PC is a libmtp-style initiator and the Zune is MtpServer over a gadget function, except that the host owns the metadata and the session is authenticated cryptographically. CODE
- Trust. Every connect runs MTPZ, Microsoft's certificate-based handshake that authenticates the PC to the device (
0x9216,0x9212out,0x9213in, a second0x9212above protocol version 1): protected ZuneSH.dll on the PC,CMtpzSessionwith keyvault.dll on the device. On Keel 3.30 it gates content reads, the XNA channel and the trusted session0x9214/0x9215that brackets each sync pass, keyed by a 16-byte value from ZuneSH CODE. No exported Keel write handler tests the trusted flag, so Keel's write paths are likely ungated INFERRED. - Pull, plan, push. The PC pulls the whole device database (
0x9217, at most 16 MiB) at connect and at every sync start, plans against its library and pushes MTP objects; device-side edits return through0x9218and0x9219, for a partnered device (one set to sync with this PC) only. CODE - One transfer path. Per file: a 530-byte
0x922Arecord, SendObjectPropList0x9808(predicted for Keel INFERRED) and a streamed SendObject0x100D. Albums, playlists and podcast series are property-only objects tied to tracks with0x9811; deletes are0x100B. CODE - Media types differ only in preparation (format, meta-genre, folder, properties, art); audiobooks are audio tracks with meta-genre
0x12and no resume position from the PC. Video and pictures are fitted to the Keel on the PC: WMV up to 320×240 at 1.75 Mbit/s and JPEG up to 640×480 pass, the rest goes through ZuneEnc.exe or WIC, and the PC makes the thumbnails. CODE; INFERRED for which files a Keel needs transcoded. - Firmware is host-driven file replacement. Cab members are staged as hidden
0xB802objects; on0x9204the device renames them, not atomically across files, and cold-reboots inside the transaction. Success is a version-string match after reconnect. CODE - Games. Classic games ride in the firmware cab, and Zune HD apps sync as
0xB217intoApps\. XNA Game Studio's own client, XnaTransZ, reaches the device through WMDM (Windows Media Device Manager, the older media-device API), ZuneSP and the same driver: a parameterless0x9220, MTPZ if the Keel answers0x200F, a second0x9220carrying the value the Zune client sends in0x9214, then deploy, launch and debug streams in 1,264-byte packets over0x9222/0x9223. CODE; INFERRED for the0x200Fanswer and the debugger. - Verification and risks. pktmon records the USB/IP stream, the decoder (154 of 154 offline tests) makes op logs, and S0, a one-minute smoke test, comes first; until then every wire sequence is unverified and the test Zune's firmware version unknown. One bulk wait is capped at about 30 s even while the device reports busy CODE; ZuneSH's Microsoft-root caller check may refuse a rebuilt ZuneNativeLib (§13).
2Scope and non-goals
Subject. The Zune desktop client 4.8 as installed in the test VM, against a Zune 30 “Keel” (USB 045E:0710, bcdDevice 0x0100). The device side was read from the official firmware 3.30 image (03.30.00039.00-00435); the test Zune's own version is not yet known (S1 reads it), and every device-side prediction assumes 3.30. Keel shares the classic endpoint class with Scorpius and Draco. Zune HD, pmx and Windows Phone appear only where the desktop branches for them (device side UNKNOWN).
- DRM-OOS WMDRM-PD (
0x9101–0x910B), AAVT, WMDRM-ND, licences, the secure clock, metering and Audible DRM: name, location and entry points only. - MTPZ is in scope: it authenticates the initiator and is not content DRM (C-06), although the Keel gates content reads on it (§5.4). Its keys and certificates are credentials, recorded here neither by bytes nor by location (
DEVICE-LAYER.md§7.8 and §14.2 hold the locations). - ZuneSH.dll is protected code: its exports and inner methods enter a code-protection runtime (
notes/ZuneSH.md). It stays pristine, and nothing here concerns undoing that. - Wireless sync (never instantiated, not captured), Windows Phone's TLS channel and the UI appear only where they touch sync.
3System architecture
CDeviceAccess as a WPD command, enters the kernel twice (WUDFRd into the UMDF host, then WinUSB) and on the Keel climbs from the USB function to a handler. Only ZuneSH.dll computes MTPZ on the PC; nothing below ZuneNativeLib touches it. The IOCTLs are 0x40C108 (read/write) and 0x404108 (read).3.1The PC stack
ZuneShell.dll decides when to act and never touches a device API; ZuneDBApi.dll is a C++/CLI shim of raw vtable calls into ZuneNativeLib. ZuneNativeLib holds the design: a CEndpointHost per device, four endpoint classes for the connection life cycle, CSyncEngine for passes and CZuneFirmwareUpdater for firmware. All reach the device through DeviceAccess::CDeviceAccess (56-slot IDeviceAccess), which owns the IPortableDevice handle and a device lock. Each raw operation gets a fresh CWpdMtpCommand that builds the WPD_COMMAND_MTP_EXT_* parameters and holds the lock for the whole transaction. CHandshakeHelper reaches ZuneSH through an in-process stub that MACs and encrypts each call (a secure authenticated channel, SAC). The ZMDB handler touches the device only through IDeviceAccess slots 40 (0x9217) and 46 (a raw 0x9218). CODE nl-device-023
Below the API the stack only carries traffic, of two kinds. Raw MTP (op code, up to five parameters, a data phase) travels in the WPD_COMMAND_MTP_EXT_* commands and passes the driver unchanged, so the code fixes the wire operation; the handshake and most vendor operations take this route, like calling android.mtp.MtpDevice directly. WPD content calls (create with properties and data, set properties, delete) name objects by string ID (“o” + hex handle) and properties by a (fmtid, pid) key, and the driver picks the MTP operations, as MtpDocumentsProvider does on Android; that choice is why this document marks them predicted. ZuneDriver, with one sequential queue, opens the MTP session at PnP start, gates requests (§5.5), serves a private command category (owner info, pass-through, cloud sync, format) and hosts the internet pass-through. ZuneMTPZ sequences transactions with no MTPZ code, retries or timeouts. CODE driver-041
3.2The device stack
The Keel runs Windows CE from nk.bin. MtpClientDrvUsb.dll, a CE stream driver (MUT1:, CE's counterpart of a /dev node) registered as the USB function, answers the MS OS descriptors and Still Image class requests itself. MtpSvc.dll, loaded by services.exe at boot, stacks an attach loop, CMtpSessionLayer, one engine per transport and CMtpResponder, which classifies each operation into a transfer kind (0 refused, 1 no data, 2/3 host-to-device, 4/5 device-to-host, each streamed or buffered) and calls that kind's begin and end handlers. CMtpzSession, the device half of MTPZ, uses CryptoAPI and keyvault.dll; behind the handlers sit zmedia, znet, zam, zserial and wmdrm DRM-OOS, with roles INFERRED from imports. CODE fw-005
3.3One path for the Zune client
The Zune client has one path, its own WPD client. The WMDM route through ZuneSP.dll, the install's WMDM service provider (a plug-in loaded into the caller's process, like a passthrough HAL), is dormant for it: no binary of the install calls ZuneSP's device gate (export ordinal 3001; until it receives the right 16-byte block, ZuneSP reports no devices). XNA uses the route: in the VM, XNA Game Studio's XnaTransZ.dll loads ZuneSP, calls ordinal 3001 and drives ZuneSP's handshake helper (§10), so a rebuilt ZuneSP must keep serving it. That the call opens the gate, which would make XnaTransZ a client ZuneSP was built for, is INFERRED: ordinal 3001 returns S_OK whether or not the block matches; capture S8 (§12) shows the gate open if XNA's Device Center lists the Zune. CWMDMDeviceAdapter is ZuneNativeLib's own IWMDMDevice over WPD for the DRM components DRM-OOS. Discovery skips the WPD manager too: SetupDi and RegisterDeviceNotification (roughly a udev scan and subscription) on the two Zune private interfaces only. CODE nl-sync-001, xna2-013
3.4Mapping to Android, and where it breaks
| Zune | Android / Linux | Where it breaks |
|---|---|---|
| MtpClientDrvUsb.dll, the CE USB function; compat ID “MTPZ” | f_mtp or FunctionFS ffs.mtp; compat ID “MTP” | Answers the MS OS descriptors itself and reports Device_Busy 0x2019 during every command; the string keeps the inbox MTP driver away. |
MtpSvc CMtpResponder over zmedia | MtpServer, MtpDatabase, MediaProvider | Runs in services.exe from boot; transfer-kind dispatch behind mode gates; MTPZ plus about 60 vendor operations. |
| ZuneDriver + ZuneMTPZ + transport | The inbox Windows MTP class driver that an Android phone in MTP mode binds to | Lineage inferred. Adds an exclusive owner, private commands, 0xD406, 0x9216 on release and a PPP pass-through. |
| WUDFRd + UMDF host | FUSE: kernel shim, user-space server | Android's user-space USB access (UsbDeviceConnection, libusb) has no framework that hosts a driver in its own process and publishes the device to other apps. |
| Driver's exclusive owner | claimInterface | Per WPD client process; the first command wins; release resets the device's MTPZ state. |
keyvault.dll (KEY1:) | Keystore behind a TEE | Role only; hardware backing not established. |
| ZMDB generation number | MediaStore.getGeneration() | The whole database is pulled before the number is checked; deltas come through 0x9218. Android never exposes its database over MTP. |
PPP over 0x922B–0x922D | USB (reverse) tethering | No extra USB function or interface: polled bytes inside MTP transactions. |
0xB802 staging, 0x9204 commit | Non-A/B OTA | In place, file by file, no slots or rollback; MtpSvc's staging and commit code checks no signature (the boot path: UNKNOWN, §9.3). |
4Transport and protocol
4.1Binding and pipes
Before any Zune code runs, the Windows USB stack reads the MS OS 1.0 string descriptor 0xEE (“MSFT100”, vendor code 0xFE) and the 40-byte extended compat-ID descriptor naming “MTPZ”; the hardware ID USB\MS_COMP_MTPZ then binds Zune.inf, and the vendor-class interface (0xFF) matches no class driver. The transport requires bulk-OUT, bulk-IN and interrupt-IN on alternate setting 0 (else 0x800700E6), uses bInterfaceNumber as the wIndex of class requests and sets PIPE_TRANSFER_TIMEOUT to 0 on all three pipes, so WinUSB never times out a bulk transfer (pipe 0 gets 30 s). The Keel's endpoint addresses, wMaxPacketSize (MPS below) and bus speed are not in the record UNKNOWN; the transport discovers the pipes at open, and S0 and S1 show them. CODE fw-003, transports-012
4.2Containers and framing
Figure 2 carries the host's rules. Two are easy to miss: the header-split mode is decided once, on the first data-in phase (normally 0x1001), and a response found in the final short read of a data-in phase is kept, so a device that omits the ZLP is tolerated. CODE transports-013..018
The Keel's engine writes its data header separately and adds a ZLP after a payload that is a non-zero multiple of what is most likely the MPS; a zero-length payload gets no data container at all, and inbound it consumes the host's ZLP by the same rule. Both sides therefore agree on split framing; combined framing would make their ZLP rules disagree. CODE, INFERRED for the packet-level effect. MtpSvc.dll!0x0360ca64
4.3Waits, heartbeat, cancel and recovery
The Keel reports 0x2019 for every running command, and the slice counter of Figure 2 is never reset within a wait, so the tenth slice, about 30 s in, cancels with E_WPD_DEVICE_IS_HUNG even while the device is busy (the event log claims 5 minutes). Response waits count too, so this is the likeliest failure for slow device operations (§13). A reset ends in a synthesized 0x400B that makes the driver drop all contexts. ZuneNativeLib maps device-gone errors to 0xC1010007 and the hang to 0xC1010009. On ERROR_GEN_FAILURE it probes liveness with 0x1015 of 0xD22F, which a Keel cannot answer INFERRED (§13). CODE transports-024..027
4.4Limits, and MTP/IP
Buffered data-in datasets are capped at 100 MiB; streams are not. Lengths are 32-bit and the Keel rejects a 0x9808 with non-zero size-high (0xA809), so no object reaches 4 GiB. Commands and responses carry at most five parameters, events three. TIDs are 0 outside a session, then run from 1 to 0xFFFFFFFE and wrap. ZuneIPTransport.dll runs the same interface over PTP/IP (two TCP connections to port 15740, no keep-alive of its own) against MtpClientDrvIp.dll; no wireless device was ever instantiated here. CODE
5Session establishment and trust
0x400C event stops at the driver, which makes it a WPD event. Device arrows are predicted from the issuing code; dashed ones are an inferred driver choice or, for the event, an untraced trigger.5.1Driver start-up
CMtpWrapper::Initialize issues the first three operations and WpdBaseDriver::Initialize the fourth, all before any client can open the device (Figure 3, band A). OpenSession gets up to three attempts, with one reset-and-retry on 0x201E or 0x2004, and the cached GetDeviceInfo later answers supported-property checks. 0xD406 is written only because DeviceInfo lists it, and where the device compares it with its HostInclusionList (“MTPZClassDriver”) was not traced UNKNOWN. 0x1014 of 0xD22F goes out unchecked and should fail on a Keel (0x200A, INFERRED). Every D0 exit tears the session down again (§13). CODE C-18
5.2Client open and ownership
ZuneNativeLib gives each Zune USB or IP interface path its own CDeviceAccess, which opens the device with client information (process name “Zune”, file version, a quality-of-service value and two WMDRM credentials DRM-OOS), advises an event callback and enumerates the root, presumably as 0x1004/0x1005 INFERRED. Ownership is first-come per process: the first process to send a command becomes owner, and every other process gets 0xCAFE0001. Private command 1 reports the owner even to a refused client, whose CDeviceAccess then stops. The vendor-op list (55 codes on Keel 3.30), the extension string and the device class come from the driver's cache (Figure 3, band B). CODE driver-038
5.3The MTPZ handshake and the trusted session
EstablishConnection runs the handshake right after the open and abandons the connection if it fails (0xC1010007). It always forces a fresh exchange (Figure 4) and takes its message sizes from ZuneSH, not from constants. Whether v > 1 on this pair (so whether the confirmation is sent), and which 0x9212 starts the device sync session, are UNKNOWN. The handshake reruns after every re-arrival. CODE nl-device-035
By name only. ZuneSH uses plaintext AES (rijndael-alg-fst), SHA-1, MD4, RC4, a big-number library and a CryptoAPI-style RNG from protected code, and holds a Microsoft-root caller check (§13). The device uses CryptoAPI, public AES tables and keyvault.dll. libmtp describes 1024-bit RSA, AES-128-CBC and AES-CMAC with a 785-byte certificate message, unverified for ZuneSH; S1 compares lengths only. INFERRED
Trusted session. Seventeen CSyncEngine functions call EnsureSyncSessionOpened, which opens the session once per pass (Figure 4, bottom). 0x9215 goes out at the end only if this pass opened the session, tolerating device-gone errors. ResetHandshake sends 0x9215 if a session is open, then 0x9216, and zero-fills the stored certificate. CODE nl-device-037, C-28
5.4Device-side gating on Keel 3.30
CMtpzSession_IsHandshakeComplete has exactly five direct callers: 0x9214, 0x9215, GetObject 0x1009, GetPartialObject 0x101B and XnaDebugOpenSession 0x9220; the 16-byte check has two, 0x9214 and 0x9220 (XNA's session open, §10). GetObject and GetPartialObject test MTPZ mode and the handshake, not the 0x9214 flag. No exported MtpSvc function (124, among them the classifier, 0x9204 and the sync write handlers 0x100B, 0x100C/0x9808, 0x100D, 0x922A, 0x9232, 0x9804, 0x9806, 0x9811) reads that flag or the sync-session flag, so on Keel 3.30 the sync write paths are not gated on 0x9214 at handler level INFERRED; the 1,943 non-exported functions are not excluded. Without a session, 0x2003 is stored but the operation still runs. CODE fw-008
Android lensAndroid's gate is consent for the whole session (unlock, choose File transfer). The Keel's is cryptographic and narrow: enumeration works before the handshake, and so do writes as far as the exported handlers show, but content reads do not.
5.5Driver-side gating
Three gates apply. ProcessWpdMessage, on the queue's IOCTL path, checks each command against a 92-entry access table (pure reads need read access, everything else read/write; a mismatch is E_INVALIDARG). DispatchWpdMessage then applies the exclusive owner, unless DisableExclusiveAccess is set, and for non-USB transports an allow-list: the client name must start with an entry of WirelessSyncAllowedApplications (default “zune”). When the owner's last handle closes, the driver sends 0x9216, the only MTPZ code it ever emits, posts a private “owner closed” event and re-arms the pass-through timer. CODE driver-042
Events climb from interrupt-IN through two 1000-entry queues, the engine's and the driver's. The driver turns standard events into WPD events, hands 0xC701 only to the pass-through adapter and wraps any other code as a vendor-extended WPD event. ZuneNativeLib ignores standard events; a vendor-extended event or the private event re-fires arrival (a new CDeviceAccess, a full handshake) unless a registered cloud-sync handler swallows vendor events. On a Keel that leaves 0xC702, whose raiser is UNKNOWN; that it would re-fire arrival is INFERRED. CODE nl-device-050, nl-device-053
6Data model
0xD401, 0xD406, the 0x9231 proxy record) the PC changes only the MTP object store, through the push and the ingestor's purchase-flag reset; 0x9218 and 0x9219 return device-side changes for a partnered device only.6.1Stores, objects and properties
The PC library is SQL Server Compact 3.5 (rebranded as ZuneDB, ZuneQP and ZuneSE) in ZuneStore.sdf. Figure 5 lists its sync tables (CODE for the names, INFERRED for the semantics); tblDeviceContent holds one row per item per device with the MTP handle. On the device, MtpSvc's object store sits on zmedia.dll, whose item, attribute, thumbnail and playlist calls (ZMediaLib_*) it imports; the handler-to-call mapping is not traced.
Media files are ordinary MTP objects, and structure lives in property-only objects (Figure 7, bottom). Properties are standard MTP plus 28 Zune vendor properties in 0xDA92–0xDAC6, mapped through a 56-entry attribute table and the driver's 170-entry key table. The Keel has one storage, with the OS on \Hard Disk and data on \Hard Disk2. CODE nl-sync-046
6.2The device database image
0x9217 (selector 1) streams zunedb.dat whole. The handler checks the “ZMDB” and “ZMed” headers (size equal to the transfer length, 4-byte aligned) and a reflected CRC-32 over the image, computed with the CRC field set to all ones; record 0x05FFFFFF holds the generation number. A wrong magic, version, size or header size fails the load with E_FAIL, a “ZMed” mismatch with 0x8007051A and a CRC mismatch with 0x80070017; a refused image also skips the 0x9218 round trip (the rest was not traced). The image is transferred every time, but only a changed generation number (or ReingestZMDB) makes the ingestor walk the items, after which rows of vanished items are dropped INFERRED. CODE zmdb-015..027
6.3Device-side changes and partnership
0x9218 runs at connect with (0, 0, 5000) and no vendor-list gate and returns a count plus modified-item handles (a second list is empty on the Keel); the response parameter is read but unused, so there is one page per ingest INFERRED. The ingestor applies each item's device properties to the library, reports purchase requests, takes a playlist change only if the device's copy is newer and turns series changes into unsubscribe decisions (the last two INFERRED). Purchase flags are then reset with 0x9214, a 0x9804 of 0xDAB4 per item, and 0x9215. Which track fields come back is UNKNOWN; the help pages say device ratings reach the PC. 0x9219 runs once per pass, paged as (0, start, 5000), and its handles become copy-backs through 0x1009. Partnership lives in 0xD401 (Figure 5); how the host derives relationship 2 or 3 from it is UNKNOWN. CODE zmdb-002, nl-sync-045
7The sync engine
7.1Triggers and planning
ReadyForSync calls BeginSync, which runs if the device is ready and not locked and the user did not stop the last sync. A drop on the device tile presumably reaches UIDevice.AddSyncRule INFERRED, which adds one rule per item and syncs, so a “manual” item is still a rule row. Rule edits restart the sync, a drained download queue starts one on every connected device, and a live-sync thread may react to library changes (60-s throttle, INFERRED). All end in CSyncEngine::StartSyncInternal. Where the SyncOnConnect setting gates the automatic sync is UNKNOWN. CODE interop-024
0x9808/0x100C + 0x100D, 0x100B, private commands). Dashed: the mapping or the step is inferred (0x9806/0x9804, the 0xDC86 write, 0x1009, the inbox sync). States (ESyncEngineState): 2 rules, 1 beginning, 8 acquired items, 6 updates, 4 transfer, (11) awaiting a pending transcode, 19 metering, 20 complete.The preparation thread re-ingests the database (DoAction 5, without 0x9218) and evaluates the rules (CSyncRules) against tblDeviceContent; the list builders follow in a fixed order, and the transcode decision is made in the add/update/replace list. Each item ends up with one operation: Send, Delete, UpdateMetadata, CopyFrom, Hijack or ReplaceContent (DeleteObject + SendObject, or 0x9232). Guest-content adoption and the gas-gauge forecasts (the gas gauge is the client's capacity meter) run after the worker is signalled. The worker opens 0x9214 once, repeats Figure 6's steps while a new request arrives during the pass (its wake event is signalled again, INFERRED), stops on an error or abort, then sends 0x9215 once; metering and cloud sync run only in an iteration with no request pending. The inbox sync needs an account inbox and is not expected on the test bed. CODE; INFERRED for what hijack and forecast mean and for the re-ingest preceding 0x9214 on the wire. nl-sync-027
7.2Per-item transfer
TransferItem fails a missing source with 0xC00D1197, and an item larger than the actual gas gauge with 0xC00D124F (metadata-only operations are exempt). TransferFileToDevice fills the per-type property table (§8) and sends the 530-byte 0x922A record: state (0 send, 1 copy-back, 2 delete), percent at item start and end, items done and total, and up to 255 UTF-16 characters of title. The Keel insists on that exact size and on sane percentages (else 0x201D) and shows the record through znet. CODE nl-sync-030
WPDSendObject places the object (Figure 7), creating missing folders as property-only objects, looking up a same-named child (0x9805, INFERRED) and cutting the file name to 238 characters plus the extension; protected content takes a separate stream DRM-OOS. The driver's PrepareForSendObjectPropList moves format and size into the operation parameters, substitutes 0x3000 for an unlisted format and refuses an Association; the driver then sends 0x9808 if the device supports object properties and lists 0x9808, as the Keel does, else 0x100C, and 0x100D streams the file. The Keel requires size-high 0 (0xA809) and exactly the announced length (0x2015), and its end handler commits or deletes. CODE, INFERRED for the branch on a Keel. driver-070
7.3Albums, playlists and deletes
Tracks carry no art of their own. After each transferred track with an album, UpdateTracksAlbum creates the property-only 0xBA03 object with its art if it is missing, otherwise updates it when needed, and adds the track to the album's references (0x9811). The art is resized to the device's cover size and sent as a WPD album-art resource (EXIF, JFIF as fallback), which the driver stores as 0xDC86 through a 0x9804 INFERRED. Playlists are 0xBA05 objects with name, GUID and kind (0xDAC4) plus 0x9811 references; creating or updating one sends no 0x922A, and one whose tracks are all gone is deleted like any object. A delete sends 0x922A with state 2, then 0x100B on the object and on each parent until a folder is not empty. The Keel requires a zero format parameter (0x200B) and posts 0x4003 later. CODE nl-sync-037, nl-sync-042
7.4Cloud sync, errors and clocks
With cloud sync enabled (the default), the PC online and the capability present, private commands open the pass-through link (without 0x9231) and send 0x9230(1). They poll 0x922F every second until done or until 90 s pass without progress, send 0x9230(2) and close the link. The driver copies the 0x922F answer into a 0x420-byte stack buffer at the device-reported length, unbounded (the record is 0x40C bytes; a longer answer would overflow), and the rule is to reproduce that, not fix it. How often the block runs per pass, and what the device answers, are UNKNOWN. CODE C-26
0x80045009 rewinds and retries a copy up to four times, and 0x8004500F requeues an item once. Results go to UpdateItemStatus and reach the UI through tblSyncErrorMappings INFERRED. Responses 0x2000–0x201F map to 0xC00D0709–0xC00D0727. Besides the transport's 30-s wait, the engine's own limits are the 45-s wait for the capability object and the 90-s cloud-sync idle limit; it also polls 0x922F each second and throttles live sync to 60 s. CODE
8Music, podcasts, audiobooks, video and pictures
0x40–0x42, which sends an episode to Podcasts\ whatever its format. ASF, without a category, dead-ends in the bottom row; Audible files take a registry path whose values are unknown (grey).| Type | Properties | Art | Transcode to |
|---|---|---|---|
| Music | 15 pairs: Name, GUID 0xDA97, Artist (plus the artist handle 0xDAB9), Album Artist, Album, Genre, Track, disc 0xDAB8, Duration, Meta Genre 0x01, DRM status, Date Authored, Rating, 0xDABC, phonetic title 0xDAC6. No bookmark, play or skip count. | Album object | WMA 0xB901 |
| Audiobook | The music set with Meta Genre 0x12. | Album object | WMA |
| Podcast episode | 10 pairs: Name, series title 0xDA9A, Artist (author), Duration, Time Bookmark 0xDD62 (ms), played 0xDA9B, Description, Date Authored, URL Source 0xDD60, Meta Genre 0x40/0x41; series handle 0xDA9E. | Series object | WMA or WMV |
| Video | 15 entries: Name, GUID, series title, Artist, Duration, Meta Genre (TV 0x26, movie 0x25, music video 0x23 …), Description, Date Authored, DRM status, Rating, Parental Rating, season 0xDAB5, episode 0xDAB6, Time Bookmark, phonetic title. No width, height, codec or bit rate. | Own thumbnail | WMV 0xB981 |
| Picture | 9 entries: source-path hash 0xDA99, Name, Meta Genre 0x30, Date Authored (date taken, local time), Rating, latitude 0xDAC0 and longitude 0xDAC1 (degrees × 3,600,000), Width, Height. | None on Keel (predicted) | JPEG 0x3801 |
8.1Music and podcasts
Figure 7 gives the audio typing (.m4a and .m4b pass through an internal MP4 code, 0xB982). A cached flag or CTranscodeEngine decides per item. A file outside the device's capability is transcoded to WMA and renamed .wma, and so is an audio-only file above a bit-rate threshold (configuration defaults 320 for the threshold and 192 for the target, unit not recorded). WAV and AIFF are not Keel playback formats; sent untranscoded, they would be relabelled 0x3000 INFERRED. CODE
Podcast episodes (PC media type 0x11) are ordinary audio or video files on the wire. UpdateSubscriptionSeries first creates or updates the 0xBA0B series object: name, GUID, author, feed URL, description, subscription state 0xDA9C, playback order 0xDA9D, the episodes-to-sync count 0xDABE and art. Bookmarks travel in milliseconds (the library keeps 100-ns units). Series changes return through 0x9218, and episodes whose bookmark changed are re-sent as metadata (INFERRED from rule names). CODE
8.2Audiobooks and Audible
An audiobook is an audio track of library category AudioBook: it has its own sync category and metrics but the music property set, Meta Genre 0x12 and the music folder. The audio table has no bookmark entry and updates reuse it, so the PC never pushes a resume position; whether one comes back is UNKNOWN. CODE
DRM-OOS Audible is fenced. The Keel advertises “audible.com: 1.0” and the formats 0xB904 (.aa) and 0xB301 (.aax). Its database has Audible product attributes no PC code reads, and its image carries a third-party audible.dll. On the PC, .aa and .aax miss the extension table and fall to registry lookups (values UNKNOWN), then to 0xB900; 0xB904 and 0xB301 are never produced and would fail with 0x80070032. No analysed desktop module (a string scan of the 18 export sets) contains Audible licensing code.
Android lensAndroid's scanner sets IS_AUDIOBOOK and IS_PODCAST on the device from the file's folder and tags, and players keep BOOKMARK there. Here the PC sets the meta-genre (0xDC95) and, for episodes and video, the bookmark (0xDD62), and the device keeps what it is told INFERRED. Thumbnails invert as well: the host makes and pushes them, and Keel's GetThumb is an unadvertised stub.
8.3Video
On first use a worker builds the device capability object (the engine waits up to 45 s) from the supported formats and a WMDM-style capability per relevant format (8 of 11 on a Keel); on the wire that is 0x9801/0x9802 and perhaps 0x9807 INFERRED. The Keel's firmware registry allows WMV and ASF up to 320×240 (step 2) at 15–30 fps, 1.5 Mbit/s video and 1.75 Mbit/s total, FourCC WMV3, WMV1, WMV2, WMVP or WVP2 with WMA audio, in four interdependent profiles. CTranscodeMatrix tests a file's codec, size, rates and profile against that envelope. CODE
A misfit goes to ZuneEnc.exe, an out-of-process COM server (WMV3, quality 50, a key frame every 4 s). ZuneEncEng.dll, a Windows Media Encoder derivative, sits beside it; neither is analysed. While the output is pending (cached, and EFS-encrypted when the source is), the item waits (state 11) or is deferred, and a failure ends as 0xC00D123B. MP4, M4V and MOV become 0xB216, which Keel 3.30 lacks, so they reach a Keel only transcoded; an untranscoded ASF has no category (both INFERRED). Default optimization: Size on classic devices, Quality on Zune HD, WVGA on Windows Phone. CODE ZuneNativeLib.dll!0x1806b42c0
8.4Pictures, thumbnails and reverse sync
The Keel lists only EXIF/JPEG at up to 640×480, so other image formats and larger JPEGs should be transcoded INFERRED. WIC (or GDI+ when PhotoTranscodeUseWIC = 0) takes the first frame, fits it keeping aspect and writes JPEG (quality 0.9, metadata kept). Pictures land under Pictures\, mirroring their path below a monitored photo folder or another known root; no 0xBA02 albums are created. Thumbnails are made on the host at the per-format sample size the device advertises and written after the object: on the Keel at most 240×240 JPEG for video, album, series, user card and audio formats and none for JPEG, so pictures should get no thumbnail INFERRED. CODE
Reverse sync copies items back on request (Device.ReverseSync, slot 26). The automatic user-content import knows only Windows Phone camera folders, so a Keel queues nothing INFERRED. Each item gets 0x9214 if needed, 0x922A with state 1 and a ProtectionStatus check (0x8D04 refused), then GetObject 0x1009 INFERRED, which the Keel refuses before the handshake (0x200F); without GetPartialObject there is no resume. Free space comes from the root storage's WPD properties (0x1005 behind them, INFERRED); the Keel reserves 24 MiB for its DRM store and 1 MiB for album art. CODE nl-sync-043, nl-sync-044
9Firmware update
9.1Catalogue, offer and download
CZuneFirmwareUpdater runs tasks 2–6 per endpoint for classes 1 and 2. Rows in tblDeviceFirmware carry the key of Figure 8; for classic devices FamilyId is ModelId (0xD21A) >> 24 (0 Keel, 2 Scorpius, 3 Draco). The baseline FirmwareUpdate.xml is parsed only when ReinitializeFirmwareTable is set. On this install that value sits in the WOW6432Node view, which the x64 client does not read, so the file is most likely never parsed INFERRED. The online fwlink catalogue (on a forced check, otherwise at most every 72 h; 45-s timeout) is gone, and UseLocalFirmwareUpdate substitutes a local file. CODE nl-firmware-005..017
An update is offered when the device's version string sorts below the catalogue's, ignoring case. A Keel on 03.30.00039.00-00435 therefore gets none, but class 1 always gets a Games item (§10). Any offer also needs a catalogue row the x64 client can read, and even the Games item needs the cab. With the baseline file most likely unread and fwlink gone, whether this install can offer either is open, and on a Keel already on 3.30 the Games item would be the only natural trigger of the 0xB802/0x9204 path (§13). The wizard shows the catalogue EULA and warns on PC battery; no device-battery check was found. BITS fetches the cab, and WinVerifyTrust with the Microsoft-root policy checks the outer cab only, before it is expanded into %TEMP%; a nested cab without twice its size free is skipped with 0xC00D1251. CODE nl-firmware-024
0x9204 transaction. Success is a version-string match after the reboot, with the expectation carried in the registry.9.2Staging and commit
Each member goes out as a hidden 0xB802 object at the storage root, by 0x9808 (predicted) or 0x100C and then 0x100D. The firmware path itself opens no 0x9214 and sends no 0x922A, though a session left open by an earlier pass is not excluded (S10 settles it). The staged list lives in RAM; a 0x9808 without a file name gets 0x2002, a short 0x100D 0x2015. CODE, INFERRED for the upload operation.
Task 5 records the expected version in the pending list, sends 0x9204 and discards the result; only the version after the reboot counts (§9.3). Figure 8 has the device's rename loop and failure branch. The handler presets 0x2001 but overwrites it on every path that returns: a failed move gives 0x2002, and after a full pass it runs CloseSession, which calls SetSystemPowerState("ColdReboot"), and then writes 0x2002 as well. A commit's final response is therefore 0x2002, or none if the reboot comes first. CODE, INFERRED for the timing. C-41; handler: ghidra/exports/fw-3.30/, lines 24–75
9.3After the reboot, and recovery
While ZAM/FirmwareUpgradeStatus carries data, the responder lists only 0x1001–0x1003, so the handshake gate fails and the client cannot connect (INFERRED). Afterwards a new updater compares DeviceVersion with the expected string (mismatch: 0xC00D1249, “Your Zune did not update.”). The pending list is cleared at every client start, so a restart between commit and reconnect loses the check INFERRED. A cancel during the wait gives E_ABORT; no timeout on it was found. Updates need USB (wireless: 0xC00D124B). CODE nl-firmware-030
recovery.bin's responder (Figure 8) takes the normal path, since its version matches the catalogue's UpgradeFrom lists and sorts low INFERRED. Its 0x9204 has no rename loop, only CloseSession, a disk IOCTL and IOCTL_HAL_REBOOT; how it stores what it receives is UNKNOWN. Two other paths send 0x9204 with nothing staged, a plain reboot on the Keel: an ingest flag that no caller was seen setting, and the DoAction(0xD) re-ingest when RebootDeviceAfterFormat is set (most likely the end of a format, INFERRED; its caller was not traced). CODE fw-018, C-36
Integrity and safety. Integrity rests on the PC: MtpSvc's staging and commit code calls no signature or hash function, and what the boot path (EBoot, zmediaupgrade.dll) checks is UNKNOWN. Hard rule 6 allows one S10 capture: device fully charged, link proven by S0 and clean S2–S4 captures, official package only, and a pktmon file large enough for the whole package (about 60 MB). Any link drop stops the run, and a modified image is never flashed.
Android lensA non-A/B OTA applied by the running system: raw images are replaced file by file with delete-then-move, since CE's MoveFileW cannot overwrite, so not even one file is replaced atomically. No slots, no update_verifier, no boot-success mark. recovery.bin plays recovery plus adb sideload, over reduced MTP.
10Games, apps and XNA
Install rights are endpoint-class capabilities: InstallFirmwareGames for classic devices, SyncApps for Zune HD (conditional on its functional mode) and PaidApps for Windows Phone. CODE
Classic games come only through the firmware wizard. The Games item, offered even when the firmware is current, stages Games.cab (44.8 MB, six ZContent .zcp packages, one of them the NETCF 3.5 + XNA 3.0 runtime) into \Hard Disk2\cabs, and 0x9204 commits it with a reboot; the device-side installer is not analysed. Zune HD apps sync as .zcp files, typed 0x3003 and remapped to 0xB217, into Apps\ with a thumbnail; what Zune HD firmware does with them is UNKNOWN. Windows Phone uses ForceAppUpdate 0x9364, which the Keel lacks. CODE; INFERRED for how the device installs Games.cab.
XNA deployment is not the Zune client's job; XNA Game Studio 3.1 Platform Tools does it (Figure 9, row C). Device Center and XnaPack, 32-bit processes, reach the Zune only through Microsoft.Xna.RemoteServices, which starts XnaTransZ.exe on demand and calls it by .NET Remoting over a named pipe; Visual Studio presumably does the same (its package was not analysed). XnaTransZ.exe runs 64-bit, matching ZuneSP.dll and ZuneSH.dll, which the VM has only as x64. Its XnaTransZ.dll is a WMDM application: it authenticates to mswmdm, loads ZuneSP.dll, calls ordinal 3001 (§3.3) and keeps only devices whose WMDM model name is exactly “Zune”. Name and firmware version are WMDM property reads, served by ZuneSP from WPD; MTP goes only through IWMDMDevice3::DeviceIoControl: MTP1, the pass-through, plus ZuneSP's private VLA1 (run the handshake) and \LA1 (get the initiator). ZuneSP opens WPD as client “XnaTransZ.exe”, so the driver's exclusive owner would refuse it while the Zune software holds the device, hence “close the Zune software”. CODE; INFERRED for Visual Studio and the refusal. xna2-003, xna2-016
The session (Figure 9, wire box) opens with a parameterless 0x9220. Only a 0x200F answer starts the handshake, which ZuneSP's CWPDHandshakeHelper runs through ZuneSH as on the direct path; any other answer skips it, so 0x2006 would fail every connect and 0xA221 would skip MTPZ. That the Keel answers 0x200F is INFERRED: its 0x9220 handler is not exported as C. A second 0x9220 then carries the 16-byte value the Zune client puts in 0x9214, and from there deployment, launch, screenshots and, by inference, the debugger share one polled stream of 1,264-byte packets into zam.dll's queues. Deployment is not packets only: each check for the device's XNA runtime enumerates again, so one 0x1015 of 0xD21A appears mid-session. Games go into XNA containers, never MTP objects; XnaTransZ.dll's linked Zune device library, which could stage firmware and send 0x9204, is dead code. What serves the stream on the device, and where it keeps games, is UNKNOWN: that code is not in the exported firmware. CODE xna2-018, xna2-026
Android lensCloser to adb than it looks: XnaTransZ.exe is a host server that the first tool starts, like the adb server, and one connection per device carries every tool's streams, opened by service name and flow-controlled by credit, like adb's OPEN, OKAY and WRTE. Deploy, launch, screenshots and, presumably, the debugger are named services, as sync:, shell:, framebuffer: and jdwp:<pid> are on adb. Unlike adb there is no USB interface of its own (the stream rides MTP vendor operations), device-to-host data waits for the host's 0x9223 polls, and trust comes from the MTPZ session, not from a host key the user approves.
11Side channels
Internet pass-through (USB only) carries PPP (INFERRED from strings) over a serial channel in vendor transactions: 0x922B controls it (mode 1 opens with 0x104 bytes out, other modes send an empty data phase), 0x922C and 0x922D send and receive on channel 3, and event 0xC701 rings the doorbell (passed on without a NULL check). ZuneNetProxy relays TCP and UDP to localhost; ZunePTDNS answers DNS. The link starts on the driver's one-shot 5000-ms idle timer after start or owner release (with 0x9231 only if a proxy lookup succeeds; the next client command tears it down) or in a pass's cloud-sync block, when cloud sync is enabled and the PC is online (§7.4). The device end is zserial.dll; what serves channel 3 is UNKNOWN. CODE C-19
Wi-Fi provisioning runs over USB, ungated by the vendor list (0x9224–0x9228: capability, scan, profile get and set, and a test polled each second for up to 60 s). Wireless sync would bind the same driver to a PnP-X device behind the allow-list; neither exists here (S9 is not captured). CODE
12Observability and verification plan
usbip-win 0.3.6 in the VM and usbipd-win 5.3.0 on the host carry every URB over TCP 3240 on vEthernet (Default Switch); that stream is ground truth (Figure 10). pktmon records it without Npcap. Its link type and duplicate copies are unverified until S0; the fallbacks are wider pktmon components, Npcap plus dumpcap, and usbipd-win's own pcapng (link type 220, which the decoder does not read). The op log shows handshake, credential and unknown vendor payloads by length only; the raw capture keeps them locally. Wireshark (Decode As; no MTP for class 0xFF) only cross-checks. CODE cap-010, cap-016
| Scenario | What it does | What it settles |
|---|---|---|
| S0 | One-minute attach and detach, no client | The capture path: link type, gaps, lost URBs, agreement with Wireshark |
| S1 | Connect; client started by hand | TIDs 0–3, DeviceInfo (DeviceVersion; the predicted 85 operations), endpoint descriptors and MPS, handshake codes and lengths, the 0xD22F answer, header split, the 0x9217 length |
| S2, S2b | Idle with and without the client | The driver's own pass-through start; 0x9216 on owner close; suspend effects |
| S3 | Sync one MP3 | Re-ingest before 0x9214; 0x9219; 0x922A; 0x9808 or 0x100C; the 0x100D length; cloud sync; 0x9215 |
| S3 variants | Not yet in tests/CAPTURE.md: the P4 MP4 tagged as a TV episode, a P4 JPEG above 640×480, one podcast episode, one unprotected audiobook | Transcode or not (format, file name, 0x100D length); the video 0xDC86 write, none for pictures; the 0xBA0B series; Meta Genre 0x12/0x40; 0xDA9A, 0xDAB5, 0xDAB6; 0x9801/0x9802 reads |
| S4–S6 | Playlist, album art, delete | 0xBA05 + 0x9811; the 0xDC86 write and one 0x9811 per track; 0x100B on emptied parents |
| S7 | Reverse sync of pictures, if offered | Whether the UI offers it; the 0x1009 sequence |
| S8a, S8b | XNA, runnable in principle with the Zune software and ZuneLauncher closed: S8a registers the Zune in Device Center, S8b deploys a Zune game from Visual C# Express; no game launch, since a game's exit reboots the Zune | Whether Device Center lists the Zune (the gate) and Visual C# Express takes the same path; the first 0x9220's answer; the handshake, then 0x9220(4) → 0xA221; packet sizes; one 0x1015(0xD21A) per pass and per runtime check; no 0x9214/0x9215; the delay to the driver's 0x9216 |
| S10 | Firmware or games pack, once, under rule 6, only if the client offers it | Upload operation, 0x9214 or not, whether 0x9204's 0x2002 arrives, reboots |
13Open questions and risks
P1 blocks Phase 4 or is settled cheaply by the first captures; P2 changes behaviour the rebuild must reproduce; P3 completes the picture.
| P | Question or risk | Settle by |
|---|---|---|
| P1 | Is pktmon's output usable, and what does usbip-win 0.3.6 send? Every other check depends on it. | S0 |
| P1 | Which firmware does the test Zune run? The predicted DeviceInfo, every Keel-side rule and the firmware offer assume 3.30. | S1: DeviceVersion in the 0x1001 data |
| P1 | Connect order, handshake codes and lengths, the version v, the 0x400C trigger, the 0xD22F answer, endpoint descriptors and MPS: the first proof that the map matches the wire. | S1 (check A7 in tests/CAPTURE.md) |
| P1 | Which upload operation and exact property list the driver sends on the Keel, and whether unlisted vendor properties are dropped. | S3; the driver's property converter |
| P1 | The 30-s single-wait limit against slow device operations (a large 0x9217, a format, the 0x9204 renames) would fail with 0x802A0006. | Durations in S1, S3; S10 |
| P1 | ZuneSH's Microsoft-root caller check may refuse rebuilt, unsigned consumers. XNA tests it from outside: XnaTransZ.exe, a non-Zune host (signer not parsed), reaches ZuneSH's initiator through ZuneSP. A successful XNA handshake in S8 means the check, if that path runs it, accepts that host and ZuneSP as caller; a connect that fails in the handshake before any 0x9212 makes the check a candidate cause (both INFERRED). | S8; the first ZuneNativeLib swap test |
| P1 | Firmware: can this install offer firmware or the Games item at all (catalogue most likely unread, fwlink gone, device version unknown)? If so, does 0x9214 precede the 0xB802 transfers, does 0x9204's 0x2002 arrive before the reboot, how many reboots follow? Only one capture is allowed. | Your decision on the trigger; S10 under rule 6 |
| P2 | Which Keel operations really need the 0x9214 or sync-session flag? No capture can tell: the client always opens 0x9214 first. | Static xref over all 2067 MtpSvc functions |
| P2 | Ownership races (does ZuneLauncher.exe, the unanalysed arrival auto-launcher, send first?) and the UMDF Exclusive=1 value next to the driver's own gate; the loser gets 0xCAFE0001. | S1 with the client started by ZuneLauncher; read ZuneLauncher |
| P2 | Video, picture, podcast and audiobook paths have no capture scenario; adding §12's four S3 variants is your decision. | New S3 variants |
| P2 | Would selective suspend reopen the session under a running client and silently clear the device's MTPZ state? | Event 0x400136B1; S2 |
| P2 | 0x9218/0x9219 appear only for relationship 2, whose derivation is untraced; a guest test device shows neither. | S3 plus the UI; 0xD401 in S1 |
| P2 | The liveness probe 0x1015(0xD22F) cannot succeed on a Keel, so a transient error may become “device gone”. | Static check of the callers |
| P3 | The fields of the 0x9218 round trip (plays, skips, rating, bookmark), and whether the device clears its list. | ZMDB field maps; two S1 captures |
| P3 | Transcode inputs and ZuneEnc internals; how .aa/.aax are typed; audiobook resume positions. | Ghidra import; offline hive parse |
| P3 | XNA: does the Keel answer the parameterless 0x9220 with 0x200F, which alone starts the handshake (0x2006 would fail every connect)? | S8a: the first 0x9220 |
| P3 | XNA keeps only devices whose model name is exactly “Zune”: does the Keel's match, and would a Zune HD pass, with which subtype? | S1: the model string; no Zune HD here |
| P3 | XNA's device-side services (channel broker, deploy and launch channels, screenshot, debugger) and the sender of the “XX” packet; the debugger's service id (XnaPortSupplier, in an unanalysed Visual Studio package; candidate {7ABBE0D5-…}). | S8b, by service name and length; for the debugger, the Visual Studio package or a later debug capture (S8c) |
Decisions for you. Make Npcap optional with pktmon as the primary backend, and keep ZuneSH.dll as an original binary despite the Phase 4 risk of its caller check (both proposed in notes/DECISIONS.md, 2026-11-20). Decide how this install should offer firmware or the Games item for S10, and whether to add the S3 variants.
AOp-code quick reference
Codes used above, by the name protocol/opcodes.md chooses (grouped rows by role); that file has every issuer site and Keel handler.
| Code | Name | Phase | Role here |
|---|---|---|---|
| 0x21/0x64 | Cancel_Request | transport | {0x4001, TID}, then status polls |
| 0x21/0x66 | Device_Reset_Request | recovery | then a synthesized 0x400B |
| 0xA1/0x67 | Get_Device_Status | bulk waits | 3-s heartbeat; Keel 0x2019 while busy |
| 0x1001 | GetDeviceInfo | connect | TID 1, cached; DeviceVersion |
| 0x1002/0x1003 | Open/CloseSession | connect, firmware | TID 0; close reboots when flagged |
| 0x1004/0x1005 | GetStorageIDs/Info | open, space | driver's choice (inferred) |
| 0x1009 | GetObject | copy-back | handshake-gated on Keel |
| 0x100B | DeleteObject | sync | object, then emptied folders |
| 0x100C/0x100D | SendObjectInfo/SendObject | sync, firmware | fallback creator / file data |
| 0x1014–0x1016 | Device properties | connect, ingest, XNA | 0xD22F, 0x5002, 0xD218, 0xD217, 0xD21A, 0xD406 |
| 0x9204 | CommitFirmware | firmware | rename staged files, reboot |
| 0x9212/0x9213 | MTPZ messages | handshake | initiator out / responder in |
| 0x9214/0x9215 | Trusted session | sync pass | open (4 params) / close |
| 0x9216 | WMDRMPD_EndTrustedAppSession | handshake, release | MTPZ reset; result ignored |
| 0x9217 | RetrieveMetadataDB | connect, sync | whole zunedb.dat (firmware role GetDeviceDatabaseFile) |
| 0x9218/0x9219 | Modified / acquired items | connect / pass | handles, partnered only |
| 0x9220–0x9223 | XnaDebug session | XNA | open (no params, then 4), close, send, receive; issued by XnaTransZ, not the Zune client |
| 0x922A | MTPZ_OPCODE_SET_SYNC_PROGRESS | sync | 530-byte record per item |
| 0x922B–0x922D | Serial channel | pass-through | control, send, receive |
| 0x922F–0x9231 | Cloud sync, proxy | pass, connect | progress, start/stop, proxy record |
| 0x9801–0x9807 | Object property ops | sync, capability | art 0xDC86, flag 0xDAB4, updates (partly inferred) |
| 0x9808 | SendObjectPropList | sync, firmware | creator on Keel (predicted) |
| 0x9811 | SetObjectReferences | sync | album and playlist members |
| 0x400B/0x400C/0x4003 | Standard events | events | reset; device sync session up; removed |
| 0xC701/0xC702 | Vendor events | events | pass-through data; raiser unknown |
| 0x2001–0x201F | Standard responses | all | 0x2002, 0x2003, 0x200A, 0x200F, 0x2015, 0x2019 as above |
| 0xA809, 0xA221–0xA22A | Vendor responses | sync, XNA | object too large; XNA results: 0xA221 success, 0xA22A not ready (resend) |
Assembled 2026-11-20 (XNA rows revised 2026-11-21) from protocol/DEVICE-LAYER.md, EVIDENCE.md, opcodes.md, tests/CAPTURE.md, notes/xna-platform-tools.md and the Phase 2 fact sheets. No capture data was used.