After building expo-liquid-glass-ui for React Native, I wanted to see if I could pull off the same Liquid Glass effect across Android itself. This root module hooks the function SurfaceFlinger uses for background blur, so anything the system already blurs, like notification cards, the volume panel and blurred dialogs, turns into glass without patching apps or themes. Turning it off brings back normal Android blur right away.
For the stuff Android doesn't blur by default, there's an LSPosed companion that handles Quick Settings tiles, launcher icons, folders, widgets and the lockscreen clock.
Hooking SurfaceFlinger's blur
Every background blur on Android ends up in the same place. When SystemUI or an app asks for a blur behind a window, SurfaceFlinger renders it through BlurFilter::drawBlurRegion. That function already gets passed the region's shape along with two textures, the sharp backdrop and a blurred copy of it, which happens to be everything I need for glass.
Because of that, the module only has to hook that one function. When glass mode is on, it draws refraction, chromatic dispersion around the rim and a lit edge using SurfaceFlinger's own copy of Skia. The shader maths is the same code from expo-liquid-glass-ui, which started from Kyant's AndroidLiquidGlass and was tuned against real iOS 26 glass.
A nice side effect is that any third-party app asking for blur gets glass for free. My patched Gboard already blurs behind its keys, so the keyboard turned into glass on its own without me writing a hook for it.
The full-screen blur behind the notification shade has a separate toggle. You can leave it as stock Android blur, soften it into a lighter veil, or turn it into glass too.
Finding Skia in a stripped binary
SurfaceFlinger has no SDK for its internals. Its copy of Skia is baked into the ROM and stripped of normal symbols. Luckily Android keeps MiniDebugInfo inside binaries for crash reports, which is basically a small xz-compressed symbol table. Since Android doesn't ship xz, the engine unpacks that table with XZ Embedded, looks up the Skia functions it needs by name, and uses Frida Gum to install the hook.
Because all of this is pretty ROM-dependent, the installer runs a small check against your ROM's SurfaceFlinger first and refuses to install if anything it needs is missing. There are also a couple of safety checks built in. If a boot fails with the module active, it disables itself on the next boot. If SurfaceFlinger restarts while glass is enabled, glass switches itself off automatically.
Adding blur where Android doesn't have one
Quick Settings tiles and launcher icons don't ask for a blur region, so the SurfaceFlinger hook never sees them. That's what the LSPosed companion is for. It attaches a BackgroundBlurDrawable from the window to each of those surfaces, using the same mechanism SystemUI uses for notification cards, and dials back the surface's own fill so the glass can show through.
On Android 17, Quick Settings moved completely to Compose, which meant there weren't any classic tile Views left to hook. I ended up hooking the composable that draws each tile instead.
Folders, widgets, the search box, heads-up notifications, sliders, the text selection toolbar and the screenshot UI all needed separate hooks as well.
The lockscreen clock
The lockscreen clock couldn't use BackgroundBlurDrawable because it's drawn as text rather than a separate window. For that one, the companion renders the glass itself inside SystemUI by building a distance field from the digit shapes, capturing whatever is behind them, and running an AGSL shader over it.
crDroid also includes Pixel's clock faces as plugins, and each plugin loads in its own class loader. The companion intercepts each face when SystemUI hands it over so every digital clock face gets the glass shader. The one at the top of this post is Calligraphy.
I actually used Inflate before I got the clock glass working, then switched right after seeing it. Because its digits overlap, completely clear glass turned the whole clock into one grey blob. I made each digit keep half of its original colour under the glass by default to fix that, though on Inflate it still looked more like plastic to me, so I moved over to Calligraphy.
Bugs I only hit on real hardware
I did most of the development on Android 16 and 17 emulators, which run x86-64. Moving over to my arm64 phone immediately surfaced bugs the emulator never triggered.
The very first glass frame on my phone sent SurfaceFlinger into a crash loop. On arm64, functions returning an object by value usually receive the output address in register x8, but in this ROM's build Skia's MakeForShader expected that pointer in x0 instead. On x86-64 both conventions land in the same register, so the emulator was happy. To deal with that, the engine now inspects the first few instructions of those functions before calling them.
Updating the module live also crashed SurfaceFlinger once, and tracing it was interesting:
- KernelSU 3's meta-overlayfs copies updated module files into the folder backing the live
/systemoverlay, andcpoverwrites the existing file in place. - SurfaceFlinger still had the engine library mapped in memory. Truncating a mapped file drops every process's private pages for it, including the pages where the dynamic linker wrote relocations.
- The very next PLT call jumped to an unrelocated address and blew up.
Now the installer renames each running file out of the way and swaps in a fresh copy before the metamodule copies anything over. That keeps the old file mapped and intact until you reboot. I've updated the module on my phone twice since making that change, and SurfaceFlinger stayed up both times.
Where things stand
This is still experimental and requires root. It targets Android 14 through 17 on KernelSU, Magisk or APatch, and if you're on KernelSU 3 you'll also need a metamodule like meta-overlayfs. My daily test device is a Poco F3 running crDroid 13.1 on Android 17.
To try it out, flash the v0.4.14 module zip in your root manager and reboot. Glass starts out disabled until you flip it on from the module's Action button, its WebUI or glassctl. Once you've done that first reboot, toggling it on and off works live.
If you also want glass on Quick Settings, the launcher and the lockscreen clock, install the companion APK, enable it in LSPosed with System UI and your launcher in scope, and reboot once more. Checksums for both files are in the README.
I keep a fourth home screen page as a stress test with a large widget, a 4x1 widget and 15 icons, all rendered as glass. It caught a bug last night where 17 pieces of glass from that page got stuck on screen at 80% scale on top of every other page until I swiped back to page four. Fixing that and doing a performance pass are next on my list. Glass is pretty fill-rate heavy, and the numbers from expo-liquid-glass-ui already showed how fast dropped frames climb once glass covers more than half the screen.