Skip to content

About

๐Ÿ“บ Android TV debloated and dressed as an Apple TV: a Liquid Glass home screen over rotating photos of Spain, plus an ADB toolkit that strips telemetry and ads. No root, no Gradle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“บ LiquidTVOS

Android TV Java Python ADB No Gradle Open-Meteo Wikimedia Commons Xiaomi

Your Android TV box, debloated and dressed as an Apple TV. A tiny home screen with Liquid Glass surfaces over rotating photos of Spain, plus a toolkit that strips the manufacturer's telemetry and ads โ€” all over Wi-Fi, from your computer, nothing rooted. ๐Ÿโœจ

Stock Android TV launchers are slow, crammed with "recommended" rows you never asked for, and the box ships with analytics and ad-tracking services running in the background. LiquidTVOS replaces the home screen with a clean, fast one that runs happily on a 2 GB box, and its scripts disable the junk with pm disable-user โ€” which is fully reversible. โšก

Home screen

๐Ÿงญ Top bar ๐Ÿ”ฒ App grid ๐ŸŒ™ Screensaver
Top bar App grid Screensaver
โœ๏ธ Editing the dock ๐Ÿ” Picking an app
Edit dock App picker

โœจ What you get

๐ŸชŸ The home screen

  • ๐Ÿ’ง Liquid Glass โ€” the dock, the pills and the focus are glass that shows the real photo behind them, blurred. The blur is computed once when the APK is built, so the box never blurs anything at runtime.
  • ๐Ÿซง One liquid focus that stretches towards where it is going and springs back when it lands, instead of a border on every tile.
  • ๐Ÿ‡ช๐Ÿ‡ธ 35 photos of Spain (Alhambra, Sagrada Famรญlia, Teide, Cuenca, Ronda, Cabo de Gataโ€ฆ) that change every 3 minutes and every time you come back home, with the place and the author shown above the dock.
  • ๐ŸŒค๏ธ Weather next to the greeting โ€” temperature and sky for your town, from Open-Meteo.
  • ๐ŸŽ›๏ธ Top bar: โœ๏ธ edit the dock ยท ๐Ÿ—‘๏ธ free memory ยท ๐Ÿ“ถ Wi-Fi (shows the network name) ยท โš™๏ธ Settings. The focused one says what it does.
  • ๐Ÿ”ฒ App grid under the dock, on a blurred version of the photo; every app you install shows up on its own.
  • ๐ŸŒ™ Screensaver โ€” after a minute without touching the remote only the photo and its place stay on screen.
  • ๐Ÿงญ Deterministic remote: Up/Down move exactly one row, the ends of a row stop, and the last tile of every row is remembered.

๐Ÿงน The toolkit

Script What it does
tools/setup.py Downloads adb and the Android SDK into the repo (Windows, macOS, Linux)
tools/backup.py Saves the TV's package lists, settings and props before you change anything
tools/debloat.py Disables packages one by one, checks each one really got disabled, and logs it
tools/restore.py Re-enables everything the debloat disabled, and gives the stock launcher back
tools/build_launcher.py Builds the launcher APK without Gradle and installs it as the default Home
tools/tv.py ADB helper: run a command, press remote keys, take a screenshot
tools/adb-closed.py Proves network ADB is closed when you are done
tools/fetch_photos.py ยท tools/prepare_photos.py Find, download and prepare background photos from Wikimedia Commons

๐Ÿงฐ Tech stack

Area Technology
Launcher Java ยท plain Android framework (no AndroidX) ยท minSdk 26 / targetSdk 35
Glass Custom Drawable sampling a build-time blurred copy of the photo โ€” no RenderEffect, no runtime blur
Build aapt2 + javac + d8 + zipalign + apksigner, driven by Python โ€” no Gradle
Remote apps button AccessibilityService with key filtering (the system keeps KEYCODE_ALL_APPS for itself)
Weather Open-Meteo forecast + geocoding (no API key)
Photos Wikimedia Commons, cropped to 1920ร—1080 with Pillow
Font Fira Code, subset to Latin with fontTools
Device control ADB over Wi-Fi (port 5555)
CI/CD GitHub Actions โ€” automatic version, tag, release and APK on every push

โœ… Will it work on my TV?

