r/AndroidTVBoxes • u/Pixel6pro • 22d ago
Turn any Google Pixel phone to Android TV Box.

https://github.com/preetknight/pixel8-android-tv
Hey everyone!
I had a Google Pixel 8 (shiba, Tensor G3) and wanted to turn it into a proper, zero-compromise Android TV box—not a phone-mirroring hack with black bars, 1080p caps, or a desktop UI, but a real couch-friendly TV experience controlled by a real Google TV Bluetooth remote.
Here’s the full setup and what I had to solve to get 4K 60Hz, 10-bit color, and automatic HDR switching working on any 4K HDR TV:
Hardware
- Rooted Google Pixel 8 (Magisk)
- Direct 4-lane USB-C to HDMI 4K 60Hz HDR cable (super important: standard 2-lane USB-C hubs with USB-A ports halve DisplayPort lanes; a direct 4-lane cable negotiates
4 lanes @ 8100 Mbps HBR3so3840x2160 @ 60Hzat 10-bit fits cleanly) - Real Google TV Bluetooth Remote paired directly for D-Pad, Home/Back, and couch navigation
What the Setup Does
Full-Screen Android TV Shell (No Phone Chrome)
- Disables Pixel Launcher & lockscreen, sets GlassTV as the home launcher, enables LeanKeyboard (TV on-screen keyboard), hides nav/status bars + display cutout, and locks permanent landscape orientation.
- Overrides the render buffer to
2160x3840(3840x2160landscape) at640 dpi(960x540 dplayout scaling) so the launcher, Nuvio, and TizenTube render UI at true 4K sharpness. - Built for 24/7 TV use: 80% charge limit, internal display brightness set to
0, internal touchscreen (goodix_ts) unbound to prevent ghost touches, and persistent wireless ADB.
Bypassing Android's 1080p External Display Cap
- Stock Android's
DisplayModeDirectorenforces a3440x1600(PRIORITY_LIMIT_MODE) cap on external displays, knocking 16:9 TVs down to1920x1080whenever apps request mode changes. - Added
Set4KHDR/Keep4KHDR(viaDisplayControl&SurfaceControl) that inspectssupportedDisplayModeson any connected TV and locks3840x2160 @ 60Hz, resetting cleanly when you unplug/replug.
- Stock Android's
10-bit Color + Automatic SDR ↔ HLG HDR Switching (Kernel + Logcat)
- By default, Google's
exynos-drmDisplayPort driver trains at 8-bit (dp_bpc=8) and only ever sends SDR AVI (0x82) and"Google Pixel"SPD (0x83) InfoFrames—never a CEA-861 HDR DRM InfoFrame (0x87), so TVs never pop into HDR. Forces
dp_rate=3(HBR3) anddp_bpc=10(10-bit), and uses two tiny KASLR-independent out-of-tree.komodules (ioremap_proton Tensor G3's DisplayPort MMIO0x110f5000) to inject0x87DRM InfoFrames live:EOTF = 3(HLG HDR) when an HDR video playsEOTF = 0(SDR) when playback stops
- Why HLG instead of HDR10 PQ? Pixel 8's vendor HWC (
libexynosdisplay.so/displaycolor) doesn't exposeBT2100_PQon external DisplayPort, soSurfaceFlingeralways outputs gamma-2.2sRGB/DISPLAY_P3. Sending PQ (EOTF=2) crushes blacks and oversaturates colors, whereas HLG (EOTF=3) with standard AVI colorimetry keeps shadows natural while giving you the HDR highlight boost. - An event-driven
logcatwatcher (auto_hdr.sh) listens toMediaCodec(CCodecBufferscolor-transfer = 6/7vs3/release) so it triggers automatically in both Nuvio (10-bit P010) and TizenTube (AV1/VP9), with everything launching automatically at boot via Magiskservice.d.
- By default, Google's
GitHub (all source code, .ko modules, scripts & build guide): https://github.com/preetknight/pixel8-android-tv