Home Blog

Cleaning up a TCL Google TV over adb

My TCL TV runs Google TV on Android 12, on a Realtek SoC. I only use it as a display: an Apple TV sits on HDMI 1 and a PS5 on HDMI 3. Out of the box it still came with about a dozen streaming apps, TCL's own content services, Samba TV, and a handful of background services whose job is to report what I watch.

It also had one actual annoyance. While I adjusted picture settings with the TV remote, the Apple TV would start navigating its own menus.

Both problems turned out to be fixable over adb, though the second one was not the problem I first thought it was.

Getting in

Developer options on Google TV are under Settings → System → About: press OK on "Android TV OS build" seven times. Then enable USB debugging and network debugging, and connect:

adb connect <tv-ip>:5555
adb devices -l

The TV reports itself as G10_4K_US_NF, model Smart_TV.

Removing apps without root

pm uninstall --user 0 removes a package for the only user on the TV but leaves the APK on the system partition. It does not need root, it survives reboots, and it can be undone at any time:

adb shell pm uninstall --user 0 <package>
adb shell cmd package install-existing <package>   # undo

To decide what to remove, I listed every package with its path (pm list packages -f) and checked who installed the third-party ones (dumpsys package <pkg> | grep installerPackageName). Hulu, Disney+, Max, Tubi, YouTube TV and the Apple TV app all had the same install time to the second, from Google Play, during initial setup. That is Play Auto Install, which is driven by android.autoinstalls.config.google.gtvpai. Removing that package stops the apps from coming back.

I removed:

I also set TCL's Samba TV opt-in switch to off:

adb shell settings put global tcl_app_ssm_switch 0

I kept the launcher, Play Services, TCL's setup and user-agreement apps (the TV needs both), Chromecast, the media player, and Game Bar, which shows VRR and ALLM status for the PS5.

The remote problem

An Android TV can send remote key presses to an HDMI device over CEC, which TCL calls T-Link. The obvious theory was that the TV kept forwarding keys to the Apple TV even while its picture menu was open.

dumpsys hdmi_control showed the Apple TV on the CEC bus at logical address 8. I recorded logcat while pressing arrows in the picture menu, then pressed Back and pressed a few more arrows. TCL's player logs every decision, so the trace was easy to read:

ThirdModuleKeyDispatcher: dispatchCECKeyEvent() tLinkEnable : true, isHdmiSource : true, ...
ThirdModuleKeyDispatcher: dispatchCECKeyEvent() cecKeyCode = 19
TclHdmiControlService: CECDEBUG sendCecCommand:<User Control Pressed> 08:44

None of the roughly twenty presses inside the picture menu went out over CEC. The menu consumed all of them. Forwarding only started once Back had closed the menu and the live HDMI input had focus again, which is what passthrough is meant to do. The dispatcher checks only whether T-Link is on and whether the input is a CEC source. There is no per-device setting.

I turned CEC off anyway:

adb shell cmd hdmi_control cec_setting set hdmi_cec_enabled 0
adb shell settings put global hdmi_control_enabled 0

A second trace showed tLinkEnable : false on every key, and no more "User Control Pressed" messages. The Apple TV still reacted to the remote.

The explanation is in dumpsys input. The TCL remote is not a Bluetooth remote. Its key presses come in through the Realtek IR receiver (venus_IR_input, mapped to rtk_keypad). The Apple TV has its own IR receiver, so it sees the same beams directly. At some point it had been taught this remote under Settings → Remotes and Devices → Learn Remote. Deleting the learned remote there fixed the problem completely.

So the CEC change was not needed for this. I have left it off for now, which also means the PS5 and Apple TV no longer switch inputs or turn the TV on by themselves. Turning it back on is one command:

adb shell cmd hdmi_control cec_setting set hdmi_cec_enabled 1

Things adb cannot do

Google's advertising ID lives inside Play Services, so it has to be reset on the TV: Settings → Privacy → Ads → Delete advertising ID, and turn off Usage & Diagnostics on the same page.

One more thing to watch: removing TTVS killed Game Bar's process once, because Game Bar uses permissions that TTVS defines. It logged no errors, but if Game Bar stops opening with the PS5, install-existing com.tcl.ttvs restores it.