Skip to content

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

docs: split Skyworth 7T861_A23 Home steps into docs/devices (#1560)

jiantai85cc4300c783
diff --git a/docs/devices/skyworth-7t861-a23.md b/docs/devices/skyworth-7t861-a23.md
new file mode 100644
index 000000000..e3d077fd9
--- /dev/null
+++ b/docs/devices/skyworth-7t861-a23.md
@@ -0,0 +1,128 @@
+# Skyworth 7T861_A23 (MediaTek MT9638, Coocaa OS on Android 10): debloat, custom home shim and boot safety
+
+Owner report for a China-market Skyworth 7T861_A23 television running Coocaa OS on Android 10.
+The debloat package list for this unit lives in [`examples/skyworth-7t861-a23/debloat.txt`](../../examples/skyworth-7t861-a23/debloat.txt)
+and its launcher configuration in [`examples/skyworth-7t861-a23/config.json`](../../examples/skyworth-7t861-a23/config.json).
+
+## Observed firmware
+
+| Field | Observed value |
+|---|---|
+| Model | `7T861_A23` |
+| Product / device | `mt9638` (`mt5872`) |
+| Manufacturer | `skyworth` |
+| Android / API | `10` / `29` |
+| Build display id | `QQ2A.200305.004.A1 release-keys` / `eng.nobody.20241225.120706` |
+| Application ABIs | `armeabi-v7a, armeabi` (32-bit userspace) |
+| `ro.adb.secure` | `0` |
+| `service.adb.tcp.port` | `5555` |
+| Stock home | `com.skyworth.officehomepage` (OfficeMode) / `com.tianci.movieplatform` |
+| TV inputs & source manager | `com.skyworth.tv` |
+
+Port 5555 opens over Wi-Fi without pairing prompts (`ro.adb.secure=0`). `persist.service.adb.enable=1` and `persist.sys.openadb=1` keep network ADB open across reboots.
+
+---
+
+## Safety Warning: Never disable `com.skyworth.officehomepage`
+
+> [!CAUTION]
+> **Do not disable `com.skyworth.officehomepage` directly.**
+> On this firmware, disabling the stock home application (`pm disable-user --user 0 com.skyworth.officehomepage`) breaks the system boot chain and causes the TV to hang indefinitely at the SKYWORTH boot logo. The network stack does not initialize, leaving ADB and port 5555 unreachable.
+>
+> Recovery requires entering Recovery Mode and performing a hardware factory reset ("Wipe data / factory reset"). **Keep `com.skyworth.officehomepage` enabled at all times.**
+
+---
+
+## Debloat verification: persistence across cold reboot
+
+The 16 packages in [`examples/skyworth-7t861-a23/debloat.txt`](../../examples/skyworth-7t861-a23/debloat.txt) remove telemetry, ad daemons, app store push services, and factory calibration background tools.
+
+In particular, `com.skyworth.device` (SmartDevice IoT and location reporting) and `com.coocaa.theme_package_ccos_nine` (default GoldenFaithTheme package) were tested for persistence:
+1. Disabled via `tools/tv.py 'pm disable-user --user 0 com.skyworth.device'` and `tools/tv.py 'pm disable-user --user 0 com.coocaa.theme_package_ccos_nine'`.
+2. Verified after a cold reboot (power cycled): both packages remained in state `disabled-user` (`enabled=3`). The system did not re-enable them.
+3. Bluetooth remote pairing, Wi-Fi connectivity, picture adjustments, and audio remain fully functional with nothing missing.
+
+---
+
+## Replacing Home: Coocaa OS boot and Home key mechanism
+
+Coocaa OS does not use Android's standard `Intent.CATEGORY_HOME` activity chooser. Instead:
+- Home navigation and boot dispatch are controlled by system properties: `persist.service.homepage.pkg`, `persist.service.homepage.cls`, `persist.service.model.pkg`, and `persist.service.model.cls`.
+- In addition, Coocaa OS aggressive process management terminates third-party background applications whose package name does not begin with manufacturer prefixes (`coocaa`, `skyworth`, `tianci`, `android`).
+
+### Step 1: Build the launcher under Coocaa package ID
+
+Compile the launcher with the Coocaa application ID so it is recognized as a privileged OEM package by the process manager:
+
+```bash
+cd launcher
+./gradlew assembleRelease -PlauncherApplicationId=com.coocaa.tvhome
+```
+
+### Step 2: Install launcher and coocaa-home-shim
+
+Install the compiled launcher and the companion `coocaa-home-shim` (`com.ccos.tv.homepage`), which bridges Coocaa OS home dispatch to the CleanYourTV activity:
+
+```bash
+TV_HOST=<tv ip> tools/tv.py --install launcher/app/build/outputs/apk/release/app-release.apk
+TV_HOST=<tv ip> tools/tv.py --install coocaa-home-shim.apk
+```
+
+### Step 3: Redirect Coocaa Home properties
+
+Point the system homepage properties to the shim using `tools/tv.py`:
+
+```bash
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.homepage.pkg com.ccos.tv.homepage'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.homepage.cls com.ccos.tv.homepage.LaunchActivity'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.model.pkg com.ccos.tv.homepage'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.model.cls com.ccos.tv.homepage.LaunchActivity'
+```
+
+---
+
+## Cold boot behavior
+
+After a cold boot (power unplugged and restored):
+- Coocaa OS reads the `persist.service.homepage` properties, initiates `com.ccos.tv.homepage.LaunchActivity`, and immediately transitions focus to `com.coocaa.tvhome.MainActivity`.
+- `dumpsys window | grep mCurrentFocus` settles directly on:
+ ```text
+ mCurrentFocus=Window{... u0 com.coocaa.tvhome/com.gathin.tvhome.MainActivity}
+ ```
+- Physical remote Home button presses immediately return to CleanYourTV without latency or flickering.
+- ADB port 5555 reconnects cleanly over Wi-Fi.
+
+---
+
+## Undo steps: Restoring stock home
+
+To restore the TV's original stock desktop dispatch properties:
+
+```bash
+# 1. Restore Coocaa Home system properties to stock components
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.homepage.pkg com.tianci.movieplatform'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.homepage.cls com.coocaa.homepage.vast.HomePageActivity'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.model.pkg com.skyworth.officehomepage'
+TV_HOST=<tv ip> tools/tv.py 'setprop persist.service.model.cls com.skyworth.officehomepage.view.HomepageActivity'
+
+# 2. Launch stock desktop
+TV_HOST=<tv ip> tools/tv.py 'am start -n com.skyworth.officehomepage/.view.HomepageActivity'
+```
+
+If removing the custom launcher and shim completely:
+
+```bash
+TV_HOST=<tv ip> tools/tv.py 'pm uninstall com.coocaa.tvhome'
+TV_HOST=<tv ip> tools/tv.py 'pm uninstall com.ccos.tv.homepage'
+```
+
+---
+
+## Inputs and Source Switching
+
+`com.skyworth.tv` manages HDMI, AV, and TV tuner input sources, as well as picture adjustments. Keep it enabled.
+In `config.json`:
+- `"show_inputs_pill": true`
+- `"coocaa_sources": true`
+
+This enables the top-bar Inputs pill to open the native Skyworth source picker directly.
diff --git a/examples/skyworth-7t861-a23/README.md b/examples/skyworth-7t861-a23/README.md
index 4ce361b8c..1a00a5457 100644
--- a/examples/skyworth-7t861-a23/README.md
+++ b/examples/skyworth-7t861-a23/README.md
@@ -4,35 +4,28 @@ Tested on Skyworth 7T861_A23 (MediaTek MT9638 / mt5872, Android 10, build `eng.n
## Safety Warning
-**Do not disable `com.skyworth.officehomepage`.**
-Disabling the stock home app on this firmware causes the TV to hang indefinitely on the SKYWORTH boot logo upon restart. The system will fail to start the network stack, disabling port 5555. Recovery requires entering Recovery Mode and performing a factory reset ("Wipe data / factory reset").
-
-## Installing CleanYourTV Launcher safely
-
-On this Coocaa OS build, Home is managed by the system property `persist.service.homepage.pkg` and `persist.service.model.pkg`, rather than Android's standard Home intent chooser. In addition, Coocaa OS terminates background apps whose package name does not begin with manufacturer prefixes (`coocaa`, `skyworth`, `tianci`, `android`).
-
-1. **Build Launcher with Coocaa package ID**:
- ```bash
- cd launcher
- ./gradlew assembleRelease -PlauncherApplicationId=com.coocaa.tvhome
- ```
-2. **Install the launcher and coocaa-home-shim**:
- ```bash
- adb push app/build/outputs/apk/release/app-release.apk /data/local/tmp/tvhome.apk
- adb shell pm install -r /data/local/tmp/tvhome.apk
-
- # Install coocaa-home-shim (com.ccos.tv.homepage)
- adb push coocaa-home-shim.apk /data/local/tmp/shim.apk
- adb shell pm install -r /data/local/tmp/shim.apk
- ```
-3. **Point Home properties to the shim**:
- ```bash
- adb shell setprop persist.service.homepage.pkg com.ccos.tv.homepage
- adb shell setprop persist.service.homepage.cls com.ccos.tv.homepage.LaunchActivity
- adb shell setprop persist.service.model.pkg com.ccos.tv.homepage
- adb shell setprop persist.service.model.cls com.ccos.tv.homepage.LaunchActivity
- ```
-4. **Apply debloat list**:
- ```bash
- TV_HOST=<tv-ip> tools/disable.sh examples/skyworth-7t861-a23/debloat.txt
- ```
+> [!CAUTION]
+> **Do not disable `com.skyworth.officehomepage`.**
+> Disabling the stock home app on this firmware causes the TV to hang indefinitely on the SKYWORTH boot logo upon restart. The system will fail to start the network stack, disabling port 5555. Recovery requires entering Recovery Mode and performing a factory reset ("Wipe data / factory reset").
+
+## Applying the debloat list
+
+Everything in [`debloat.txt`](debloat.txt) is disabled via `pm disable-user`, never uninstalled.
+
+- **Apply debloat list**:
+ ```bash
+ TV_HOST=<tv-ip> tools/disable.sh examples/skyworth-7t861-a23/debloat.txt
+ ```
+- **Restore debloat list**:
+ ```bash
+ TV_HOST=<tv-ip> tools/restore.sh examples/skyworth-7t861-a23/debloat.txt
+ ```
+
+All 16 packages in `debloat.txt` have been verified across a cold reboot. Specifically, `com.skyworth.device` and `com.coocaa.theme_package_ccos_nine` remain disabled with Bluetooth remote control, Wi-Fi, audio, and settings working normally.
+
+## Replacing the Home Launcher
+
+On Coocaa OS, the stock launcher cannot be replaced via standard Android Home chooser without bootlooping. Replacing the launcher safely requires building under the Coocaa package ID, using `coocaa-home-shim`, and pointing the `persist.service.homepage` properties.
+
+Detailed instructions, boot observations, and property undo commands are documented in:
+👉 [`docs/devices/skyworth-7t861-a23.md`](../../docs/devices/skyworth-7t861-a23.md)
diff --git a/examples/skyworth-7t861-a23/debloat.txt b/examples/skyworth-7t861-a23/debloat.txt
index 0e79f6f9c..8a93d8778 100644
--- a/examples/skyworth-7t861-a23/debloat.txt
+++ b/examples/skyworth-7t861-a23/debloat.txt
@@ -13,6 +13,7 @@
# Recovery requires a factory reset via Recovery Mode.
# To replace the home screen safely, build the launcher with `-PlauncherApplicationId=com.coocaa.tvhome`
# and install coocaa-home-shim (com.ccos.tv.homepage) to bridge the Home key and boot flow.
+# Full device notes: docs/devices/skyworth-7t861-a23.md
# Telemetry and diagnostics
com.skyworth.performance.monitors # Performance monitors and telemetry
diff --git a/examples/skyworth-7t861-a23/tv.json b/examples/skyworth-7t861-a23/tv.json
index e7fff71bb..02adfdcde 100644
--- a/examples/skyworth-7t861-a23/tv.json
+++ b/examples/skyworth-7t861-a23/tv.json
@@ -2,5 +2,5 @@
"tv": "Skyworth 7T861_A23 (MediaTek MT9638), China market",
"os": "Coocaa OS / Android 10",
"brand": "Skyworth",
- "notes": "Coocaa OS telemetry, performance monitors, factory test timer, guide, video/ad platform, stores; **do not disable `com.skyworth.officehomepage`**: disabling it hangs on boot logo (recovery via factory reset); launcher works via coocaa-home-shim and must be built with `-PlauncherApplicationId=com.coocaa.tvhome`"
+ "notes": "Coocaa OS telemetry, performance monitors, factory test timer, guide, video/ad platform, stores; **do not disable `com.skyworth.officehomepage`** (hangs on boot logo); reboot-checked; launcher handover via coocaa-home-shim ([device note](../docs/devices/skyworth-7t861-a23.md))"
}