Skip to content
HardwareLab

xg.glass SDK

xg.glass is one SDK for smart-glasses apps from HKUST: camera, microphone, display and audio, working across Rokid, Meta, Brilliant Labs Frame, RayNeo, INMO, Omi and a simulator.

Hardware:
Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo
Difficulty:
Advanced
Creator:
hkust-spark

One API for camera, mic and display across many glasses.

xg.glass SDK
No photo in the source; GitHub repository card, served from HardwareLab.

By hkust-spark

Posted

What it does

xg.glass is one SDK for smart-glasses apps from HKUST: camera, microphone, display and audio, working across Rokid, Meta, Brilliant Labs Frame, RayNeo, INMO, Omi and a simulator.

What you need

Difficulty
Advanced
License
No license stated

Parts

  • Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo

Full build guide

Steps

Difficulty
Advanced
  1. One extra repository is required in settings.gradle.kts: https://maven.rokid.com/repository/maven-public/ with includeGroupByRegex("com\\.rokid(\\..+)?").
  2. app module build.gradle.kts: implementation("io.github.hkust-spark:xgglass-universal:0.3.0").
  3. App module build.gradle.kts: compileSdk = 36, minSdk = 28, JavaVersion.VERSION_17.
  4. src/main/AndroidManifest.xml: CAMERA and RECORD_AUDIO permissions.
  5. For Rokid, swap SimulatorGlassesClient(this) for RokidGlassesClient(this); it implements the same GlassesClient API.

Full instructions: View original

How it works

It wraps the various vendors' SDKs behind four interfaces: video in, audio in, display out and audio out. The same app code runs on any supported pair or on the simulator. Support levels vary by device; for example, RayNeo X2 supports video streaming and battery events. Android, iOS and CLI tools are included.

Limits and caveats

  • The SDK minSdk is 28; Meta support and the RayNeo glasses host require minSdk 29.
  • RayNeo support additionally requires the vendor AARs downloaded from RayNeo's developer docs.
  • Frame is only the bridge API from Maven; a working Frame integration needs the source/CLI flow because the embedded Flutter module is not published.

Like this build? Get the weekly builds

Every Thursday: the 5 best gadget hacks you can copy. Free.

Built something? Submit a build

Hardware

  • Rokid, Meta Ray-Ban, Brilliant Frame, RayNeo

Open source smart glasses: AI glasses and Meta Ray-Ban apps →

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

Featured? Add this badge

Built this? Paste the badge into your README. It links back to this page.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](https://hardwarelab.dev/projects/xg-glass-sdk/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)

HTML

<a href="https://hardwarelab.dev/projects/xg-glass-sdk/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>