Skip to content
Back to skills

Projected Hardware

ASecurity

Provides instructions and workflows for accessing and managing hardware

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
businessgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add network-user/dotcore-skills --skill projected-hardware --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Projected Hardware?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Projected Hardware
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/network-user-projected-hardware/badge)](https://www.skillsdirectory.com/skills/network-user-projected-hardware)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: projected-hardware
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.
license: Complete terms in LICENSE.txt
metadata:
  author: Google LLC
  last-updated: '2026-11-21'
  keywords:
  - Android XR
  - intelligent eyewear
  - audio glasses
  - display glasses
  - glasses hardware
  - ProjectedContext
  - projected context
  - runtime permissions
  - CameraX
  - audio recording
---

## 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](references/android/develop/xr/jetpack-xr-sdk/glasses/support-different-types.md) to understand
how to get a projected context and [how to manage its lifecycle](references/android/develop/xr/jetpack-xr-sdk/glasses/check-availability.md).

## Request glasses hardware permissions

- **Hardware permissions and opt-in** : You must read [Request hardware permissions](references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md) 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](references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md) to understand the implementation patterns for capturing a photo with the glasses' camera using a `ProjectedContext`.
- **Bluetooth HFP audio and host device context** : Read [Use a projected
  context to access hardware](references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md) to route `AudioRecord` to the glasses microphone over Bluetooth HFP (`TYPE_BLUETOOTH_SCO`, `VOICE_COMMUNICATION`, `setPreferredDevice`, and `setCommunicationDevice`) and to obtain the host phone context from a projected activity using `ProjectedContext.createHostDeviceContext(activity)` (annotated with `@OptIn(ExperimentalProjectedApi::class)` from `androidx.xr.projected.experimental.ExperimentalProjectedApi`).

Files in this skill

  • SKILL.md2.6 KB
  • references/android/develop/xr/jetpack-xr-sdk/access-hardware-projected-context.md30.8 KB
  • references/android/develop/xr/jetpack-xr-sdk/glasses/check-availability.md4.7 KB
  • references/android/develop/xr/jetpack-xr-sdk/glasses/support-different-types.md8.3 KB
  • references/android/develop/xr/jetpack-xr-sdk/request-hardware-permissions.md9.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.