Skip to content

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

examples: add Coocaa P9 projector (MediaTek mt5862, Android 9)

tianhuoliuhun9da1b2fa4c6d
diff --git a/examples/coocaa-p9-projector/README.md b/examples/coocaa-p9-projector/README.md
new file mode 100644
index 000000000..6cdaf9a6e
--- /dev/null
+++ b/examples/coocaa-p9-projector/README.md
@@ -0,0 +1,56 @@
+# Coocaa P9 Projector (MediaTek mt5862, Android 9 / Coocaa OS)
+
+Notes for the Coocaa P9 (酷开 P9) LCD smart projector running Coocaa OS on Android 9 (MediaTek mt5862 platform).
+
+## Device Information
+
+| Field | Value |
+|---|---|
+| Model | `Projector` (Retail: Coocaa P9 / 酷开 P9) |
+| Brand / Manufacturer | MediaTek / Coocaa (Skyworth) |
+| SoC / Board | MediaTek `mt5862` (`mt5862_bga_1g`) |
+| Android / SDK | `9` / `28` (PPR2.180905.006.A1 dev-keys) |
+| Userspace ABI | `armeabi-v7a` (32-bit) |
+| SELinux | `permissive` |
+| RAM | 1 GB (~823 MB usable) |
+
+## How to Enable ADB (Crucial Step)
+
+The secret sequence to reveal Developer Options on Coocaa P9 is distinct from typical Skyworth TVs:
+
+1. Open **设置 (Settings)** ➔ **通用 (General)**.
+2. Move cursor to focus on **关于本机 (About this TV)**.
+3. While focused on 关于本机, press **LEFT** on the remote **7 times** (`LEFT LEFT LEFT LEFT LEFT LEFT LEFT`).
+4. Return to the 通用 (General) menu: **开发者选项 (Developer options)** will now appear below 关于本机.
+5. Enter 开发者选项, turn on **USB 调试 (USB debugging)**.
+6. Connect via ADB over port 5555 (`adb connect <ip>:5555`) and accept the authorization prompt on the projection screen.
+
+## Critical Warnings
+
+- **NEVER disable `com.tianci.movieplatform`:** On Coocaa OS, the boot chain is hardcoded to this launcher package. Disabling it will result in a boot hang on the COOCAA logo. Keep it enabled.
+- **NEVER disable `com.coocaa.home.plug.projection`:** This is the projector-specific hardware service responsible for autofocus, electric focus, and keystone correction.
+
+## Skip Boot Video Ads
+
+The 15-second boot ad can be skipped permanently without root:
+
+```bash
+tools/tv.py 'setprop persist.sys.bootvideo.time 1'
+```
+
+## Launcher Replacement
+
+The reference launcher works smoothly when built with application ID `com.coocaa.tvhome`:
+
+1. Build the launcher:
+ ```bash
+ (cd launcher && ./gradlew assembleRelease -PlauncherApplicationId=com.coocaa.tvhome)
+ ```
+2. Install the APK over ADB.
+3. Switch default homepage properties and Home activity:
+ ```bash
+ tools/tv.py 'setprop persist.service.homepage.pkg com.coocaa.tvhome'
+ tools/tv.py 'setprop persist.service.homepage.cls com.gathin.tvhome.MainActivity'
+ tools/tv.py 'cmd package set-home-activity com.coocaa.tvhome/com.gathin.tvhome.MainActivity'
+ ```
+4. Remote Home key will now cleanly open CleanYourTV launcher.
diff --git a/examples/coocaa-p9-projector/debloat.txt b/examples/coocaa-p9-projector/debloat.txt
new file mode 100644
index 000000000..485e3c071
--- /dev/null
+++ b/examples/coocaa-p9-projector/debloat.txt
@@ -0,0 +1,57 @@
+# Coocaa P9 projector (MediaTek mt5862_bga_1g), Android 9 (SDK 28),
+# build PPR2.180905.006.A1 dev-keys, China-market Coocaa OS.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/coocaa-p9-projector/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/coocaa-p9-projector/debloat.txt
+# Everything is DISABLED (pm disable-user --user 0), not uninstalled.
+#
+# ADB entry:
+# Go to Settings -> 通用 (General) -> focus on 关于本机 (About this TV).
+# Press LEFT on the remote 7 times (LEFT LEFT LEFT LEFT LEFT LEFT LEFT).
+# Return to General menu: 开发者选项 (Developer options) appears below About this TV.
+# Enter Developer options and turn on "USB 调试" (USB debugging).
+#
+# Boot video ad skip (no root, survives reboot):
+# tools/tv.py 'setprop persist.sys.bootvideo.time 1'
+#
+# ⚠ DO NOT DISABLE:
+# - com.tianci.movieplatform: Coocaa stock launcher base, boot hard-depends on it.
+# - com.coocaa.home.plug.projection: Projector optical engine, autofocus & keystone correction.
+# - com.coocaa.os.softsettings / com.skyworth.setting: System settings.
+# - com.tianci.system / com.coocaa.os.ccosservice: Core system framework.
+# - com.tianci.de: Daemon service (disabling crashes About page).
+# - com.skyworth.tianciime: System IME.
+# - com.tianci.localmedia: Local USB media player.
+#
+# Launcher handover:
+# 1. Build launcher with applicationId com.coocaa.tvhome:
+# (cd launcher && ./gradlew assembleRelease -PlauncherApplicationId=com.coocaa.tvhome)
+# 2. Install and set home properties:
+# tools/tv.py 'setprop persist.service.homepage.pkg com.coocaa.tvhome'
+# tools/tv.py 'setprop persist.service.homepage.cls com.gathin.tvhome.MainActivity'
+# tools/tv.py 'cmd package set-home-activity com.coocaa.tvhome/com.gathin.tvhome.MainActivity'
+#
+# =============================================================================
+# Ads / telemetry / tracking
+com.tianci.ad # Coocaa ad SDK (boot/shutdown/screensaver ads)
+com.tianci.push # background push notifications
+com.tianci.autoinstaller # silent background app installer
+com.coocaa.sysreport # telemetry & usage reporting
+com.coocaa.messageprovider # promotional popup messages
+com.coocaa.screensaver # vendor screensaver with ad engine
+
+# Vendor bloat / browser / guide
+com.coocaa.app_browser # bundled lightweight browser
+com.coocaa.mitee.tv # kids streaming channel
+com.coocaa.miitee.guard # kids guard daemon
+com.coocaa.tvmanager # cleaner / memory manager
+com.coocaa.guide # boot guide & EPG pusher
+
+# Stores / theme packages
+com.tianci.appstore # stock store with recommendations (Dangbei Market kept)
+com.coocaa.os.thememanager # theme store
+com.coocaa.theme_package_starry_night# preloaded starry night theme
+com.coocaa.theme_world_cup # preloaded world cup theme
+
+# Voice assistant (optional)
+com.skyworth.angel.voice # Skyworth voice assistant
diff --git a/examples/coocaa-p9-projector/tv.json b/examples/coocaa-p9-projector/tv.json
new file mode 100644
index 000000000..f5ace05b6
--- /dev/null
+++ b/examples/coocaa-p9-projector/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "Coocaa P9 projector (MediaTek mt5862), China",
+ "os": "Android 9 (Coocaa OS)",
+ "brand": "Skyworth",
+ "notes": "Coocaa ad engine, push, auto-installer, telemetry, stores and theme packages off; ADB entry via 7x LEFT on About this TV; persist.sys.bootvideo.time=1 skips boot ad; keep `com.tianci.movieplatform` and projector plugin `com.coocaa.home.plug.projection`; launcher handover via `setprop persist.service.homepage` + `set-home-activity`; reboot-checked"
+}