Skip to content

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

examples: PPTV p34a4p (Suning PPTV, Amlogic, Android 5.1.1), the first PPTV list

dingxiaoboe589cd60ec04
diff --git a/docs/devices/pptv-p34a4p.md b/docs/devices/pptv-p34a4p.md
new file mode 100644
index 000000000..fd2b7d5a7
--- /dev/null
+++ b/docs/devices/pptv-p34a4p.md
@@ -0,0 +1,104 @@
+# PPTV p34a4p (Suning PPTV, Amlogic, China, Android 5.1.1): three ad layers behind a locked launcher
+
+An owner report from one set, backing the list in `examples/pptv-p34a4p/`. The list removes
+layer 1 of the ads; this note covers what a package list cannot reach on this firmware: the
+boot-animation video ad, the network-layer ads, and why the stock launcher cannot be replaced.
+
+| Field | Observed value |
+|---|---|
+| Retail model | `p34a4p` (Suning PPTV) |
+| Android / API | 5.1.1 / 22 |
+| Build | `LMY47V.20251117` |
+| Stock home | `com.pptv.launcher` |
+| Live TV | `com.pptv.tv` |
+| RAM / storage | 1 GB RAM |
+| ADB | port 5555, no auth (`ro.adb.secure=0`); network debugging re-opened by the owner after each power cycle |
+
+## `pm disable-user` is refused
+
+`pm disable-user --user 0 <pkg>` fails for every package with a SecurityException (attempt to
+change component state — the same wall as the [FFalcon r34a0](../../examples/ffalcon-r34a0-cn/debloat.txt)
+and [Whaley WTV55K1](whaley-wtv55k1.md) sets on Android 5.x). The repo's `tools/disable.sh`
+and `tools/restore.sh` cannot work here; the list is applied with `pm hide`, undone with
+`pm unhide`, and the hidden state survives reboots.
+
+## Layer 2: the boot-animation video ad
+
+Amlogic's `/system/bin/bootanimation` on this build plays a ~35 s video ad before Home
+(strings `has video advert` / `playAdvert` in the binary; the cache lives in `/data/tvad`,
+system-only; the stock clip is `/system/media/settings_video.mp4`). No app draws it, so no
+package list and no DNS rule touches it. Five properties turn it off, and they survive reboots:
+
+```sh
+adb shell "setprop persist.sys.videoadvert 0; setprop persist.sys.picadvert 0; \
+ setprop persist.sys.advert 0; setprop persist.sys.advert_enable 0; \
+ setprop persist.sys.advert_status 0"
+```
+
+Something flips `persist.sys.advert` back to 1 after boot; with `videoadvert=0` the ad stays
+gone regardless.
+
+## Layer 3: network-layer ads, and the DNS blocker that answers them
+
+What the package list cannot reach:
+
+- The stock launcher embeds an ad SDK that pulls banner images from `hifuntv.com` and
+ `huan.tv` (about 150 requests at one boot, all 404s once the domains are gone — the
+ recommendation wall simply renders empty).
+- The LeBo cast app (`com.hpplay.happyplay.aw`, the DLNA/AirPlay receiver this TV actually
+ uses) serves CSJ/Pangle and `ad.hpplay.cn` promos before casting.
+
+Android 5.1 takes its DNS from the per-network configuration, and neither `ndc resolver`
+nor `setprop net.dns*` changes it, so the blocker has to sit elsewhere on the LAN: static IP
+on the TV, its DNS1 pointed at the blocker, no DNS2 (a fallback resolver would let the ad
+domains through again). Any small DNS server that answers the ad domains with NXDOMAIN or
+0.0.0.0 works; the tested block list:
+
+```text
+huan.tv hifuntv.com dbkan.com ad.hpplay.cn lebotob.hpplay.cn sl.hpplay.cn
+deviceott.api.mgtv.com tqt.weibo.cn csjplatform.com tedbyted.com
+```
+
+Two domain groups must stay reachable, or the TV loses more than ads:
+
+- `cibntv.net` — the CIBN licence CDN. The video apps' streams come from `*.ott.cibntv.net`;
+ blocking it breaks playback (the bundled Dangbei Market build also serves its catalog from
+ there).
+- `sdkauth.hpplay.cn` / `vipauth.hpplay.cn` — cast authentication. Blocking them breaks
+ DLNA/AirPlay entirely, ads and all.
+
+The cost: the TV has no working DNS when the blocker machine is down. AdGuard's public DNS
+was not an alternative — it passes `huan.tv` and `hifuntv.com`, like most China-market OTT
+ad domains.
+
+## The launcher lock-in
+
+The stock launcher's HOME intent filter carries a custom `android.intent.category.HOME.pptv`
+category (besides `TV_HOME`, `COMMON_HOME`, `HOME` and `DEFAULT`), and no HOME chooser ever
+appears. Hiding `com.pptv.launcher` does work at run time — a third-party launcher takes the
+HOME key immediately — but after a reboot the key goes dead: the boot-time HOME resolution
+finds no candidate, the set comes up on a system info page, and only `pm unhide` over ADB
+brings it back. ADB survives the whole procedure, so the state is recoverable, but the stock
+launcher stays.
+
+A third-party launcher (Dangbei 3.3.6, from the vendor's own download links) sideloads and
+runs on this set — ~88 MB RSS against the stock launcher's ~125 MB — but cannot be set Home
+by the mechanism above. The vendor's build of the Dangbei Market filters desktop apps out of
+its catalog entirely (its own API serves the app list; no launcher category is returned).
+Repacking a launcher with `HOME.pptv` in its filter was not tried.
+
+## The reinstall watchdog
+
+`com.pptv.search`, `com.pptv.usercenter` and the launcher each embed a `MyInstallReceiver`
+that listens for `PACKAGE_REMOVED` and tries to download and reinstall the package
+(log keyword `installAppDownload`). It needs the `INSTALL_PACKAGES` permission, so once the
+three packages that hold it are hidden the chain is dead — nothing came back across a day
+of reboots. `com.pptv.usercenter`'s receiver is broken from the factory (`ClassNotFoundException`
+in its own logs).
+
+## The batch that crashed, and why the list is short
+
+A second batch of eight hides (`search`, `usercenter`, `terminalmanager`, `tvhousekeeper`,
+`microhelper`, `remoteota`, `upgrad`, `karaok`) put the launcher in a crash loop at boot
+until all eight were unhidden; the culprit was never isolated, so the shipped list keeps all
+of them and documents the experiment. Hide one at a time, with a reboot in between.
diff --git a/examples/pptv-p34a4p/debloat.txt b/examples/pptv-p34a4p/debloat.txt
new file mode 100644
index 000000000..20f88d8a1
--- /dev/null
+++ b/examples/pptv-p34a4p/debloat.txt
@@ -0,0 +1,52 @@
+# PPTV p34a4p (Suning PPTV, Amlogic board), Android 5.1.1, build LMY47V.20251117, 1 GB RAM.
+# Tested 2026-10-24. First PPTV list.
+# ADB: 5555, no auth (ro.adb.secure=0); the owner re-opens network debugging after a power cycle.
+# Stock launcher: com.pptv.launcher (locked in, see below). Live TV: com.pptv.tv.
+#
+# Apply: NOT tools/disable.sh — it uses pm disable-user, which this firmware DENIES (see
+# the blocker below). Hide each package instead, one pm command per shell call:
+# grep -vE '^\s*(#|$)' examples/pptv-p34a4p/debloat.txt | sed -E 's/\s+#.*$//' \
+# | awk '{print "pm hide " $1}' | TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py --batch
+# Undo: NOT tools/restore.sh — its pm enable cannot undo a hide on this firmware.
+# Same as Apply, but `pm unhide`.
+#
+# The blocker: pm disable-user is denied for every package with a SecurityException
+# (attempt to change component state — the same wall the FFalcon r34a0 and Whaley WTV55K1
+# sets hit on Android 5.x). pm hide instead: the hidden state persists across reboots on 5.1
+# and pm unhide restores. Check: dumpsys package <pkg> | grep "User 0" (hidden=true).
+#
+# SDK 22, below the bundled launcher's minSdk 26: debloat only, the stock launcher stays —
+# and it cannot be replaced either (its HOME intent filter carries a custom
+# android.intent.category.HOME.pptv, no chooser ever appears, and hiding it kills the HOME
+# key after the next reboot). The full story is in docs/devices/pptv-p34a4p.md.
+#
+# Ads on this set come in three layers; the list below is layer 1. Layer 2 is the Amlogic
+# bootanimation video ad, killed with properties (these survive reboots; persist.sys.advert
+# gets flipped back to 1 by an app after boot, the ad stays gone with videoadvert=0):
+# setprop persist.sys.videoadvert 0; setprop persist.sys.picadvert 0
+# setprop persist.sys.advert 0; setprop persist.sys.advert_enable 0
+# setprop persist.sys.advert_status 0
+# Layer 3 is network-layer ads — the launcher's hifuntv.com/huan.tv feed and the hpplay cast
+# promos — which no package list can reach. The LAN DNS approach, the block list and the
+# domains that must stay reachable are in the device note.
+#
+# Watchdog: com.pptv.search, com.pptv.usercenter and the launcher embed a MyInstallReceiver
+# (PACKAGE_REMOVED, then download + reinstall of the package). It needs INSTALL_PACKAGES,
+# so once snisupdate / push.service / newtvad are hidden the chain is dead — nothing came
+# back across a day of reboots.
+#
+# Kept on purpose: com.pptv.launcher (the only HOME handler), com.pptv.snisservice (SNIS
+# service bus, the framework's core), com.pptv.tv (live TV), com.pplive.tvplayer (local
+# player, DLNA/AirPlay receiver), com.pptv.lisenceauth (CIBN licence check), and — after a
+# failed experiment — com.pptv.search, com.pptv.usercenter, com.pptv.tvhousekeeper,
+# com.pptv.terminalmanager, com.pptv.microhelper, com.nanosic.www.remoteota,
+# com.example.upgrad, com.bajintech.karaok: hiding those eight crashed the launcher in a
+# boot loop until all were unhidden, and the culprit was never isolated. If you experiment,
+# hide one at a time with a reboot in between.
+
+# PPTV ad and push services
+com.pptv.newtvad # TvAdService, banner ads
+com.pptv.push.service # push channel
+com.pptv.snisupdate # silent installer (PushAppInstallActivity)
+com.pptv.screenprotect # screensaver ads
+com.pptv.tvbuy # shopping app
diff --git a/examples/pptv-p34a4p/tv.json b/examples/pptv-p34a4p/tv.json
new file mode 100644
index 000000000..19b88f2d6
--- /dev/null
+++ b/examples/pptv-p34a4p/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "PPTV p34a4p (Suning PPTV, Amlogic board), China",
+ "os": "Android 5.1.1",
+ "brand": "PPTV",
+ "notes": "First PPTV list; SDK 22, so the repo launcher (minSdk 26) cannot run: debloat only; `pm disable-user` denied (SecurityException, the FFalcon r34a0 / Whaley wall), the list is applied with `pm hide` / `pm unhide` and survives reboots; five ad/push/silent-install packages, the Amlogic bootanimation video ad (five `persist.sys.*` properties, in the header) and the network-layer ads (launcher hifuntv/huan feed, hpplay cast promos) — those layers, the DNS block list, the domains that must stay reachable and the stock launcher's HOME lock-in (a custom `HOME.pptv` category; hiding the launcher kills the HOME key after a reboot) are in [the device note](../docs/devices/pptv-p34a4p.md); MyInstallReceiver watchdog reinstall chain dies once its INSTALL_PACKAGES holders are hidden; eight further hides crashed the launcher in a boot loop and were reverted; ADB 5555 open with no auth; reboot-checked"
+}