Part 2 of 2 · Google Glass Explorer Edition: turning it into a Bluetooth headset with a display
activestarted 2026-12-02 · updated 2026-12-03

Building my own Android 5.1 ROM so Glass works as a Bluetooth headset

Glass's Bluetooth could only send audio, never receive it. After patching binaries hit a wall, I rebuilt AOSP 5.1.1 for Glass from source with the A2DP sink compiled in. Now my iPhone plays music through the bone-conduction speaker, even with the screen off, and a gesture daemon makes the touchpad usable.

After the bring-up, Glass worked but played nothing except system sounds. Audio was next on the list. I didn’t expect that to end with me building Android from source.

Step one: just play a song

Unit #1 runs XE24 and its adb shell is already root (it has an insecure boot image, but no su). Claude made WiFi adb survive reboots with setprop persist.adb.tcp.port 5555, and I unplugged the cable from my head.

Glass has no music player, and nothing answers a “play this audio file” request. But the stock video player happily plays audio files, FLAC included:

adb shell am start -a com.google.glass.action.VIDEOPLAYER --es video_url file:///sdcard/Music/song.flac

It even has decent controls: swipe to scrub, tap to pause, swipe down to quit. It stops the moment the screen sleeps, though, and pushing files over WiFi adb crawls at about 275 KB/s. Fine for a party trick, useless day to day.

The real idea: a Bluetooth headset with a display

What I actually wanted was to pair my iPhone and have Glass show up as a headphone, so anything on the phone plays in my skull. In Bluetooth terms, Glass needs to be an A2DP sink (a receiver).

The XE24 Bluetooth stack can only send A2DP audio. It has an SBC encoder and no decoder. It does have the hands-free client role, which is how Glass handled phone calls: mono, phone-call quality. Dead end on stock firmware.

Detour: someone else’s ROM

jtxdriggers released an AOSP 5.1.1 ROM for Glass in 2016. The original download is dead, but it’s mirrored on archive.org. Lollipop’s Bluetooth stack can be a sink; that code exists for car head units. I flashed it to unit #1.

Things I learned the hard way:

  • Modern fastboot hangs Glass’s 2013 bootloader. It asks questions the bootloader doesn’t understand. The old platform-tools r28.0.2 works.
  • The bootloader falls off USB after a write, especially writes to boot. Our first flash skipped the data wipe because of it, and the ROM booted into a useless state. A wipe from recovery fixed it. These days I flash in pieces and power-cycle back into fastboot between them.
  • On this ROM the touchpad becomes an absolute touchscreen: wherever your finger is on the arm, that’s where you’re “touching” the screen. Weird and nearly unusable.

Then the patching. Claude:

  1. Flipped the Bluetooth app’s profile switches to sink, hands-free client and remote control.
  2. Re-signed it with the public AOSP test key, which happens to be what this ROM is signed with.
  3. Patched the Bluetooth library so Glass announces itself as a wearable headset instead of a phone.

The iPhone never starts A2DP on its own; a car head unit has to ask. So Claude wrote a small app, GlassSink, that makes Glass connect to the phone like a car stereo would.

It got close enough to hurt. The iPhone listed “Glass 1” as an audio output, my music app’s clock kept ticking, the stream negotiated all the way to START… and silence. The receive side of the Bluetooth stack had been compiled out (BTA_AV_SINK_INCLUDED=FALSE, the AOSP default). No amount of binary patching brings back code that was never built.

The funny part: the ROM’s author said at the time that A2DP sink didn’t really make sense on Glass. I’d argue it’s the daily use case for the thing.

Building Android myself

If a random forum user could build this ROM from source in 2016, so could I. All the pieces are still online:

I set up a spare Linux laptop as the build box. AOSP 5.1 wants Ubuntu 14.04 and OpenJDK 7, so it builds inside a ubuntu:14.04 Docker container on a modern distro. Claude ran it overnight while I slept.

  • The GPU driver was the trap. The current OMAP4 graphics code wouldn’t build against the Glass tree. Claude matched jtxdriggers’ working ROM file-by-file and pinned the TI repos to the April 2016 commits he must have used (PowerVR DDK 1.9@2291151).
  • First it built a stock rebuild that matches his ROM, the same drivers and firmware but a userdebug build.
  • Then the real one: BTA_AV_SINK_INCLUDED TRUE, device class 0x240404 (audio/video, wearable headset), receiver profiles on and sender profiles off.
  • A clean build takes about 40 minutes; small changes take 2–10.

