用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/facebook/meta-wearables-dat-android --skill debugging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Session and Stream capability setup, video frames, photo capture, resolution and frame rate configuration
Kotlin patterns, DatResult, session and capability conventions for DAT SDK Android development
Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback
基于 SOC 职业分类
正在显示 SKILL.md
| name | debugging |
| description | Common issues, Developer Mode, version compatibility, and session and stream diagnosis |
Diagnose common setup, session, and stream issues in DAT SDK integrations.
If local DAT Inspector MCP tools are available, use the live-debugging-mcp
skill before changing app code. Prefer get_dat_readiness,
get_companion_boundary_diagnosis, and get_device_path to separate app bugs from
Meta AI app/device boundary issues using read-only DAT evidence.
No eligible device or session won't start?
|
+-- Did you call Wearables.initialize(context)? -> Must happen before SDK usage
|
+-- Did registration complete? -> Observe Wearables.registrationState
|
+-- Is Developer Mode enabled? -> Enable it in the Meta AI app for dev builds
|
+-- Does Wearables.devices contain a linked device? -> Check Bluetooth and range
|
+-- Did createSession() or addCamera() return a DatResult failure? -> Surface the typed error
Developer Mode must be enabled for local development builds that use mwdat_application_id = 0 and mwdat_client_token = 0.
Wearables.createSession(...) fails with no eligible deviceAPPLICATION_ID, CLIENT_TOKEN, and release-channel gating insteadSTARTEDWearables.registrationStateWearables.devices contains a compatible linked deviceSTREAMINGsession.start() succeeded before calling session.addCamera(...)Wearables.checkPermissionStatus(...)camera.stream.start() returned successcapturePhoto() only succeeds while the stream is actively streamingCaptureError instead of discarding the DatResultEnsure compatible versions of the SDK, Meta AI app, and glasses firmware. See version dependencies for the current compatibility matrix.
private const val TAG = "DATWearables"
camera.stream.start()
.onFailure { error, _ -> Log.e(TAG, "Failed to start stream: ${error.description}") }
Prefer logging typed DatResult failures and observed state transitions over generic exceptions.
When the developer has a local DAT debug server connected to the agent:
get_sdk_state and get_dat_readinessget_companion_boundary_diagnosis for permission, app identity, device
capability, device-selection, deeplink-return, and DAM/DWA-visible blockersget_device_path to trace app -> DAT registration -> Meta AI app permissions ->
device selection/link -> session -> streamwait_for_events with the
narrowest category or source that matches the flowexport_diagnostic_bundle for redacted support handoffDo not treat this as companion app introspection. It is diagnosis from app-visible DAT debug events.
Wearables.initialize(context) ran before SDK usageAPPLICATION_ID and CLIENT_TOKEN match the build modeDatResult failures are surfaced in logs or UI