Device Works?
๐Ÿ“ฆ Android TV / Google TV boxes and TVs โ€” Xiaomi Mi Box, TCL, Hisense, Sony, Philips, Nvidia Shield, OnePlus, Realmeโ€ฆ โœ… Yes, Android 8.0 or newer
๐Ÿ“บ Samsung (Tizen), LG (webOS) โŒ No โ€” not Android
๐Ÿ”ฅ Amazon Fire TV โŒ No โ€” Fire OS refuses pm disable-user and third-party launchers
๐Ÿ‡จ๐Ÿ‡ณ China-market sets that refuse every sideloaded APK (INSTALL_FAILED_VERIFICATION_FAILURE) โš ๏ธ Debloat only, no launcher

Check your TV's Android version: Settings โ†’ Device Preferences โ†’ About โ†’ Version. It was built and tested on a Xiaomi Mi Box 4 (Android 9, 2 GB RAM); profiles/mibox4.txt is its debloat list.


๐Ÿš€ Quick start

git clone https://github.com/Ren0X1/LiquidTVOS.git
cd LiquidTVOS
python tools/setup.py                 # adb + Android SDK into the repo
cp local.example.json local.json      # then put your TV's IP in it
python tools/tv.py getprop ro.build.version.sdk   # first connection: accept the prompt on the TV
python tools/backup.py                # save the TV's current state
python tools/build_launcher.py        # build, install, set as Home

Press Home on the remote โ€” you are in LiquidTVOS. ๐ŸŽ‰ The steps below explain each one.


๐Ÿ“– Full guide

1๏ธโƒฃ Turn on developer mode on the TV

  1. Settings โ†’ Device Preferences โ†’ About โ†’ press OK on Build seven times until it says you are a developer.
  2. Back to Device Preferences โ†’ Developer options โ†’ turn on USB debugging (and Network debugging / ADB debugging if your TV shows it).
  3. Write down the TV's IP: Settings โ†’ Network & Internet โ†’ your Wi-Fi.

๐Ÿ’ก On some Google TV sets only Wireless debugging exists. Pair once from your computer with platform-tools/adb pair <ip>:<pairing port> (the code is under Wireless debugging โ†’ Pair device with pairing code), then adb connect <ip>:<port> and adb tcpip 5555.

โš ๏ธ Some boxes cut the power of their USB port while USB debugging is on. A USB drive or speaker plugged into the box goes dead until you switch debugging off again.

2๏ธโƒฃ Install the tools on your computer

You need Python 3.9+ and a JDK 17 or newer (Temurin is fine).

OS Commands
๐ŸชŸ Windows winget install Python.Python.3.13 EclipseAdoptium.Temurin.21.JDK
๐ŸŽ macOS brew install python openjdk@21
๐Ÿง Linux (Debian/Ubuntu) sudo apt install python3 python3-pip openjdk-21-jdk-headless

Then, from the repo folder:

pip install pillow fonttools          # only needed to change photos or fonts
python tools/setup.py

setup.py downloads Google's platform-tools (adb) and the Android command-line tools with platforms;android-35 and build-tools;35.0.0 into the repo, and accepts the SDK licences. If you already have an SDK, set ANDROID_HOME and it uses that one.

3๏ธโƒฃ Tell the tools where your TV is

cp local.example.json local.json
{
  "tv_host": "192.168.1.50",
  "tv_port": 5555,
  "weather_city": "Sevilla, ES"
}

