Projected Hardware
Organizationandroid
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.
Overview
- Repository
- android/skills
- Publisher
- android
- Stars
- 10.5K
- Forks
- 695
- Bundled files
- 4
- License
- Apache-2.0
- Updated
- Nov 11, 2026
Installation
tmp=$(mktemp -d)
git clone --depth 1 https://github.com/android/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/xr/projected-hardware" ~/.claude/skills/projected-hardware
rm -rf "$tmp"tmp=$(mktemp -d)
git clone --depth 1 https://github.com/android/skills.git "$tmp"
mkdir -p ~/.codex/skills
cp -R "$tmp/xr/projected-hardware" ~/.codex/skills/projected-hardware
rm -rf "$tmp"Install the Projected Hardware agent skill from https://github.com/android/skills/tree/main/xr/projected-hardware into this project's skills folder.Instructions
Prerequisites
- You must use a
compileSdkof 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
- Camera capture and CameraX : You must read Capture an image with the glasses' camera to understand the implementation patterns for capturing a photo with the glasses' camera using a
ProjectedContext.
Bundled files
references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md27 KBreferences/android/develop/xr/jetpack-xr-sdk/glasses/check-availability.md5 KBreferences/android/develop/xr/jetpack-xr-sdk/glasses/support-different-types.md9 KBreferences/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md10 KB
FAQ
What does Projected Hardware do?
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.
Who made Projected Hardware?
android (an organization) publishes it in the android/skills repository on GitHub.
Is Projected Hardware free?
Yes. Projected Hardware is open source, published by android under the Apache-2.0 license.
What comes with Projected Hardware?
Its instructions and 4 files the agent reads only when a task needs them, such as references, examples or scripts.
Which agents can use Projected Hardware?
Any coding agent that reads SKILL.md files, including Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI. The agent loads the skill when a task matches its description.
What are agent skills?
An agent skill is a folder with a SKILL.md file: instructions that teach a coding agent how to do one kind of task, and optionally files it can read while it works. The agent keeps only the skill's name and description in mind and reads the rest when a task calls for it.
How are agent skills different from MCP servers?
An MCP server gives an agent new tools to call, code that runs somewhere and returns results. A skill gives it knowledge: how to approach a task with the tools it already has. Many agents use both.
How can my agent test my Android app?
Robomori lets coding agents create, start and control Android emulators and devices from one command, so they can install your app, take screenshots and check dark mode, font sizes and languages.