Agent Skills › android/skills › projected-hardware

projected-hardware

GitHub

提供Android XR投影设备(如智能眼镜)硬件访问与管理指南,涵盖连接生命周期、权限请求及相机/麦克风等硬件能力接入。

xr/projected-hardware/SKILL.md android/skills

Trigger Scenarios

开发Android XR智能眼镜应用 需要访问眼镜摄像头或麦克风 处理投影上下文连接与权限

Install

npx skills add android/skills --skill projected-hardware -g -y
More Options

Non-standard path

npx skills add https://github.com/android/skills/tree/main/xr/projected-hardware -g -y

Use without installing

npx skills use android/skills@projected-hardware

指定 Agent (Claude Code)

npx skills add android/skills --skill projected-hardware -a claude-code -g -y

安装 repo 全部 skill

npx skills add android/skills --all -g -y

预览 repo 内 skill

npx skills add android/skills --list

SKILL.md

Frontmatter
{
    "name": "projected-hardware",
    "license": "Complete terms in LICENSE.txt",
    "metadata": {
        "author": "Google LLC",
        "keywords": [
            "Android XR",
            "intelligent eyewear",
            "audio glasses",
            "display glasses",
            "glasses hardware",
            "ProjectedContext",
            "projected context",
            "runtime permissions",
            "CameraX",
            "audio recording"
        ],
        "last-updated": "2026-10-17"
    },
    "description": "Provides instructions and workflows for accessing and managing hardware on Android XR projected devices, such as audio glasses and display glasses. Use this skill when building experiences for intelligent eyewear in an Android app and you need to access device hardware like the camera and microphone, handle glasses-specific runtime permissions, or manage connection lifecycles using projected context."
}

Prerequisites

  • You must use a compileSdk of 36 or higher.

Connection and lifecycle management

Intelligent eyewear hardware is only accessible while the glasses are connected to the host phone. Monitor connection state and manage resource lifecycles using ProjectedContext. You must read Understand projected activities and projected contexts to understand how to get a projected context and how to manage its lifecycle.

Request glasses hardware permissions

  • Hardware permissions and opt-in : You must read Request hardware permissions to understand how to declare camera and microphone runtime permissions in the Android Manifest file, request runtime permissions in different scenarios, and handle permission results.

Glasses hardware access and capabilities

Version History

  • 6daa53e Current 2026-11-02 23:11

Same Skill Collection

build-system/agp/agp-9-upgrade/SKILL.md
camera/camerax/SKILL.md
device-ai/ml-kit-genai-prompt-api/SKILL.md
devtools/android-cli/SKILL.md
identity/restore-credentials/SKILL.md
identity/verified-email/SKILL.md
jetpack-compose/jetpack-compose-performance/SKILL.md
jetpack-compose/migration/migrate-xml-views-to-jetpack-compose/SKILL.md
jetpack-compose/theming/styles/SKILL.md
media/media3-cast-integration/SKILL.md
navigation/navigation-3/SKILL.md
navigation/navigation-event/SKILL.md
performance/anr-audit-and-fix/SKILL.md
performance/r8-analyzer/SKILL.md
play/engage-sdk-integration/SKILL.md
play/play-billing-library-version-upgrade/SKILL.md
play/play-policy-insights/SKILL.md
profilers/perfetto-sql/SKILL.md
profilers/perfetto-trace-analysis/SKILL.md
security/android-intent-security/SKILL.md
security/android-permissions-security/SKILL.md
system/edge-to-edge/SKILL.md
system/glance-canonical-layouts/SKILL.md
testing/testing-setup/SKILL.md
wear/wear-compose-m3/SKILL.md
xr/display-glasses-with-jetpack-compose-glimmer/SKILL.md
cars/android-for-cars-parked-apps/SKILL.md
device-ai/appfunctions/SKILL.md
device-ai/litert/litert-lm/SKILL.md
device-ai/litert/litert-runtime/SKILL.md
device-ai/mlkit-agent-api/SKILL.md
jetpack-compose/adaptive/SKILL.md
jetpack-compose/ink/ink-app-builder/SKILL.md
jetpack-compose/ink/ink-custom-brush-builder/SKILL.md
profilers/android-profiler/SKILL.md
system/glance-appwidget-updates-and-memory/SKILL.md
tv/leanback-to-compose-tv-migration/SKILL.md
wear/wear-widgets/SKILL.md

Metadata

Files
0
Version
6daa53e
Hash
d674f4f3
Indexed
2026-11-02 23:11

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 10:09
浙ICP备14020137号-1