local.json is in .gitignore: your IP and your town never reach git. weather_city takes a town with an optional two-letter country code; leave it empty to guess from your internet connection (which may land on your ISP's city).

Now connect once:

python tools/tv.py getprop ro.build.version.sdk

๐Ÿ‘‰ The TV shows "Allow USB debugging?" โ€” tick Always allow from this computer and accept. The command prints a number: 26 or higher means the launcher will install.

4๏ธโƒฃ Back up first

python tools/backup.py

Writes backup/<date>/ with every package list, all settings, getprop, the display size/density, the apps that answer Home and a screenshot of your stock home screen.

5๏ธโƒฃ Install the launcher

python tools/build_launcher.py

It builds launcher/build/liquidtvos.apk, installs it with pm install (no on-screen prompt to hang on), grants the location permission the Wi-Fi pill needs to show the network name, turns on the remote-button service, and makes it the default Home.

๐Ÿ“ฆ Rather not build? Every release has a ready APK: platform-tools/adb install -r LiquidTVOS-vX.apk. It uses the default settings (weather guessed from your connection).

Check it really owns Home:

python tools/tv.py "dumpsys activity activities | grep mResumedActivity"

If the stock launcher still answers the Home button, disable it in step 6 โ€” on many boxes set-home-activity says Success and changes nothing while the stock launcher is enabled.

6๏ธโƒฃ Debloat (optional, reversible)

Open the profile for your device (or copy profiles/mibox4.txt and adapt it), comment out what you use, then:

python tools/debloat.py -f profiles/mibox4.txt
  • Packages are disabled for user 0 with pm disable-user โ€” never uninstalled, so a factory reset or restore.py brings them back.
  • One package per call, and each one is checked against pm list packages -d instead of trusting the exit code.
  • Everything disabled is logged in debloat/disabled.txt, which restore.py reads.
  • Never disable Play Store, Play Services, the keyboard, Bluetooth, the remote pairing service, Settings, or the TV/input apps of a real TV. When a manufacturer package name says nothing, look at it first with python tools/tv.py dumpsys package <name> โ€” don't launch anything named factory, fac menu or AT.
  • Disable the stock launcher last, after LiquidTVOS works.

Reboot once and check nothing came back:

python tools/tv.py reboot
python tools/tv.py pm list packages -d

7๏ธโƒฃ Make it yours

What How
๐Ÿ“Œ Dock apps On the TV: โœ๏ธ pencil โ†’ pick a slot โ†’ pick an app, or Remove from dock. Saved on the box. Default order: dock_packages in launcher/res/values/config.xml
๐Ÿ™ˆ Hide apps from the grid Add the package to hidden_packages in config.xml, rebuild
โฑ๏ธ Photo interval photo_minutes in config.xml (default 3), rebuild
๐ŸŒค๏ธ Weather town weather_city in local.json, rebuild
๐Ÿ–ผ๏ธ Your own photos See below
๐Ÿ”ค Language The UI text is Spanish; translate launcher/res/values/strings.xml

Changing the photos โ€” edit photos/raw/chosen.json (place, city, author, licence and the image URL), then:

python tools/fetch_photos.py download     # into photos/raw/
python tools/prepare_photos.py            # 1920ร—1080 + blurred copy + index.json
python tools/build_launcher.py

tools/fetch_photos.py candidates searches Commons (Featured pictures first, then Quality images) for the places listed in the script, if you want ideas.

8๏ธโƒฃ Extras

๐Ÿ›ก๏ธ Ad-blocking DNS (Android 9+) โ€” blocks ads and trackers in apps and websites, not YouTube ads:

python tools/tv.py settings put global private_dns_specifier dns.adguard-dns.com
python tools/tv.py settings put global private_dns_mode hostname

Undo: python tools/tv.py settings put global private_dns_mode opportunistic

๐Ÿ”Š Quiet dialogue in Netflix / Prime Video โ€” those apps send 5.1 audio, and many boxes downmix it to stereo with the voices far below the effects. Let the TV do the downmix instead:

python tools/tv.py settings put global encoded_surround_output_enabled_formats 5,6
python tools/tv.py settings put global encoded_surround_output 3

Then turn on your TV's dialogue / voice mode. If Netflix goes silent, your TV doesn't take Dolby Digital Plus: python tools/tv.py settings put global encoded_surround_output 1.

9๏ธโƒฃ Close ADB when you are done ๐Ÿ”’

Port 5555 is plain text; while it is open, anything on your network can get a shell on the TV.

  1. Developer options โ†’ Revoke USB debugging authorisations, then turn USB debugging off.
  2. Reboot the TV.
  3. Check:
    python tools/adb-closed.py
    Only CLOSED (connection refused) proves it. A timeout just means the TV did not answer.

Turn debugging back on whenever you want to change something.


๐ŸŽฎ Using it

Remote On the home screen
โฌ…๏ธโžก๏ธ Move along a row (stops at the ends)
โฌ†๏ธ Dock โ†’ top bar ยท grid โ†’ the row above
โฌ‡๏ธ Top bar โ†’ dock โ†’ app grid, one row at a time
๐Ÿ†— Open the app / press the button
๐Ÿ†— hold 1 s App โ†’ its info screen (uninstall, force stop) ยท ๐Ÿ—‘๏ธ โ†’ Storage (clear cached data)
๐Ÿ”ฒ Apps button Open the app grid from anywhere โ€” press again to go back to the dock
โ†ฉ๏ธ Back Back to the dock / leave the dock editor
๐Ÿ  Home Always back here

๐Ÿ“ Repository layout

LiquidTVOS/
โ”œโ”€โ”€ launcher/                    # ๐Ÿ“บ the home screen app
โ”‚   โ”œโ”€โ”€ AndroidManifest.xml
โ”‚   โ”œโ”€โ”€ src/com/alex/tvhome/
โ”‚   โ”‚   โ”œโ”€โ”€ HomeActivity.java    #    layout, focus, photos, dock editor, screensaver
โ”‚   โ”‚   โ”œโ”€โ”€ GlassDrawable.java   #    the liquid glass surface
โ”‚   โ”‚   โ”œโ”€โ”€ Weather.java         #    Open-Meteo
โ”‚   โ”‚   โ””โ”€โ”€ KeyService.java      #    catches the remote's apps button
โ”‚   โ”œโ”€โ”€ res/values/config.xml    #    dock, hidden apps, photo interval
โ”‚   โ””โ”€โ”€ assets/                  #    photos (+ blurred copies, index.json) and Fira Code
โ”œโ”€โ”€ tools/                       # ๐Ÿงฐ Python scripts (setup, backup, debloat, restore, buildโ€ฆ)
โ”œโ”€โ”€ profiles/mibox4.txt          # ๐Ÿงน debloat list for the Xiaomi Mi Box 4
โ”œโ”€โ”€ photos/raw/chosen.json       # ๐Ÿ‡ช๐Ÿ‡ธ photo sources, authors and licences
โ”œโ”€โ”€ docs/                        # ๐Ÿ“ธ screenshots and photo credits
โ”œโ”€โ”€ local.example.json           # โš™๏ธ copy to local.json (TV IP, weather town)
โ””โ”€โ”€ .github/workflows/release.yml

๐Ÿงฏ Troubleshooting

  • No TV address โ€” create local.json from local.example.json, or TV_HOST=192.168.1.50 python tools/tv.py โ€ฆ.
  • unauthorized โ€” look at the TV: accept the Allow USB debugging? prompt, ticking Always allow.
  • Port 5555 closed โ€” the TV may only offer Wireless debugging; see the tip in step 1. Android turns Wireless debugging off whenever Wi-Fi drops.
  • INSTALL_FAILED_OLDER_SDK โ€” the TV runs Android 7 or older; the launcher needs 8.0+. The debloat still works.
  • INSTALL_FAILED_VERIFICATION_FAILURE on every APK โ€” the firmware refuses sideloading. Debloat only.
  • INSTALL_FAILED_UPDATE_INCOMPATIBLE โ€” the installed copy was signed with another key (a release APK vs. your own build). python tools/tv.py pm uninstall com.alex.tvhome and install again.
  • Home still opens the stock launcher โ€” disable it (com.google.android.tvlauncher on Android TV) after LiquidTVOS is installed. On Google TV the setup wizard (com.google.android.tungsten.setupwraith) can also claim Home: check dumpsys wifi | grep -o 'cname=[^ ]*' first, because disabling it deletes a Wi-Fi network saved during first setup.
  • Empty app grid โ€” Android 11+ hides apps without <queries>; the manifest has it, so rebuild from this repo rather than an old APK.
  • Wi-Fi pill says "Wi-Fi" instead of the network name โ€” the location permission was not granted: python tools/tv.py pm grant com.alex.tvhome android.permission.ACCESS_FINE_LOCATION.
  • The apps button does nothing โ€” the accessibility service is off: Settings โ†’ Device Preferences โ†’ Accessibility โ†’ Botรณn de apps del mando, or run build_launcher.py again.
  • Screen looks zoomed after a reboot โ€” read wm size, wm density and settings get secure display_density_forced before touching the launcher; a leftover override is not a launcher bug.
  • Screenshots of Netflix, Live TV or HDMI are empty โ€” that's DRM, not a broken box.

๐Ÿงน Undoing everything

python tools/restore.py        # re-enables every disabled package, stock launcher back as Home, DNS off
python tools/tv.py pm uninstall com.alex.tvhome
python tools/tv.py reboot

Without a computer: Settings โ†’ Apps โ†’ See all apps โ†’ Show system apps โ†’ the app โ†’ Enable.


๐Ÿ“ธ Credits

Background photos: Wikimedia Commons contributors, under the licences listed in docs/PHOTO_CREDITS.md. Weather: Open-Meteo. Font: Fira Code (SIL OFL 1.1).


โš ๏ธ Disabling system packages can stop features you rely on (voice search, casting, firmware updates). Everything here is reversible, but read the profile before you run it.

๐Ÿ› ๏ธ LiquidTVOS by Ren0X1.

About

๐Ÿ“บ Android TV debloated and dressed as an Apple TV: a Liquid Glass home screen over rotating photos of Spain, plus an ADB toolkit that strips telemetry and ads. No root, no Gradle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages