Skip to content

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

docs: dumpsys disabled after a system_server hang makes disable.sh skip every package

Vlad Kokhan5cc43e5714e8
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index 7fd3a0ca2..603b948e3 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -168,6 +168,16 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/
something stalls there. Use `tools/tv.py --reboot`: it sends the reboot through ADB's own service
and returns once the request is accepted. The TV is still restarting at that point, so let it
answer again (`tools/tv.py --probe`) before the next command.
+- **Every `dumpsys` answers `Service dumps disabled due to hung system process.`**, and `tools/disable.sh`
+ skips every package in the list with "the TV's dumpsys shows neither a requested nor a granted permission
+ block". That message names Android 5.x, but the cause here is another one: Android's watchdog turns service
+ dumps off once it has seen `system_server` hang, and they stay off until `system_server` restarts.
+ `dumpsys activity` and `dumpsys connectivity` print nothing useful either, so the Home check cannot read the
+ focused app. On a Xiaomi Mi TV 4A (MiTV-MOOQ1, Android TV 11, `RTM4.220307.164.8277`) that had been up for
+ almost eight days, the load average was around 62 and `logcat` held repeated watchdog lines from
+ `system_server`. Reboot before changing anything (`tools/tv.py --reboot`); `dumpsys` worked again straight
+ after. Do not get past the skips with `TVINPUT_ALLOW=1`: the check could not run, which is not the same as
+ passing.
- **A `logcat` without the line you expected is not proof that nothing happened.** On a TCL 55C728
(`G05_4K_GB`, Google TV 11) the main buffer is 1 MiB (`persist.logd.size.main`), and the TV's own
HDMI, ARC and media logging fills it in well under a minute; around power-on it held about 30