r/googleglass • • 10h ago

AOSP 7.1.2 on Glass XE-C

7 Upvotes

Yeah, I had some desires. In particular, I wanted to turn Glass into a Bluetooth headset (for music) with a HUD. That means A2DP sink. That means ANCS (Apple's notifications). That means Bluetooth LE services -- on top of A2DP. All of that wraps together into bumping the Android version up a few notches.

After much kernel-patching (bringing in Unlegacy's 148-odd patches), we get the GPU driver to play ball, get the system to boot, get the audio pipeline working correctly, and...

What works so far:

  • Audio
  • Bluetooth A2DP sink (act as a stereo headset, where "stereo" means 44.1KHz mono here)
  • Display (can you tell? the screenshots aren't speckled with artifacts!)
  • Battery
  • ADB (had to do a LOT of debugging of that GPU driver and init process)
  • Touchpad gesture handler translates to keyboard/TV remote/phone buttons:

    • One-finger swipe left-right -> up/down D-pad
    • Two-finger swipe left-right -> left/right D-pad
    • One-finger swipe down -> Back button
    • Two-finger tap -> Home button
    • Two-finger swipe down -> Sleep/screen off
    • One-finger swipe up -> Tab key (jumps UI element groups sometimes when locked in an u-d-l-r box like reaching an "OK"/"Cancel" button set)
    • One-finger press and hold then swipe -> Volume up/down
  • WiFi (took a few more kernel patches)
  • Camera (don't really want it, but may as well make it feature-complete) - pending post update to site; involved a quick kernel patch to teach the driver the new two-stream camera format used in newer Android.

What's left:

  • My build is currently mega-stripped; removing all apps except Settings because who needs a calendar or contact list on this thing? I need to build some apps and a replacement launcher now!
  • Listening to music while staring at an empty pink launcher will get old by tomorrow :) More to come... implement the Now Playing info on-screen, make it friendlier to use, bring some daily-use functionality
  • Become a Glasshole in 2026 (see above: Camera)
  • Not yet tested:

    • phone calls (going from A2DP to phone audio for a call, & using Glass microphone)
    • microphone

Info, updates, and downloads will be posted under the project here: https://falconfour.com/projects/glass/