Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
examples: add Philips 50PUF7099/T3 list (TPV EBONY_V560, Android TV 9)
yangkeloveaccb32ef5142
diff --git a/examples/philips-50puf7099-t3/debloat.txt b/examples/philips-50puf7099-t3/debloat.txtnew file mode 100644index 000000000..1b8d84c23--- /dev/null+++ b/examples/philips-50puf7099-t3/debloat.txt@@ -0,0 +1,144 @@+# Philips 50PUF7099/T3 (TPV EBONY_V560, Android TV 9 / API 28), China market+# ro.product.model=V560V2_CPFC1_0 ro.product.device=EBONY_V560+# ro.build.version.release=9 ro.build.version.sdk=28+# ro.build.display.id=PPR1.180610.011 release-keys ro.product.manufacturer=TPV+# About 2 GB RAM, 32 GB storage, no GMS (no com.google.* on this unit).+# Hisilicon platform: com.hisilicon.* holds the chip vendor's own apps.+#+# This is NOT one of the other Philips lists in this repo. Those are the TP Vision+# org.droidtv platform (examples/philips-50pus8517, philips-tpm191e, philips-55pus7503)+# or the TPV PH0M_EA_T32 board (examples/philips-50pud7406). This set is a China-market+# set: three package families sit side by side -- tv.fun.* (BestV / the 百视通 platform),+# com.newtv.* + tv.newtv.loginservice (the NewTV IPTV platform) and com.tpv.* (the board).+# There is no org.droidtv.xtv here, so the 50PUS8517 quirk about eum and aurora does not+# apply the same way -- but eum still has to be left alone, see below.+#+# Stock launcher: com.bestv.ott (BestV / 百视通), which is NOT in the repo's+# KNOWN_STOCK_LAUNCHERS list. Pass it explicitly when the launcher takes over:+# STOCK_LAUNCHER=com.bestv.ott TV_HOST=<tv ip> launcher/build-and-install.sh+#+# Live TV / inputs: com.tpv.tvinput, the only TvInputService on this set+# (tuner, HDMI, VGA, composite, component, SCART).+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-50puf7099-t3/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-50puf7099-t3/debloat.txt com.bestv.ott+# Everything is DISABLED, not uninstalled. Comment out anything you want to keep.+#+# ADB: ro.adb.secure=0, so port 5555 accepts any device on the network with no prompt.+# Turn USB debugging and network ADB off again when you are done.+#+# Tested on this unit, 2026-10-26: the whole list below applied, then the launcher+# install, then a reboot. Nothing came back, no crash, the input menu still lists+# HDMI 1, HDMI 2, HDMI 3 and composite. Not yet checked over several days, and the+# real remote keys have not been tried (only injected keys, deviceId=-1).+#+# QUIRKS ON THIS FIRMWARE:+#+# 1. The three upgraders all hold INSTALL_PACKAGES. tv.fun.tvupgrade is the+# installerPackageName of com.bestv.ott itself, so while it lives it can put the+# BestV launcher back and wipe this list. Disabling it gives up system OTA.+# 2. Screensaver. screensaver_components shipped pointing at+# com.google.android.deskclock/com.android.deskclock.Screensaver, but that package+# is not installed and pm query-services -a android.service.dreams.DreamService+# answers "No services found": this set had no screensaver at all. After the+# launcher install, point it at the launcher's own clock:+# settings put secure screensaver_components com.gathin.tvhome/.ClockDream+# settings put secure screensaver_default_component com.gathin.tvhome/.ClockDream+# There is no backdrop package here, so the 50PUD7406 screensaver quirk does not apply.+# 3. org.droidtv.usagelogger asks for android.permission.TV_INPUT_HARDWARE, so+# tools/disable.sh skips it by default. It is a false positive on this set:+# pm query-services --components -a android.media.tv.TvInputService lists only+# com.tpv.tvinput's six services, usagelogger is not among them. Disabling it+# needs TVINPUT_ALLOW=1. Same as examples/cecotec-shandao.+# 4. The screen is 60 Hz 4K on a 2 GB set, so lowmemorykiller is active at idle.+# Every background service removed is a net gain.+# 5. default_input_method is com.android.inputmethod.pinyin/.PinyinIME, which is+# installed -- not the Xiaomi quirk where it points at a missing com.baidu.input.++# Batch 1: telemetry, crash reports and the TPV push channel+tv.fun.bugreporter # crash and feedback reporting; BOOT_COMPLETED x2 + INTERNET+org.droidtv.usagelogger # boot stats, remote keypress counts, panel telemetry (see quirk 3)+com.tpv.asc.taadserver # TPV ad and telemetry server; BOOT_COMPLETED + INTERNET + WRITE_SECURE_SETTINGS+com.tpv.asc.aiot # TPV AIoT push and silent-install channel; BOOT_COMPLETED + INSTALL_PACKAGES++# Batch 2: advertising, recommendation and promotional content+com.tianci.ad # 天赐 ad SDK, versionName carries [philips_v2]; BOOT_COMPLETED + INSTALL_PACKAGES+com.tpv.app.recommendation # TPV recommendation rows+com.funshion.publicity # 欢视 promotional content++# Batch 3: voice, camera and location+# These hold RECORD_AUDIO, CAMERA or ACCESS_FINE_LOCATION. The remote's microphone+# is in the remote rather than the panel, and appops shows no history either way, so+# none of this is proven to record -- but disabling the assistant stops voice search.+com.bestv.voiceAssist # BestV voice assistant; BOOT_COMPLETED + INSTALL_PACKAGES + DELETE_PACKAGES+org.droidtv.camera.cn # camera and remote viewing; CAMERA + RECORD_AUDIO + INSTALL_PACKAGES+com.ktcp.video # ktcp video; BOOT_COMPLETED + RECORD_AUDIO + ACCESS_FINE_LOCATION+com.ktcp.aiagent # ktcp AI assistant+com.hpplay.happyplay.aw # 乐播 screen casting; BOOT_COMPLETED + ACCESS_FINE_LOCATION (LAN discovery)++# Batch 4: preinstalled content apps+# All of these were installed into /data/app by tv.fun.sdkmanager or tv.fun.tvupgrade.+# Disabling one only hides it from the app list; it does not remove it.+com.mgtv.tv # 芒果 TV+com.qiyivideo.fengxing.tvapi # 爱奇艺+com.tencent.qqmusictv # QQ 音乐+com.funshion.live.hrtn # 欢视 live+com.cibn.tv # 百视通+com.coocaa.appShell # 酷开+com.xiaodianshi.tv.yst # 小电视 (央视云视听)+com.karaoketv.yst # 欢唱 karaoke+com.newtv.cboxtv # NewTV box+com.newtv.music # NewTV music+com.newtv.sport # NewTV sport+com.iptv.liyuanhang_ott # IPTV operator service. Leave it on if the set uses IPTV.+tv.fun.orangechildren # children mode+com.bestv.mediapay # payment and subscriptions+org.droidtv.wxtransfer.cn # WeChat casting; BOOT_COMPLETED + INSTALL_PACKAGES+org.droidtv.euinstallertc # EU installer++# Batch 5: the store and the upgraders+# See quirk 1. Disabling tv.fun.tvupgrade gives up system OTA, and with it the+# automatic re-install of the BestV launcher that would wipe this list.+tv.fun.tvupgrade # BestV upgrader -- the installer of com.bestv.ott itself+tv.fun.appstore # app store; INSTALL_PACKAGES + DELETE_PACKAGES + SYSTEM_ALERT_WINDOW+tv.fun.sdkmanager # SDK manager, which installed most of Batch 4+com.tpv.xmic.ota # TPV board OTA; INSTALL_PACKAGES + WRITE_SECURE_SETTINGS+tv.fun.master # BestV master service+tv.fun.ottsecurity # BestV security module; SYSTEM_ALERT_WINDOW + BOOT_COMPLETED+tv.newtv.loginservice # NewTV login service++# Batch 6: the stock launcher, after launcher/build-and-install.sh has moved Home+# and disabled com.bestv.ott.+com.bestv.ott # BestV / 百视通 launcher, the stock Home on this set++# Kept on purpose:+# com.tpv.tvinput the only TvInputService on this set: tuner, HDMI, VGA,+# composite, component, SCART. Without it the inputs go black.+# com.tpv.cecframework HDMI-CEC+# org.droidtv.tv.tptvservice TPV TV service+# org.droidtv.GlobalKey remote global keys+# org.droidtv.eum electronic manual+# org.droidtv.menudataapp menu data+# org.droidtv.contentexplorer media and content browsing+# org.droidtv.settings / org.droidtv.settings_widgets+# org.droidtv.tvsystemui / org.droidtv.ui.tvwidget2k15+# org.droidtv.ui.strings / org.droidtv.ui.strings2+# org.droidtv.networkwizard network setup+# org.droidtv.devicesetup+# org.droidtv.playtv / org.droidtv.channels+# org.droidtv.dlna / org.droidtv.usbbreakin / org.droidtv.intentsdk+# org.droidtv.vscbinderservice / org.droidtv.common.accesshiddenapi+# org.droidtv.tv.inactivityservice / org.droidtv.tv.packageinfo+# org.droidtv.tpvaiotmessenger+# com.hisilicon.tv.service Hisilicon system service, not an app: without it the set+# com.hisilicon.tv.menu has no menu and no picture+# com.hisilicon.rmservice Hisilicon resource manager+# com.hisilicon.miracast Miracast+# com.hisilicon.higallery / com.hisilicon.android.videoplayer+# com.tpv.xmic.tpv_opensdk / com.tpv.xmic.calendar_2k15 / com.tpv.xmic.dbcservice+# com.tpv.xmic.help.ebony2k15 / com.tpv.ebony2k15.joystick / com.tpv.othermenufunction+# tpv.tvsetting.factory.ui+# com.android.* every one of them: systemui, settings, packageinstaller,+# the providers, the input methods. A TV that loses one of+# these may never boot again.+# android.ext.services / android.ext.shareddiff --git a/examples/philips-50puf7099-t3/tv.json b/examples/philips-50puf7099-t3/tv.jsonnew file mode 100644index 000000000..4c1bcebdb--- /dev/null+++ b/examples/philips-50puf7099-t3/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Philips 50PUF7099/T3 (TPV EBONY_V560, Hisilicon), China",+ "os": "Android TV 9",+ "brand": "Philips",+ "notes": "China-market set: BestV/百视通 stock home (`com.bestv.ott`, not in `KNOWN_STOCK_LAUNCHERS`, so pass `STOCK_LAUNCHER=com.bestv.ott`), three package families side by side (`tv.fun.*`, `com.newtv.*`, `com.tpv.*`), no GMS; TPV telemetry and ad services, BestV/ktcp voice and camera, the preinstalled content apps and the three upgraders (all with `INSTALL_PACKAGES`, `tv.fun.tvupgrade` is the installer's own installer) off; the screensaver shipped pointing at a package that is not installed, so there was no DreamService at all; launcher handover verified after a reboot"+}