Inside AI
← Deep Dives
Deep dive / AI Wearables

How a view from the glasses reaches a phone

Trace one image through app registration, camera permission, preview and storage in Meta’s Android sample.

Device profile · Ray-Ban Meta ↗

Two permissions to think about

An Android Bluetooth grant lets the phone communicate with the glasses. Registration connects this particular app to Meta AI. The glasses-camera permission is separate: starting Preview checks it, and a first-time wearer is redirected to Meta AI to grant access. A denial leaves the session available for another attempt. Registration and permission model Preview permission check

Session → preview → still

Start Session selects a device and opens a connection. Preview attaches the camera to that session and starts the compressed stream. The sample decodes frames on the phone for display. Once streaming is active, Capture requests a still, decodes it and presents it for review. Stop Preview releases the stream; End Session releases the device connection. Camera lifecycle

Where the sound comes from

The optional sound-in-video path requests Android recording permission and opens the Bluetooth headset microphone route. The sample checks that the input is actually routed to the glasses. If routing fails, it proceeds with video only. The five-microphone array in the hardware description does not imply five independent app audio channels. Microphone array Audio routing Recording path

Where the media goes

A still is held in memory for review. Choosing Share creates a PNG in the phone app’s cache and hands a URI to the selected destination. Recorded MP4s also use the app cache; dismissing the video preview triggers an attempt to remove the temporary file. A recipient can retain its own copy. For this exercise, record framing scores and dismiss the still. Preview and share code Temporary clips Preview cleanup

The question software cannot answer

A fixed testing image can establish that Capture unlocks after Preview. It cannot tell you whether a wearer, while looking down at a screw, actually captured the label beside it. A physical test must keep the person, glasses fit, target and distance consistent. Run the framing test Mock test fixtures

Primary sources

Meta · CameraAccess 1.0.1 setup and run guide Meta · Supported glasses for the Device Access Toolkit Meta · Android DAT registration and permissions Meta · Camera session and capture implementation Meta · Glasses microphone routing Meta · Captured-media preview and sharing Meta · Android video recorder