Skip to content

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

examples: add HDMI input IDs and banner_hdmi for OnePlus Cebu (C00)

PcubePe5274c588acc
diff --git a/examples/oneplus-tv-cebu/tv.json b/examples/oneplus-tv-cebu/tv.json
index 755f01a94..0f7cc1f8f 100644
--- a/examples/oneplus-tv-cebu/tv.json
+++ b/examples/oneplus-tv-cebu/tv.json
@@ -2,5 +2,5 @@
"tv": "OnePlus TV (C00, Cebu, MediaTek m7632), India",
"os": "Android TV 10 and 11",
"brand": "OnePlus",
- "notes": "HeyTap push and OnePlus ODM telemetry, OxygenPlay page, recommendation rows, Relax, image wall, user guide, TV Manager; Chromecast, Miracast, TV Mirror, OnePlus Connect, USB media apps and unused streaming preloads off by choice; keep the partner customizer while the stock home is in use (its Inputs and Wi-Fi icons); remote buttons work with launcher/ without key services; Settings button is keycode 82; 1.8 GB; reboot-checked on both"
+ "notes": "HeyTap push and OnePlus ODM telemetry, OxygenPlay page, recommendation rows, Relax, image wall, user guide, TV Manager; Chromecast, Miracast, TV Mirror, OnePlus Connect, USB media apps and unused streaming preloads off by choice; keep the partner customizer while the stock home is in use (its Inputs and Wi-Fi icons); remote buttons work with launcher/ without key services; Settings button is keycode 82; HDMI input ids: `com.mediatek.tvinput/.hdmi.HDMIInputService/HW5` (HDMI 1), HW6 (HDMI 2), HW7 (HDMI 3) — use `launch_actions` with `com.heytap.tv.livetv=input:…HW5` to make the Live TV tile jump straight to a port, and `app_banners` `com.heytap.tv.livetv=banner_hdmi` for the dedicated HDMI tile art; 1.8 GB; reboot-checked on both; launcher/ and full list checked on RTM8.240401.135 (Android 11)"
}
diff --git a/launcher/app/src/main/res/drawable/banner_hdmi.xml b/launcher/app/src/main/res/drawable/banner_hdmi.xml
new file mode 100644
index 000000000..9f9ac47eb
--- /dev/null
+++ b/launcher/app/src/main/res/drawable/banner_hdmi.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Banner for an HDMI/input shortcut tile (config.xml, app_banners): a dark slate-blue field with the input glyph. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:width="320dp" android:height="180dp">
+ <shape android:shape="rectangle">
+ <gradient android:angle="315" android:startColor="#FF2B3A5E" android:endColor="#FF11182B" />
+ </shape>
+ </item>
+ <item android:width="76dp" android:height="76dp" android:gravity="center"
+ android:drawable="@drawable/ic_input" />
+</layer-list>