A feature-rich, remote-first web browser for Google TV / Android TV, distributed as a sideloaded APK (via the Downloader app) with configurable ad/popup blocking and reliable fullscreen HTML5 video playback.
General-purpose browser. It renders sites the way Chrome/Firefox do and contains no DRM/anti-circumvention bypass, stream extraction, or paywall-bypass logic.
Open the Downloader app on your Fire TV / Google TV and enter this code:
| Downloader code | 2453488 |
| Short URL | aftv.news/2453488 |
| Direct (always latest) | https://github.com/SamWylde/comet-tv/releases/latest/download/app-webview-universal-release.apk |
| Info page | aftv.news/2453488+ |
Steps:
- Install the Downloader app (by AFTVnews) from your TV's app store, and open it.
- In the URL/Home box, type
2453488and press Go (or enteraftv.news/2453488). - Let it download, then choose Install. First time only, Android will ask to allow Downloader to install unknown apps — enable it, go back, and Install.
- Delete the APK when prompted (saves space). Comet now appears in your apps row.
Notes:
- This is the universal WebView build (~3 MB) — installs on any CPU, including 32-bit devices like the Chromecast with Google TV HD as well as all 64-bit Fire TV / Google TV hardware.
- The code/URL are permanent: they always point to the newest release, so the same
2453488keeps working after every update (no need to re-issue it).
A single rendering engine — the System WebView (Chromium) — behind a BrowserEngine interface
(kept as an interface so the engine is easy to swap or mock). Slim APK (~3 MB), best video
compatibility on TV hardware. (An earlier GeckoView full flavor was removed: it was a ~185 MB
second code path that nobody shipped, and its tracking protection is now covered by the blocklist +
redirect blocking below.)
- Request interception against a bundled hostname blocklist (auto-refreshed from a remote hosts list), curated cosmetic CSS hiding, and popup/redirect suppression. This is a hostname-level blocker — not an EasyList/uBlock Origin engine (no scriptlets or full cosmetic-filter syntax).
- An optional strict "block all page redirects" mode (off by default) cancels cross-site, page-initiated top navigations — the last resort against stream-page player redirects.
- All layers (network / cosmetic / popup / redirect) are individually toggleable, with a per-site allowlist. Menu → This site pauses single layers for one site until Comet closes and lists what was blocked on the current page.
- A future full-fidelity path (EasyList parser or
adblock-rust) would need a filter-list license review first.
- JDK 17 or newer (Android Gradle Plugin 8.9.1 requires at least 17).
- Android SDK with
platform-tools,platforms;android-36,build-tools;35.0.0(+emulatorandsystem-images;android-36;android-tv;x86_64to run the TV emulator). - The Gradle wrapper downloads Gradle 8.11.1 automatically.
local.properties must point sdk.dir at your SDK. If your default java is older than 17, set
JAVA_HOME to JDK 17 or newer before building (or uncomment org.gradle.java.home in gradle.properties).
./gradlew :app:assembleDebug # macOS / Linux / Git Bash
gradlew.bat :app:assembleDebug # WindowsOutputs land in app/build/outputs/apk/debug/ (per-ABI APKs + a universal APK).
# Start the Google TV AVD
$ANDROID_HOME/emulator/emulator -avd googletv
# Install + launch (x86_64 emulator)
adb install -r app/build/outputs/apk/debug/app-x86_64-debug.apk
adb shell monkey -p com.tdarby.comet -c android.intent.category.LEANBACK_LAUNCHER 1- Easiest: use the Downloader app with code
2453488(see Install on your TV). - Developer: enable Developer options + ADB debugging on the TV, then
adb connect <tv-ip>:5555andadb install -r <apk>.
# Signed release APKs (R8 minify + per-ABI splits: armeabi-v7a, arm64-v8a, x86_64 + a universal APK)
./gradlew :app:assembleReleaseSigning reads keystore.properties (gitignored). Without it, assembleRelease stops with an
error instead of producing an unsigned APK. Outputs:
app/build/outputs/apk/release/app-<abi>-release.apk and app-universal-release.apk.
Signing key: the repo ships no keystore. The local
keystore.properties/*.keystoreare gitignored dev-only credentials. For a real release, generate a keystore outside the repo, reference it viakeystore.properties, and never commit it. Rotate any dev cert before publishing.
Publish a new version (the Downloader code 2453488 stays the same forever):
- Bump
versionCode/versionNameinapp/build.gradle.kts, run:app:assembleRelease, and create a GitHub Release — keep the asset filenames identical (no version in the name). The build automatically emits the legacy-named universal APK atapp/build/outputs/apk-legacy/app-webview-universal-release.apk(the name the permanent code2453488and the manifest point at), so no manual copy is needed:Because the filename is constant,gh release create vX.Y.Z --latest \ app/build/outputs/apk-legacy/app-webview-universal-release.apk \ app/build/outputs/apk/release/app-armeabi-v7a-release.apk \ app/build/outputs/apk/release/app-arm64-v8a-release.apk \ app/build/outputs/apk/release/app-x86_64-release.apk
…/releases/latest/download/app-webview-universal-release.apkalways serves the newest build — what the permanentaftv.news/2453488code points at. The universal APK installs on any CPU (incl. 32-bit boxes like the Chromecast with Google TV HD), so it's the right default. Don't mark releases as pre-release (/latest/skips those). - (For the in-app updater) Only after the release and its assets are published, update
dist/latest.json with the new
versionCode,versionName,apkUrlandsha256, then commit and push it. Installed copies read this file frommain(UpdateChecker.MANIFEST_URL), so pushing it earlier offers an update whose APK isn't there yet.apkUrlmust name the exact release, not/latest/:https://github.com/SamWylde/comet-tv/releases/download/vX.Y.Z/app-webview-universal-release.apk. A/latest/URL can serve a different build than the one the hash describes.sha256is the hash of that same universal APK (sha256sum app-webview-universal-release.apk). It is mandatory: the updater refuses to install an APK without a matching hash.
- After first install, Menu → Check for updates handles upgrades in place (compares
versionCode, downloads, verifies SHA-256, launches the installer) — so Downloader is only needed once per device.
-
M0 — toolchain + SDK + TV AVD
-
M1 — project scaffold, Leanback launcher, single-engine WebView browser
-
M2 — single WebView engine behind a
BrowserEngineinterface -
M3 — on-screen cursor + D-pad/remote input (BACK or long-press OK leaves the cursor)
-
M4 — popup/redirect blocking (
PopupGuard+ main-frame redirect interception) -
M5 — network + cosmetic ad blocking + per-layer Settings toggles + per-site allowlist + filter updater
-
M6 — bookmarks, history, downloads, search engines, overflow menu, home, desktop-UA toggle
-
M7 — signed release (R8 + ABI splits incl. 32-bit + universal), manifest + in-app updater (SHA-256)
-
M8 — open-from-other-apps (VIEW intent), tab session restore, uploads, web-permission prompts, zoom, media keys, voice search, SSL/HTTP-auth prompts, external-app links, long-press context menu, gamepad cursor, configurable cursor speed / direct-nav, blob downloads
-
M9 — per-site identity and viewport profiles, UA Client Hint consistency, diagnostics/support reports, isolated private tabs, complete browsing-data deletion, one-time size-limited blob transfers, origin-scoped camera/microphone/location permissions, and hardened fullscreen/popup handling
-
M10 (v1.3.0) — D-pad video controls in fullscreen (play/pause, ±10 s, speed, live streams, players inside frames from other sites), Continue watching, Send from phone (QR code + 6-digit code, the TV confirms before opening; also saves and restores bookmark backups), a This site panel (identity, viewport, text size, remote mode, blocking pauses, blocked list), remote-button shortcuts, remote help, drag mode, Link options for remotes without long-press, a Stop button, reopen closed tab, a memory budget that suspends background tabs with thumbnails, bookmark organise/export/import, clearer download failure reasons with remove or delete, a step-by-step update flow, and device facts in the support report
Multi-tab browsing includes a visual thumbnail switcher with explicit close controls, and tabs are restored across restarts. The native TV home screen provides large bookmark/recent-site tiles, search, and voice entry. Everything above is implemented and builds.