{
  "url": "https://github.com/maam00/fujikit",
  "title": "GitHub - maam00/fujikit: Unofficial, open-source Swift SDK, macOS CLI, and wire protocol spec for Fujifilm X-series cameras (USB C1-C7 slots, BLE backup, Wi-Fi import, in-camera RAW conversion). Not affiliated with FUJIFILM.",
  "siteName": "GitHub",
  "leadImage": "https://opengraph.githubassets.com/a66abdcce509de0e3e196684249e561731b32ebc85bcb0fcb14eeed63c561ef0/maam00/fujikit",
  "wordCount": 1516,
  "readingTimeMinutes": 7,
  "cacheStatus": "HIT",
  "markdown": "# GitHub - maam00/fujikit: Unofficial, open-source Swift SDK, macOS CLI, and wire protocol spec for Fujifilm X-series cameras (USB C1-C7 slots, BLE backup, Wi-Fi import, in-camera RAW conversion). Not affiliated with FUJIFILM.\n\n**Safe, open-source Swift SDK, macOS CLI (`fuji`), native MCP server (`fuji mcp`), and wire protocol reference for Fujifilm X-series cameras.**\n\n> **Unofficial.** FujiKit is an independent community project. It is not made by, affiliated with, or endorsed by FUJIFILM Corporation.\n\nBack up, diff, and write custom film simulation slots (`C1`\\-`C7`) over USB, try a look on the camera's live shooting state (experimental), pull full-size photos over camera Wi-Fi without Fujifilm's XApp, inspect `.dat` settings backups, and drive your camera's own X-Processor for authentic in-camera RAW conversion.\n\n-   **Zero third-party dependencies:** pure Swift 6 (`ImageCaptureCore`, `CoreBluetooth`, `Network`, `Foundation`)\n-   **Agent-native out of the box:** built-in stdio MCP server (`fuji mcp`), `--json` output, and an installable [`SKILL.md`](https://github.com/maam00/fujikit/blob/main/skills/fujikit/SKILL.md) for Claude Code, Codex, Cursor, and Claude Desktop\n-   **iOS 18+ & macOS 15+ Swift Package:** zero `.unsafeFlags`, ready for Xcode or SwiftPM by version tag\n-   **Hardware-safe by architecture:** read-only PTP opcode allowlist for photo imports, mandatory fresh backups before every write, byte-diff `RestoreGuard`, and strict readback verification\n-   **Canonical wire spec included:** [FUJIFILM-PROTOCOL.md](https://github.com/maam00/fujikit/blob/main/docs/FUJIFILM-PROTOCOL.md) documents USB PTP, Bluetooth LE (basic and 1.30+ secure pairing), the `FUJIFILMX-BACKUP` binary format, checksums, and Wi-Fi PTP/IP with strict evidence labels\n\n* * *\n\n## Quickstart (macOS CLI)\n\n### Install via Homebrew (recommended, Apple Silicon, no Xcode required)\n\nbrew install maam00/tap/fuji\n\nOr build from source (embeds macOS `Info.plist` for USB, Bluetooth, and Local Network permissions):\n\ngit clone https://github.com/maam00/fujikit.git\ncd fujikit\nmake install\n\n### Use it\n\nPlug in your camera over USB with **MENU -> NETWORK/USB SETTING -> CONNECTION MODE -> USB RAW CONV./BACKUP RESTORE**:\n\n# Inspect connected body, firmware, and all C1-C7 slots (read-only, supports --json)\nfuji info\nfuji show\nfuji show --json\n\n# Spot setting drift across C1-C7, or preview changes before writing\nfuji diff\nfuji diff examples/recipes/classic-chrome-day.json\nfuji diff backup-before.json backup-after.json --json   # offline\n\n# Take a timestamped backup of all 7 custom slots\nfuji backup\n\n# Load recipes into C1-C7 (backs up first, writes, reads back every property)\nfuji load examples/recipes/classic-chrome-day.json\n\n# EXPERIMENTAL: try one look on the live shooting state (live codes, not the C1-C7 slot codes).\n# On the X100VI only the film simulation write has been run on real hardware, and whether the\n# camera folds live changes into the selected C slot is unknown. Preview with --dry-run first.\nfuji look-live examples/recipes/street-chrome.json --dry-run\nfuji look-live examples/recipes/street-chrome.json --snapshot live-before.json\nfuji look-restore live-before.json\n\n# Pull recent full-size photos wirelessly over BLE wake + camera Wi-Fi\n# (unplug USB first; your Mac's Wi-Fi moves to the camera's network until the import ends)\nfuji import-wifi --last 10\n\n# Render a RAF file using your camera's real film-simulation engine (never touches C1-C7)\nfuji rawconv DSCF0001.RAF --recipe examples/recipes/street-chrome.json\n\n# Inspect a FUJIFILMX-BACKUP .dat file offline (read-only)\nfuji settings-probe backup.dat\n\nRun `fuji --help` for all subcommands.\n\n* * *\n\n## Use with Claude Code, Codex, Cursor, or Claude Desktop\n\nFujiKit ships a **zero-dependency stdio MCP server** inside the `fuji` binary plus a standard [`skills/fujikit/SKILL.md`](https://github.com/maam00/fujikit/blob/main/skills/fujikit/SKILL.md).\n\n### Option A: Connect via MCP (`fuji mcp`)\n\nAdd this to your MCP config (Claude Code, Codex, Claude Desktop, or Cursor):\n\n{\n  \"mcpServers\": {\n    \"fujikit\": {\n      \"command\": \"fuji\",\n      \"args\": \\[\"mcp\"\\]\n    }\n  }\n}\n\nExposed MCP tools (with `readOnlyHint` annotations):\n\n-   **Read-only:** `fuji_info`, `fuji_show`, `fuji_diff`, `fuji_backup`, `fuji_settings_probe`\n-   **Read-only on the camera, but changes this Mac:** `fuji_import_wifi` (moves the Mac's Wi-Fi to the camera's network for the duration and writes photo files)\n-   **Guarded camera actions:** `fuji_load` (supports `dry_run: true`, mandatory fresh backup), `fuji_rawconv`\n-   **Experimental:** `fuji_look_live` (see the note in the quickstart above)\n\n### Option B: Install the Agent Skill\n\nnpx skills add maam00/fujikit\n\n* * *\n\n## Use `FujiKit` in Your Swift / iOS / macOS App\n\nAdd `FujiKit` via Swift Package Manager:\n\ndependencies: \\[\n    .package(url: \"https://github.com/maam00/fujikit.git\", from: \"0.2.0\")\n\\]\n\nConnect over USB (`ImageCaptureCore`) and load custom slots with per-slot readback verification:\n\nimport FujiKit\n\nlet link \\= CameraLink.usb()\nlet recipes: \\[Recipe\\] \\= \\[\n    Recipe(\n        name: \"Street Chrome\",\n        filmSim: .classicChrome,\n        grain: .weakSmall,\n        colorChrome: .weak,\n        colorChromeFxBlue: .off,\n        whiteBalance: .daylight,\n        kelvin: 0,\n        wbShiftR: 2,\n        wbShiftB: \\-3,\n        dynamicRange: .dr200,\n        highlight: \\-0.5,\n        shadow: 1.0,\n        color: 1,\n        sharpness: \\-1,\n        noiseReduction: \\-4,\n        clarity: 0\n    )\n\\]\n\nlet report \\= try await link.load(looks: recipes) { slot in\n    print(\"C\\\\(slot.slot): \\\\(slot.verdict)\")\n}\nawait link.disconnect()\n\nIn Xcode Previews, simulators, and unit tests, swap `CameraLink.usb()` for `MockCameraLink()` (identical API, zero hardware required).\n\n### Core Modules\n\n| Module | What it provides |\n| --- | --- |\n| **USB PTP** | `FujiCamera`, `CameraLink`, `ImageCaptureTransport`, `SlotEncoder`, `LiveControl`, `SlotDiff` |\n| **MCP Server** | `MCPServer` (pure Swift 6 JSON-RPC 2.0 stdio server, injectable `MCPToolExecutor`) |\n| **Bluetooth LE** | `FujiBluetoothLink`, `FujiBLEFlows`, basic & 1.30+ secure pairing, settings backup & Wi-Fi wake |\n| **Settings File (`.dat`)** | `FujiSettingsFile`, `SettingsLookPatch`, `RestoreGuard`: parse, probe, and narrow-patch `FUJIFILMX-BACKUP` files with incremental checksum updates |\n| **Wi-Fi & USB Import** | `PhotoImporter`, `FujiPTPIPTransport`, `FujiWifiWake`, `ReadOnlyPTP`, `ExifReader` |\n| **In-Camera RAW Conv** | `FujiRawConverter`, `D185Profile`: drive Fujifilm's hardware X-Processor over USB |\n| **Safety & Qualification** | `CameraCompatibility`, `USBQualification`, `SlotBackup`, `CameraCheck` |\n\n* * *\n\n## The Fujifilm Wire Protocol Reference\n\nIf you are building Fujifilm tooling in **any language** (Swift, Rust, Python, Go, C++), start with:\n\n👉 **[`docs/FUJIFILM-PROTOCOL.md`](https://github.com/maam00/fujikit/blob/main/docs/FUJIFILM-PROTOCOL.md)**\n\nEvery fact in the spec is tagged with its exact evidence level (`VERIFIED-HW`, `CODE`, `CITED`, or `HYPOTHESIS`):\n\n-   USB PTP `D18C`\\-`D1A4` slot registers, gating rules, monochrome skip sets, and the Grain-Off `1 -> 6/7` readback quirk\n-   macOS `ptpcamerad` exclusive-claim behavior\n-   Bluetooth LE GATT tables, basic (4-byte key) vs. secure (1.30+ LE bonding + `f557d96b` status echo), and chunked zlib backup/restore framing\n-   `FUJIFILMX-BACKUP` binary layout (`0xF800`\\-`0x11000`), volatile regions, and checksum model at `0x108`\n-   Wi-Fi PTP/IP gallery session handshake, handle priming (`GetObjectInfo` before `GetPartialObject`), and EXIF date probing\n\n* * *\n\n## Camera Compatibility & Adding Your Body\n\n**Read-only operations** (`info`, `show`, `diff`, `backup`, `settings-probe`, `props --read`) work safely without modifying camera state.\n\n**Verified slot writes** are strictly allowlisted by exact model + firmware so FujiKit never guesses wire encodings on an untested body:\n\n| Body | Firmware | USB Read / Diff / Backup | USB Slot Writes (`C1`\\-`C7`) | BLE Backup / Wi-Fi Import | BLE Modified Writes |\n| --- | --- | --- | --- | --- | --- |\n| **X100VI** | `1.10` | Verified | **Verified** (write, readback, exact restore, restart) | Verified (basic BLE + Wi-Fi JPEG pull) | Experimental lab only |\n| **X100VI** | `1.30+` | Supported | Ready to qualify (`fuji qualify-usb`) | Secure BLE + hidden-SSID Wi-Fi implemented (untested on HW) | Blocked |\n| **X-T5, X-T50, X-E5, X-E4, X-M5, GFX** | Any | Read-only probe | Community PRs welcome | Untested | Blocked |\n\n### Own an X100VI on firmware 1.30 or newer?\n\nHelp qualify your firmware in 2 minutes (safely tests `C7` only, backs up first, verifies readback, and restores your original slot):\n\nfuji qualify-usb --qualify-unverified-firmware --out my-camera-record.json\n\n### Own an X-T5, X-T50, X-E5, X-E4, X-M5, or GFX?\n\nSlot writes are blocked on these bodies today, and `fuji qualify-usb` refuses before writing anything. The first step is a read-only report:\n\nfuji info --json\n\nSee **[`docs/COMPATIBILITY.md`](https://github.com/maam00/fujikit/blob/main/docs/COMPATIBILITY.md)** and open an **[Add Camera](https://github.com/maam00/fujikit/blob/main/.github/ISSUE_TEMPLATE/add_camera.yml)** issue with the output. Check it for your serial number before posting.\n\n* * *\n\n## Safety Guarantees\n\nWriting to camera settings carries real risk if done carelessly. FujiKit enforces four non-negotiable invariants in code (not just docs). See **[`docs/SAFETY.md`](https://github.com/maam00/fujikit/blob/main/docs/SAFETY.md)**:\n\n1.  **Photos can never be modified or deleted:** All import transports are wrapped in `ReadOnlyPTP`, which throws before transmitting any destructive opcode (`DeleteObject`, `FormatStore`, `SendObject`, etc.).\n2.  **Fresh backup before every write:** `load` and `qualify-usb` always snapshot all seven slots first and refuse to proceed if any slot fails to read.\n3.  **Byte-level `RestoreGuard`:** Any settings-file restore verifies that _only_ the chosen slot bytes and 16-bit checksum changed relative to a fresh backup from the same serial number.\n4.  **Strict readback verification:** A `0x2001 OK` response from the camera is never trusted alone. Every written property is read back and verified (accounting for documented hardware quirks like Grain Off returning `6`/`7`).\n\n* * *\n\n## Development\n\n# Run the full offline test suite (440+ tests, no camera required)\nmake test\n\n# Build the CLI with embedded Info.plist\nmake build\nmake verify-plist\n\n* * *\n\n## Credits & License\n\nMIT Licensed. See [LICENSE](https://github.com/maam00/fujikit/blob/main/LICENSE).\n\nProtocol discoveries build on and credit the open-source Fujifilm community: **FilmKit**, **fuji-bridge**, **libfuji**, **furble**, **fffw**, and **helios** (full upstream licenses in [`THIRD_PARTY_NOTICES.md`](https://github.com/maam00/fujikit/blob/main/THIRD_PARTY_NOTICES.md) and [`third_party/licenses/`](https://github.com/maam00/fujikit/blob/main/third_party/licenses)).\n\n_FujiKit is an independent open-source project and is not affiliated with or endorsed by FUJIFILM Corporation. FUJIFILM, X100VI, and film simulation names are trademarks of FUJIFILM Corporation._",
  "html": "<h1>GitHub - maam00/fujikit: Unofficial, open-source Swift SDK, macOS CLI, and wire protocol spec for Fujifilm X-series cameras (USB C1-C7 slots, BLE backup, Wi-Fi import, in-camera RAW conversion). Not affiliated with FUJIFILM.</h1>\n<p><strong>Safe, open-source Swift SDK, macOS CLI (<code>fuji</code>), native MCP server (<code>fuji mcp</code>), and wire protocol reference for Fujifilm X-series cameras.</strong></p>\n<blockquote>\n<p><strong>Unofficial.</strong> FujiKit is an independent community project. It is not made by, affiliated with, or endorsed by FUJIFILM Corporation.</p>\n</blockquote>\n<p>Back up, diff, and write custom film simulation slots (<code>C1</code>-<code>C7</code>) over USB, try a look on the camera's live shooting state (experimental), pull full-size photos over camera Wi-Fi without Fujifilm's XApp, inspect <code>.dat</code> settings backups, and drive your camera's own X-Processor for authentic in-camera RAW conversion.</p>\n<ul>\n<li><strong>Zero third-party dependencies:</strong> pure Swift 6 (<code>ImageCaptureCore</code>, <code>CoreBluetooth</code>, <code>Network</code>, <code>Foundation</code>)</li>\n<li><strong>Agent-native out of the box:</strong> built-in stdio MCP server (<code>fuji mcp</code>), <code>--json</code> output, and an installable <a href=\"https://github.com/maam00/fujikit/blob/main/skills/fujikit/SKILL.md\"><code>SKILL.md</code></a> for Claude Code, Codex, Cursor, and Claude Desktop</li>\n<li><strong>iOS 18+ &amp; macOS 15+ Swift Package:</strong> zero <code>.unsafeFlags</code>, ready for Xcode or SwiftPM by version tag</li>\n<li><strong>Hardware-safe by architecture:</strong> read-only PTP opcode allowlist for photo imports, mandatory fresh backups before every write, byte-diff <code>RestoreGuard</code>, and strict readback verification</li>\n<li><strong>Canonical wire spec included:</strong> <a href=\"https://github.com/maam00/fujikit/blob/main/docs/FUJIFILM-PROTOCOL.md\">FUJIFILM-PROTOCOL.md</a> documents USB PTP, Bluetooth LE (basic and 1.30+ secure pairing), the <code>FUJIFILMX-BACKUP</code> binary format, checksums, and Wi-Fi PTP/IP with strict evidence labels</li>\n</ul>\n<hr />\n<h2>Quickstart (macOS CLI)</h2>\n<h3>Install via Homebrew (recommended, Apple Silicon, no Xcode required)</h3>\n<p>brew install maam00/tap/fuji</p>\n<p>Or build from source (embeds macOS <code>Info.plist</code> for USB, Bluetooth, and Local Network permissions):</p>\n<p>git clone <a href=\"https://github.com/maam00/fujikit.git\">https://github.com/maam00/fujikit.git</a>\ncd fujikit\nmake install</p>\n<h3>Use it</h3>\n<p>Plug in your camera over USB with <strong>MENU -&gt; NETWORK/USB SETTING -&gt; CONNECTION MODE -&gt; USB RAW CONV./BACKUP RESTORE</strong>:</p>\n<h1>Inspect connected body, firmware, and all C1-C7 slots (read-only, supports --json)</h1>\n<p>fuji info\nfuji show\nfuji show --json</p>\n<h1>Spot setting drift across C1-C7, or preview changes before writing</h1>\n<p>fuji diff\nfuji diff examples/recipes/classic-chrome-day.json\nfuji diff backup-before.json backup-after.json --json   # offline</p>\n<h1>Take a timestamped backup of all 7 custom slots</h1>\n<p>fuji backup</p>\n<h1>Load recipes into C1-C7 (backs up first, writes, reads back every property)</h1>\n<p>fuji load examples/recipes/classic-chrome-day.json</p>\n<h1>EXPERIMENTAL: try one look on the live shooting state (live codes, not the C1-C7 slot codes).</h1>\n<h1>On the X100VI only the film simulation write has been run on real hardware, and whether the</h1>\n<h1>camera folds live changes into the selected C slot is unknown. Preview with --dry-run first.</h1>\n<p>fuji look-live examples/recipes/street-chrome.json --dry-run\nfuji look-live examples/recipes/street-chrome.json --snapshot live-before.json\nfuji look-restore live-before.json</p>\n<h1>Pull recent full-size photos wirelessly over BLE wake + camera Wi-Fi</h1>\n<h1>(unplug USB first; your Mac's Wi-Fi moves to the camera's network until the import ends)</h1>\n<p>fuji import-wifi --last 10</p>\n<h1>Render a RAF file using your camera's real film-simulation engine (never touches C1-C7)</h1>\n<p>fuji rawconv DSCF0001.RAF --recipe examples/recipes/street-chrome.json</p>\n<h1>Inspect a FUJIFILMX-BACKUP .dat file offline (read-only)</h1>\n<p>fuji settings-probe backup.dat</p>\n<p>Run <code>fuji --help</code> for all subcommands.</p>\n<hr />\n<h2>Use with Claude Code, Codex, Cursor, or Claude Desktop</h2>\n<p>FujiKit ships a <strong>zero-dependency stdio MCP server</strong> inside the <code>fuji</code> binary plus a standard <a href=\"https://github.com/maam00/fujikit/blob/main/skills/fujikit/SKILL.md\"><code>skills/fujikit/SKILL.md</code></a>.</p>\n<h3>Option A: Connect via MCP (<code>fuji mcp</code>)</h3>\n<p>Add this to your MCP config (Claude Code, Codex, Claude Desktop, or Cursor):</p>\n<p>{\n  \"mcpServers\": {\n    \"fujikit\": {\n      \"command\": \"fuji\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}</p>\n<p>Exposed MCP tools (with <code>readOnlyHint</code> annotations):</p>\n<ul>\n<li><strong>Read-only:</strong> <code>fuji_info</code>, <code>fuji_show</code>, <code>fuji_diff</code>, <code>fuji_backup</code>, <code>fuji_settings_probe</code></li>\n<li><strong>Read-only on the camera, but changes this Mac:</strong> <code>fuji_import_wifi</code> (moves the Mac's Wi-Fi to the camera's network for the duration and writes photo files)</li>\n<li><strong>Guarded camera actions:</strong> <code>fuji_load</code> (supports <code>dry_run: true</code>, mandatory fresh backup), <code>fuji_rawconv</code></li>\n<li><strong>Experimental:</strong> <code>fuji_look_live</code> (see the note in the quickstart above)</li>\n</ul>\n<h3>Option B: Install the Agent Skill</h3>\n<p>npx skills add maam00/fujikit</p>\n<hr />\n<h2>Use <code>FujiKit</code> in Your Swift / iOS / macOS App</h2>\n<p>Add <code>FujiKit</code> via Swift Package Manager:</p>\n<p>dependencies: [\n    .package(url: \"<a href=\"https://github.com/maam00/fujikit.git\">https://github.com/maam00/fujikit.git</a>\", from: \"0.2.0\")\n]</p>\n<p>Connect over USB (<code>ImageCaptureCore</code>) and load custom slots with per-slot readback verification:</p>\n<p>import FujiKit</p>\n<p>let link = CameraLink.usb()\nlet recipes: [Recipe] = [\n    Recipe(\n        name: \"Street Chrome\",\n        filmSim: .classicChrome,\n        grain: .weakSmall,\n        colorChrome: .weak,\n        colorChromeFxBlue: .off,\n        whiteBalance: .daylight,\n        kelvin: 0,\n        wbShiftR: 2,\n        wbShiftB: -3,\n        dynamicRange: .dr200,\n        highlight: -0.5,\n        shadow: 1.0,\n        color: 1,\n        sharpness: -1,\n        noiseReduction: -4,\n        clarity: 0\n    )\n]</p>\n<p>let report = try await link.load(looks: recipes) { slot in\n    print(\"C\\(slot.slot): \\(slot.verdict)\")\n}\nawait link.disconnect()</p>\n<p>In Xcode Previews, simulators, and unit tests, swap <code>CameraLink.usb()</code> for <code>MockCameraLink()</code> (identical API, zero hardware required).</p>\n<h3>Core Modules</h3>\n<table>\n<thead>\n<tr>\n<th>Module</th>\n<th>What it provides</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>USB PTP</strong></td>\n<td><code>FujiCamera</code>, <code>CameraLink</code>, <code>ImageCaptureTransport</code>, <code>SlotEncoder</code>, <code>LiveControl</code>, <code>SlotDiff</code></td>\n</tr>\n<tr>\n<td><strong>MCP Server</strong></td>\n<td><code>MCPServer</code> (pure Swift 6 JSON-RPC 2.0 stdio server, injectable <code>MCPToolExecutor</code>)</td>\n</tr>\n<tr>\n<td><strong>Bluetooth LE</strong></td>\n<td><code>FujiBluetoothLink</code>, <code>FujiBLEFlows</code>, basic &amp; 1.30+ secure pairing, settings backup &amp; Wi-Fi wake</td>\n</tr>\n<tr>\n<td><strong>Settings File (<code>.dat</code>)</strong></td>\n<td><code>FujiSettingsFile</code>, <code>SettingsLookPatch</code>, <code>RestoreGuard</code>: parse, probe, and narrow-patch <code>FUJIFILMX-BACKUP</code> files with incremental checksum updates</td>\n</tr>\n<tr>\n<td><strong>Wi-Fi &amp; USB Import</strong></td>\n<td><code>PhotoImporter</code>, <code>FujiPTPIPTransport</code>, <code>FujiWifiWake</code>, <code>ReadOnlyPTP</code>, <code>ExifReader</code></td>\n</tr>\n<tr>\n<td><strong>In-Camera RAW Conv</strong></td>\n<td><code>FujiRawConverter</code>, <code>D185Profile</code>: drive Fujifilm's hardware X-Processor over USB</td>\n</tr>\n<tr>\n<td><strong>Safety &amp; Qualification</strong></td>\n<td><code>CameraCompatibility</code>, <code>USBQualification</code>, <code>SlotBackup</code>, <code>CameraCheck</code></td>\n</tr>\n</tbody></table>\n<hr />\n<h2>The Fujifilm Wire Protocol Reference</h2>\n<p>If you are building Fujifilm tooling in <strong>any language</strong> (Swift, Rust, Python, Go, C++), start with:</p>\n<p>👉 <strong><a href=\"https://github.com/maam00/fujikit/blob/main/docs/FUJIFILM-PROTOCOL.md\"><code>docs/FUJIFILM-PROTOCOL.md</code></a></strong></p>\n<p>Every fact in the spec is tagged with its exact evidence level (<code>VERIFIED-HW</code>, <code>CODE</code>, <code>CITED</code>, or <code>HYPOTHESIS</code>):</p>\n<ul>\n<li>USB PTP <code>D18C</code>-<code>D1A4</code> slot registers, gating rules, monochrome skip sets, and the Grain-Off <code>1 -&gt; 6/7</code> readback quirk</li>\n<li>macOS <code>ptpcamerad</code> exclusive-claim behavior</li>\n<li>Bluetooth LE GATT tables, basic (4-byte key) vs. secure (1.30+ LE bonding + <code>f557d96b</code> status echo), and chunked zlib backup/restore framing</li>\n<li><code>FUJIFILMX-BACKUP</code> binary layout (<code>0xF800</code>-<code>0x11000</code>), volatile regions, and checksum model at <code>0x108</code></li>\n<li>Wi-Fi PTP/IP gallery session handshake, handle priming (<code>GetObjectInfo</code> before <code>GetPartialObject</code>), and EXIF date probing</li>\n</ul>\n<hr />\n<h2>Camera Compatibility &amp; Adding Your Body</h2>\n<p><strong>Read-only operations</strong> (<code>info</code>, <code>show</code>, <code>diff</code>, <code>backup</code>, <code>settings-probe</code>, <code>props --read</code>) work safely without modifying camera state.</p>\n<p><strong>Verified slot writes</strong> are strictly allowlisted by exact model + firmware so FujiKit never guesses wire encodings on an untested body:</p>\n<table>\n<thead>\n<tr>\n<th>Body</th>\n<th>Firmware</th>\n<th>USB Read / Diff / Backup</th>\n<th>USB Slot Writes (<code>C1</code>-<code>C7</code>)</th>\n<th>BLE Backup / Wi-Fi Import</th>\n<th>BLE Modified Writes</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>X100VI</strong></td>\n<td><code>1.10</code></td>\n<td>Verified</td>\n<td><strong>Verified</strong> (write, readback, exact restore, restart)</td>\n<td>Verified (basic BLE + Wi-Fi JPEG pull)</td>\n<td>Experimental lab only</td>\n</tr>\n<tr>\n<td><strong>X100VI</strong></td>\n<td><code>1.30+</code></td>\n<td>Supported</td>\n<td>Ready to qualify (<code>fuji qualify-usb</code>)</td>\n<td>Secure BLE + hidden-SSID Wi-Fi implemented (untested on HW)</td>\n<td>Blocked</td>\n</tr>\n<tr>\n<td><strong>X-T5, X-T50, X-E5, X-E4, X-M5, GFX</strong></td>\n<td>Any</td>\n<td>Read-only probe</td>\n<td>Community PRs welcome</td>\n<td>Untested</td>\n<td>Blocked</td>\n</tr>\n</tbody></table>\n<h3>Own an X100VI on firmware 1.30 or newer?</h3>\n<p>Help qualify your firmware in 2 minutes (safely tests <code>C7</code> only, backs up first, verifies readback, and restores your original slot):</p>\n<p>fuji qualify-usb --qualify-unverified-firmware --out my-camera-record.json</p>\n<h3>Own an X-T5, X-T50, X-E5, X-E4, X-M5, or GFX?</h3>\n<p>Slot writes are blocked on these bodies today, and <code>fuji qualify-usb</code> refuses before writing anything. The first step is a read-only report:</p>\n<p>fuji info --json</p>\n<p>See <strong><a href=\"https://github.com/maam00/fujikit/blob/main/docs/COMPATIBILITY.md\"><code>docs/COMPATIBILITY.md</code></a></strong> and open an <strong><a href=\"https://github.com/maam00/fujikit/blob/main/.github/ISSUE_TEMPLATE/add_camera.yml\">Add Camera</a></strong> issue with the output. Check it for your serial number before posting.</p>\n<hr />\n<h2>Safety Guarantees</h2>\n<p>Writing to camera settings carries real risk if done carelessly. FujiKit enforces four non-negotiable invariants in code (not just docs). See <strong><a href=\"https://github.com/maam00/fujikit/blob/main/docs/SAFETY.md\"><code>docs/SAFETY.md</code></a></strong>:</p>\n<ol>\n<li><strong>Photos can never be modified or deleted:</strong> All import transports are wrapped in <code>ReadOnlyPTP</code>, which throws before transmitting any destructive opcode (<code>DeleteObject</code>, <code>FormatStore</code>, <code>SendObject</code>, etc.).</li>\n<li><strong>Fresh backup before every write:</strong> <code>load</code> and <code>qualify-usb</code> always snapshot all seven slots first and refuse to proceed if any slot fails to read.</li>\n<li><strong>Byte-level <code>RestoreGuard</code>:</strong> Any settings-file restore verifies that <em>only</em> the chosen slot bytes and 16-bit checksum changed relative to a fresh backup from the same serial number.</li>\n<li><strong>Strict readback verification:</strong> A <code>0x2001 OK</code> response from the camera is never trusted alone. Every written property is read back and verified (accounting for documented hardware quirks like Grain Off returning <code>6</code>/<code>7</code>).</li>\n</ol>\n<hr />\n<h2>Development</h2>\n<h1>Run the full offline test suite (440+ tests, no camera required)</h1>\n<p>make test</p>\n<h1>Build the CLI with embedded Info.plist</h1>\n<p>make build\nmake verify-plist</p>\n<hr />\n<h2>Credits &amp; License</h2>\n<p>MIT Licensed. See <a href=\"https://github.com/maam00/fujikit/blob/main/LICENSE\">LICENSE</a>.</p>\n<p>Protocol discoveries build on and credit the open-source Fujifilm community: <strong>FilmKit</strong>, <strong>fuji-bridge</strong>, <strong>libfuji</strong>, <strong>furble</strong>, <strong>fffw</strong>, and <strong>helios</strong> (full upstream licenses in <a href=\"https://github.com/maam00/fujikit/blob/main/THIRD_PARTY_NOTICES.md\"><code>THIRD_PARTY_NOTICES.md</code></a> and <a href=\"https://github.com/maam00/fujikit/blob/main/third_party/licenses\"><code>third_party/licenses/</code></a>).</p>\n<p><em>FujiKit is an independent open-source project and is not affiliated with or endorsed by FUJIFILM Corporation. FUJIFILM, X100VI, and film simulation names are trademarks of FUJIFILM Corporation.</em></p>\n"
}