About phone on my own build: model Glass 1, Android 5.1.1 Build number on Unit A: aosp_glass_1-userdebug 5.1.1, with a kernel built the same morning

We have music

In the sink build, the Bluetooth stack decodes the SBC audio and hands raw sound out over a local socket. Normally Android’s Bluetooth audio driver reads that socket, and this ROM doesn’t have one. So GlassSink became the player too:

  • it reads the 44.1 kHz stereo stream;
  • downmixes it to mono, which also dodges this ROM’s bug of playing only the left or right channel;
  • plays it through the speaker;
  • runs as a foreground service holding a wakelock, so it keeps going with the screen off.

I paired the iPhone, hit play, and… music. Out of the bone-conduction speaker. It sounds genuinely good, and the bass is tickly.

GlassSink in the notification shade: “Playing 44100 Hz”. The white streaks are a screenshot-only bug; the prism shows a clean picture.

  • Screen off: keeps playing.
  • After a reboot: the iPhone reconnects and resumes on its own.
  • Volume: it was quiet at first. The iPhone shrinks the audio before sending it, and Glass’s own speaker volume defaulted to 11/15. With Glass at 15 the iPhone’s volume works as the knob. Proper headset-style volume (AVRCP absolute volume) is a to-do.

Those white streaks show up in every screenshot from this ROM, and briefly on the real display during the screen-off fade, which animates from a screenshot. zeroxxDEV hit the same thing getting AOSP 6.0.1 running on Glass XE. It’s the old PowerVR driver misreading its own memory. The display itself is clean.

Making the touchpad usable

Pairing exposed the next problem: you have to tap Pair on screen, and with the touchpad acting as a touchscreen that’s nearly impossible. Claude ended up tapping it for me over adb.

The fix had two halves:

  1. Android 5.1 lets you list input devices it should ignore (/system/etc/excluded-input-devices.xml). The touchpad (sensor00fn11) went on the list.
  2. GlassNav is a small root daemon that reads the touchpad raw, recognizes gestures, and injects key presses:
Gesture Key What it does
Slide forward / back DPAD_DOWN / DPAD_UP, one per ~1/8 of the pad walk through lists, scrub by sliding
Two-finger slide DPAD_RIGHT / DPAD_LEFT flip launcher pages, hop across tabs
Tap DPAD_CENTER select; wakes the screen if it’s off
Swipe down BACK back
Swipe up TAB escape hatch to the next group of controls
Two-finger tap HOME home
Two-finger swipe down POWER screen off

The first version used TAB for forward/back. That was my own “tab-tab-tab” idea, and it turned out to be the least correct way to navigate Android. Lists only move with arrow keys, so I could scroll About phone into view but never select anything in it. Arrow keys fixed it.

Then I couldn’t see what was selected. Android 5’s Material theme marks focus with a 12% grey wash, which is invisible on Glass. Claude patched that one colour in Android’s core resources to a 50% cyan, and suddenly every stock screen has a visible highlight. I also killed the lock screen.

Settings with the new cyan focus highlight on Bluetooth

With that, I can get around nearly all of Settings and the launcher with swipes and taps. The camera app crashes on launch; I haven’t looked into it yet.

Where it stands

  • Working on Unit A: iPhone → Glass music over Bluetooth A2DP, screen-off playback, auto-reconnect after a reboot, touchpad navigation of stock Android, visible focus, no lock screen.
  • Still a stopgap: GlassNav, the highlight and the lock-screen setting were installed by hand. I’m building them into the ROM itself next, along with GlassSink as a built-in app and saner first-boot defaults.
  • Next ideas, not started: iPhone notifications and now-playing info via Apple’s Bluetooth LE notification and media services (ANCS/AMS, which smartwatches use without an iOS app); headset-style volume; and the big one, replacing the phone UI with a Glass-native card UI.

The download is the work as it stands, not a product: GlassSink and GlassNav source and APKs, plus the scripts that patch the device tree and flash Glass.

Credits

  • jtxdriggers (justindriggers) for the AOSP 5.1.1 Glass ROM and the device, kernel and vendor trees it’s built from.
  • Unlegacy-Android for keeping OMAP4 AOSP alive.
  • sbauwow/glass-apps for showing people are still building for this ROM in 2026.
  • zeroxxDEV on r/googleglass for the AOSP 6.0.1 port, and for confirming the screenshot artifacts aren’t just me.