In short.
projected-hardware is a coding-assistant skill for Android developers adding camera and microphone features to glasses apps, but reliable integration depends on device-specific permissions and recovery from connection changes. Its entry file and four reference documents explain phone-hosted projected activities, CameraX capture, Bluetooth HFP audio and wear-state handling. Particularly useful details include a single-stream camera configuration requirement and separate phone-controlled permissions for Bluetooth recording. Exact dependency versions, supported hardware models and measured performance are unknown; compilation and runtime behavior have not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers SKILL.md and all four reference documents in xr/projected-hardware, together with the repository-level LICENSE.txt outside that folder, at commit c72942584fff970dac86ced78b367fce0c441e52. Other repository folders and external linked documents are excluded. The entry file relies on the bundled references, so preserving the folder structure matters. No code was executed; assistant loading, compilation, physical-device behavior, performance and end-to-end application operation remain unassessed.
The overview
Identity
projected-hardware is an instruction-based skill in the android/skills repository. Its metadata names Google LLC as author. The folder contains SKILL.md and four reference documents covering hardware access, device availability, projected activities and hardware permissions. Original source: [https://github.com/android/skills/tree/main/xr/projected-hardware].
The skill guides a coding assistant toward relevant implementation patterns. It does not supply a compiled Android library, an AI model or a complete glasses application.
Assessment
The strongest fit is an existing Android project adding glasses hardware features. The guidance addresses mistakes with direct user consequences: opening the phone camera instead of the glasses camera, treating a phone permission as a glasses permission, or retaining resources after a disconnect.
Its value comes from implementation detail, including camera capability queries and lifecycle transitions. The examples still require integration work, and the supplied evidence does not establish successful compilation, device compatibility or improved coding-assistant performance.
Users
The intended users are Android developers building experiences for audio glasses or display glasses, including camera-assisted text recognition, multimodal assistants and voice recording. The examples are most approachable with knowledge of Kotlin, coroutines, Android activities and runtime permissions.
For beginners, the key concept is that a phone hosts the projected activity while a device-aware context directs hardware calls to the glasses. Audio glasses support audio experiences; display glasses additionally support visual interfaces. The application should check capabilities rather than assume every glasses device has the same features.
Capabilities
The references explain how to obtain a projected context, monitor connectivity, observe whether glasses are worn and obtain the host phone context from a projected activity. Permission examples cover requests initiated from either a projected activity or a phone activity, including device-specific result handling.
Camera guidance covers CameraX ImageCapture setup and adaptation for ImageAnalysis or VideoCapture. It shows camera availability checks, Camera2 interoperability for supported resolutions and frame-duration queries for estimating per-resolution frame-rate limits.
The audio reference demonstrates Bluetooth Hands-Free Profile routing through AudioManager and AudioRecord. Its example uses 16 kHz mono, 16-bit PCM; the document describes HFP input as limited to 16 kHz. No transcription, recognition model or assistant backend is included.
Using it
Requirements
SKILL.md explicitly requires compileSdk 36 or higher. That build setting does not establish a single minimum runtime Android version for every example. The references use API-level annotations and experimental API opt-ins, but provide no complete compatibility matrix or exact Gradle dependency versions.
Projected camera access requires connected glasses, the appropriate context and explicit glasses permission. A phone camera grant alone is insufficient. Bluetooth HFP recording follows a separate phone-controlled permission path: declare RECORD_AUDIO, BLUETOOTH_CONNECT and MODIFY_AUDIO_SETTINGS, and request RECORD_AUDIO and BLUETOOTH_CONNECT at runtime.
Supported glasses models, host phone requirements and coding-assistant compatibility are unspecified.
Mechanism
A projected context tells device-aware Android APIs which device to address. A projected activity already has that context. Code in a phone activity or service obtains one through ProjectedContext.createProjectedDeviceContext after checking connectivity. The context becomes invalid on disconnect; reconnection requires a new instance and resource initialization.
Device availability and activity lifecycle are distinct. The XR device lifecycle uses STARTED for worn glasses, CREATED for connected but unworn glasses and DESTROYED for disconnection; it does not emit RESUMED. Separately, a projected activity can remain active when the glasses display turns off.
For phone hardware access from a projected activity, the reference uses createHostDeviceContext. It warns that getApplicationContext can resolve to the glasses context depending on which component launched most recently.
Setup
Keep SKILL.md with its four reference documents at their original relative paths so its local references remain usable. The folder supplies no assistant-specific installation command. For application integration, configure compileSdk 36 or higher and resolve the XR, lifecycle and CameraX dependencies required by the chosen examples; dependency versions are unspecified.
Declare only needed permissions, request them for the correct device and handle both denial and service-unavailable exceptions. Create hardware resources only after establishing a valid projected connection, then add cleanup for glasses removal and disconnection.
For ImageCapture used alone, the reference requires CameraXConfig.Builder.setRepeatingStreamForced(false) before camera-provider initialization. It explains that CameraX's default internal repeating stream can otherwise stall the glasses' single-stream camera pipeline. This setting is described outside the main camera snippet.
Example
A possible text-reading feature would obtain glasses camera permission, wait for connection and a worn-device state, then initialize CameraX with a projected context. It could use ImageAnalysis to deliver frames to a separately chosen text-recognition component, releasing camera resources when the glasses are removed or disconnected.
The reference offers 1920 × 1080 at 1 FPS as an illustrative OCR configuration. It explicitly requires runtime queries for supported sizes and frame rates, so those values are not a hardware guarantee. The skill supplies capture guidance; the recognition component and complete user experience remain application work.
Assessment & evidence
Limitations
The examples are partial integration patterns. The camera snippet binds ImageCapture but leaves taking a picture to linked documentation, and it does not implement disconnect cleanup. The audio snippet leaves the recording read loop as a comment. These gaps require application code.
The reference describes a single active camera stream and warns that unsupported resolutions are rejected. Heat can reduce frame rate without changing resolution. It also documents a known camera-stream interruption issue requiring phone camera permission in addition to glasses permission.
The frame-duration helper returns zero when timing data is unavailable, while the subsequent example derives a frame-rate range from that value. A code-reading inference is that an application needs an explicit fallback for this case. The examples do not establish that fallback or validate behavior on particular devices.
Compilation, reconnection reliability, permission-dialog behavior, capture quality and thermal performance remain unassessed.
Reasoning
Context choice, permission scope and connection lifetime determine whether an application accesses the intended hardware with the user's consent. Their treatment makes this skill particularly useful for hybrid applications containing both phone and glasses experiences.
The single-stream warning and runtime capability queries add practical detail beyond basic API usage. Their presence supports using the resource as integration guidance, while incomplete examples and absent runtime evidence limit confidence in any particular implementation.
Alternatives
Developers can use the Android hardware-access documentation directly without loading the skill into an assistant: [https://developer.android.com/develop/xr/jetpack-xr-sdk/access-hardware-projected-context]. The bundled reference material provides a captured version of that guidance.
Within the documented approach, an existing standard Bluetooth recorder may already support glasses microphone input through HFP. CameraX ImageCapture, ImageAnalysis and VideoCapture serve still photographs, frame processing and video respectively. The evidence provides no comparison with competing skills, SDKs or glasses platforms.
Evidence
The source snapshot contains the entry skill, all four reference documents in its folder and the parent repository's LICENSE.txt. All supplied files are pinned to commit c72942584fff970dac86ced78b367fce0c441e52. The pinned entry file is [https://raw.githubusercontent.com/android/skills/c72942584fff970dac86ced78b367fce0c441e52/xr/projected-hardware/SKILL.md].
The evidence consists of instructions, explanatory documentation and Kotlin examples. It contains no build receipts, physical-device results, benchmarks or demonstrations of improved assistant output. Linked material outside the supplied files has not been assessed.
Access & freshness
Costs
The Apache 2.0 licence grants copyright permissions without licence royalties. The supplied files give no prices for glasses, a host phone, coding-assistant access, development services or any separately added AI service.
Total adoption and operating cost are unknown. The evidence supplies no measured battery consumption or running-cost estimates.
Rights
SKILL.md points to LICENSE.txt for its complete terms. The supplied repository-level notice is Apache License 2.0, which permits reproduction, modification and redistribution subject to its conditions.
Redistribution requires a licence copy and retention of applicable source notices. Modified files must identify changes, and applicable NOTICE attributions must be carried forward if such a file accompanies the work. The licence provides no warranty and limits trademark permissions. Its contributor patent grant includes a patent-litigation termination condition.
Freshness
SKILL.md declares a last-updated date of 2026-11-13. The supplied snapshot was captured on 2026-11-17 at 05:48:11 UTC. These identify the documented revision; they do not establish compatibility with any particular installed SDK release.
The hardware reference explicitly says capabilities vary by device and that its frame-rate lower-bound behavior may change on future devices. Experimental API use and the documented camera-permission issue make dependency and device verification relevant. Changes after the captured revision are unknown.
Actions
Before integration, establish the intended glasses and host-phone combination, resolve compatible dependency versions and preserve the complete skill folder. Implement the appropriate glasses permission flow, the separate phone permission flow for HFP audio and explicit context selection for each hardware call.
Validate a small device implementation through permission denial, glasses removal, disconnection and reconnection. Check still capture with the required repeating-stream configuration, and handle unavailable frame-duration data before configuring streaming. For streaming, inspect frame timestamps under changing thermal conditions; for audio, confirm routing and cleanup. These are recommended validation steps, not completed tests.
