Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

examples: add Hikeen smart TV (Realtek RTD285O, Zeasn), Android TV 9

PrimeBiNf602f6517bb4
diff --git a/examples/hikeen-smart-rtd285o/README.md b/examples/hikeen-smart-rtd285o/README.md
new file mode 100644
index 000000000..0075fb938
--- /dev/null
+++ b/examples/hikeen-smart-rtd285o/README.md
@@ -0,0 +1,25 @@
+# Hikeen smart TV (Realtek RTD285O, Android TV 9)
+
+A white-label smart TV: the set itself reports only "Smart" / "SmartTV"; "Hikeen" is the OEM whose
+packages (`com.hikeen.*`, `cn.zeasn.overseas.tv.hikeen.orion`) the firmware carries. Zeasn's "orion"
+launcher is the stock Home. The debloat list disables 26 packages.
+
+## Quirks of this board
+
+- **No screenshots**: `screencap` writes a 0-byte file in every app on this firmware (Live TV, Home,
+ system dialogs). Verify a change with `tools/tv.py 'dumpsys window | grep mCurrentFocus'` instead.
+- **ADB is open to anyone**: userdebug build, `ro.adb.secure` unset — port 5555 answers with no
+ "Allow" prompt while debugging is on. Close debugging when the session is done.
+- **Settings** is `com.hikeen.settings`; `com.android.tv.settings` has no launcher entry on this
+ build. The folder's config.json seeds the Hikeen settings app into the launcher's library
+ (`library_apps`) and pins it in the dock.
+- **One line needs a hand**: `tools/disable.sh` skips
+ `com.google.android.leanbacklauncher.recommendations` on this firmware, because its dumpsys prints
+ no permission block for the input-driver check. After a reboot with the inputs verified, run the
+ list again with `TVINPUT_ALLOW=1` to take that line.
+- The two Zeasn RRO overlays are not listed: disabling their base apps leaves them inert.
+- Never start `com.hikeen.factorymenu` or the `com.factory.*` packages on this board.
+
+Undo:
+
+ TV_HOST=<tv ip> tools/restore.sh examples/hikeen-smart-rtd285o/debloat.txt com.zeasn.oriontv.open.launcher
diff --git a/examples/hikeen-smart-rtd285o/config.json b/examples/hikeen-smart-rtd285o/config.json
new file mode 100644
index 000000000..322f1b90f
--- /dev/null
+++ b/examples/hikeen-smart-rtd285o/config.json
@@ -0,0 +1,14 @@
+{
+ "dock_apps": [
+ "com.android.tv",
+ "com.hikeen.mediabrowser",
+ "com.hikeen.settings",
+ "com.android.vending"
+ ],
+ "hidden_apps": [],
+ "library_apps": [
+ "com.hikeen.settings"
+ ],
+ "live_tv_package": "com.android.tv",
+ "columns": 4
+}
diff --git a/examples/hikeen-smart-rtd285o/debloat.txt b/examples/hikeen-smart-rtd285o/debloat.txt
new file mode 100644
index 000000000..2573c723d
--- /dev/null
+++ b/examples/hikeen-smart-rtd285o/debloat.txt
@@ -0,0 +1,76 @@
+# Hikeen smart TV, model string "Smart" (device 10839, manufacturer "SmartTV"; no brand on the set),
+# Realtek RTD285O (ro.board.platform rtd285o), Android TV 9 (API 28),
+# build Realtek/RealtekATV/RealtekATV:9/PTT1.190222.001/mzh03151811:userdebug/test-keys.
+# The set is sold without a brand; the list is named for the OEM whose packages the firmware carries.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/hikeen-smart-rtd285o/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/hikeen-smart-rtd285o/debloat.txt com.zeasn.oriontv.open.launcher
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Stock launcher is com.zeasn.oriontv.open.launcher (Zeasn "orion", /system/app/ZeasnLauncher_for_Hardish).
+# It is not in this list: disable it only once a replacement Home is installed
+# (launcher/build-and-install.sh with STOCK_LAUNCHER=com.zeasn.oriontv.open.launcher).
+# com.android.tv.settings and com.realtek.tv.settings both carry a FallbackHome as the last resort.
+#
+# Notes from this TV:
+# - Sideloading works: pm install of an APK declaring category HOME succeeds (no verifier block).
+# - The TV is a userdebug build with ro.adb.secure unset: port 5555 gives a shell to anyone on the
+# LAN while ADB is on, with no "Allow" prompt. Turn debugging off when done.
+# - The saved Wi-Fi network belongs to android.uid.system, not to a setup wizard, so disabling
+# setupwraith does not take the TV off Wi-Fi.
+# - Screencap returns a 0-byte file on this firmware in every app (Live TV, Home, dialogs), so
+# verify steps with `dumpsys window | grep mCurrentFocus` instead of screenshots.
+# - disable.sh skips com.google.android.leanbacklauncher.recommendations on this firmware: its
+# dumpsys prints no permission block for the input-driver check. After a reboot with the inputs
+# verified, run the list again with TVINPUT_ALLOW=1 to take that one line.
+# - Settings on this set is com.hikeen.settings (CATEGORY_LAUNCHER, no leanback entry); the Android
+# TV settings app (com.android.tv.settings) has no launcher entry at all. The folder's config.json
+# seeds the Hikeen settings app with library_apps and pins it in the dock.
+# - Kept in use: the USB media browser and quick menus (com.hikeen.mediabrowser, Quickmenu,
+# scrollhelper, menu, settings), MX Player, Live TV and the TV inputs (com.android.tv carries the
+# AV/HDMI/VGA TV input services), all com.realtek.* (tuner, providers, passthrough), the on-screen
+# keyboard, Play Store and Play Services.
+# - Leave alone: com.hikeen.factorymenu, com.factory.factoryautomation and com.factory.uartcontrol
+# (factory packages: never start them on this board), com.adups.fota (the firmware updater),
+# com.android.tv, com.android.tv.settings and com.realtek.tv.settings (FallbackHome and inputs).
+
+# Content, ads and telemetry (Zeasn "hikeen" build)
+com.zeasn.services.general
+com.zeasn.deviceportal.asdprovider.hikeen
+cn.zeasn.overseas.tv.hikeen.orion
+# The overlays com.zeasn.services.general.overlay and cn.zeasn.overseas.tv.hikeen.orion.overlay are
+# not listed: disabling their base packages leaves them inert, and pm disable-user does not take on
+# the overlays of this firmware.
+
+# OEM junk (Hikeen)
+com.hikeen.cleanmaster
+com.hikeen.hotelmenu
+com.hikeen.setupwizard
+
+# Google services the owner does not use
+com.google.android.tungsten.setupwraith
+com.google.android.leanbacklauncher.recommendations
+
+# Background services not needed
+com.android.printspooler
+com.android.wallpaper.livepicker
+com.android.dreams.basic
+com.android.dreams.phototable
+
+# Preloaded apps the owner does not use
+com.android.chrome
+com.farsitel.bazaar
+deezer.android.tv
+com.aparat.kids
+tv.telewebion
+ir.tamashakhonehtv
+com.euronews.express
+com.github.shadowsocks.tv
+com.mm.android.DMSS
+
+# Casting and voice (owner does not use them; this also closes EShare's ports 1046 and 8000)
+com.ecloud.eairplay
+com.ecloud.emedia
+com.ecloud.eshare.server
+com.rtk.android.miracast
+com.google.android.katniss
diff --git a/examples/hikeen-smart-rtd285o/tv.json b/examples/hikeen-smart-rtd285o/tv.json
new file mode 100644
index 000000000..b30c41766
--- /dev/null
+++ b/examples/hikeen-smart-rtd285o/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "Hikeen smart TV (\"Smart\"/SmartTV, Realtek RTD285O, Zeasn)",
+ "os": "Android TV 9",
+ "brand": "Hikeen",
+ "notes": "Zeasn ads, device portal and recommendation rows; Hikeen cleaner, hotel menu and setup wizard; casting (EShare/AirPlay/Miracast) and voice search off by choice; settings app is com.hikeen.settings with no leanback entry (dock via library_apps in config.json); screencap returns empty on this firmware"
+}