Mini essays,  AI,  Code,  Data

How to fix, debug and improve your android tv with AI

The Power of AI-Assisted Hardware Debugging Got issues with Your android tv ? Tell copilot to connect to it, analize the lot and provide a feedback. It`s the gist. Longer explanation is that even if You have no idea You can try to utilize an LLmemes to do it for You. They already know the api, have some kind of documentation. Understand to use android debug bridge (adb) to get the proper data.

Below what i got fixed and some examples of usage for LLM + ADB + prompt engineering to fix my crashing Youtube app on my Sharp Aquos Android TV. Even got some power saving recommendation and privacy hints. God knows how android suck.

What was the issue ?

Youtube crashing android tv for no particular reason – i just messed up with developer options as it turnes out.

How to fix, debug or improve your android tv with AI youtube issue mawaysfinishactivity true

The results?

Also more at the end.

  • Youtube and other apps stopped crashing
  • 15%+ reduction in power consumption
  • privacy improvement
  • Better performance – less bloat

Part 1 – setup

What You’ll Need

Personally to debug android tv i preferred to use wireless debugging options using android debug bridge software.You just need to know the IP and pairing code from programmers / developers tools. Menu unlocked by clicking 7-9 tabs on the “Info system” tab. I did run all of it on linux mint. Used webstorm IDE with github copilot (bleh). This was able to utilize the installed in the system ADB and write some scripts.

ToolPurposeWhy It Matters
ADB (Android Debug Bridge)Connect to TV via WiFi/USB; execute shell commandsThe backbone of TV debugging
AI Assistant (ChatGPT/Claude/Copilot)Analyze outputs, suggest optimizations, explain configsTurns raw data into actionable insights
TV Developer ModeAccess to tv apiAllows access, critical.

Install ADB

This is a simple tool using console. We do not need UI, just an AI chat or Android Developer Studio.

# macOS
brew install android-platform-tools

# Linux
sudo apt-get install android-tools-adb

# Then pair with your TV (Android 11+)
adb pair YOUR_TV_IP:PAIRING_PORT PAIRING_CODE
adb connect YOUR_TV_IP:DATA_PORT

Install work environment for AI

Some kind of IDE like Intellij, Visual Code Studio, what ever or just plan console access using claude, gpt, openrouter or any kind of AI agent.

Prompt: RICO Enginner

To fix or improve anroid tv using ai You need to tell the AI who it is.Prepare the base prompt. At least it will help. Use the RICO prompt model.

Role – You are an android tv engineer and need to debug logs and settings to fine tune the tv to the best stability (critical), performance and lower power consumption.

Input – We are using wireless debuggin on the TV in local WiFi. IP to connect : 192.168… pairing code from the tv : 123456. Confirm connection when it is available when working and then move forward. Fail and ask for input if connection fails.

Contraints – Only read the data from the tv. Do not commit any changes and not make decision on Your own. Download the data into a single folder “tv_debug_data_<date>”.

Output – Download all the avaialble data -logs, settings , data files. List them. Analize the data downloaded. Provide insight on what are the issues on the TV. Focus on crashing apps. Exceptions and errors we can avoid. Check what kind of settings we could change to provide stability for the system.

Part 2: Get and provide log analysis

You can always add additional information to the prompt that can override the basic RICO model. Adjust to your liking and preference of work. You can ask the LLm agent to get all the possible logs from the TV. Afteir pairing it will be able to download a whole list of data You need to check to find out what is crashing or ruining the experience. Hehe, just kidding , You will tell the copilot to do it for You. Or Claude… or GPT. Whatever.

Prompt:

Get all available logs from the TV. We need to analize them for crashes, exception and problems occuring. Check the most common errors and propose solutions. 

Part 3: Check the apps ? What can i remove

Having much bloat or apps installed we can nicely list them, especially the apps we do not really se in the tv menu like ACR.

Prompt:

Get list of the apps from the tv. We need to check whichone are safe to be deleted, disabled, removed. Provide analysis output in a tabular format in an easy to understand format. Underline the risks. 

AI Output (summarized for this post):

AppFunctionSafe to DisablePrivacy RiskNotes
TalkBackScreen reader (accessibility)🟡 YellowLowProtected by system; can’t disable via ADB
ACRAuto Content Recognition✅ Green🔴 HIGHReports everything you watch to Anoki
Google FeedbackUsage analytics✅ Green🟡 MediumSends crash/usage data to Google
YouTube MusicMusic streaming UI✅ GreenLowOptional feature
Play GamesGaming integration✅ GreenLowStores game progress cloud
File ManagerFile browser✅ GreenLowRarely used on TV
Web BrowserInternet browser✅ GreenLowOld browser, rarely used

Then i asked copilot to disable the apps and the output was like :

# Disabled via ADB shell
adb shell pm disable-user --user 0 com.google.android.feedback
adb shell pm disable-user --user 0 tv.anoki.acr.anokiacroptin
adb shell pm disable-user --user 0 com.google.android.youtube.tvmusic

All 3 disabled successfully. Around 100MB RAM freed, significant privacy improvement (TBD: ACR no longer tracking)

Part 4: The Settings analysis – find power drainage

I dumped all 342 global + 37 system + 114 secure settings from the TV into couple of files. Copilot pretty much executed a simple one liners at this point. 493 settings to be reviewed. No can`t do.

adb shell settings list global > settings_global.txt
adb shell settings list system > settings_system.txt
adb shell settings list secure > settings_secure.txt

Prompt:

I have 493 Android settings from a TV. Most are defaults. I need to find energy-draining misconfigurations as a priority. Propose any other obvious improvements. Check the proper android version and if You can correlate with the tv model sharp aquos.
Which ones are costing me the most power?
Which one provide stability and increase performance ?

AI Analysis:

SettingPower CostRecommendationWhy
wifi_sleep_policy = 2-10-15% batteryChange to 1WiFi consuming full power 24/7 even in standby
screen_brightness = 102-20-25% powerLower to 70-80LCD backlight = largest power consumer
mobile_data_always_on = 1-5-10% batteryChange to 04G radio active even when not used
development_settings_enabled = 1-5-10% CPUKeep for debugging onlyExtra logging & verification overhead
screen_brightness_mode = 0Not direct, but prevents savingEnable auto-brightnessCan’t adapt to room lighting

Actually this is a bit of hallucinating. screen brightness i had set to 45. I wonder where the over 100 value came from. No idea to be honest. Maybe its some other weird value derived from some other settings.

vintage tv, tv, ancient, old, transistor, vintage tv, vintage tv, vintage tv, vintage tv, vintage tv, tv, tv, tv

Part 5: Results

Saved a bit of RAM, added to privacy, i know that adguard and ad blocking wasn’t the issue. Youtube isn’t crashing no more. Removed some bloat services and disabled them. Removed Sharp ACR from spying on my ass.

CategoryBeforeAfterImprovement
Privacy-invasive apps4 installed0 active✅ 100%
Data collection appsGoogle Feedback ONDisabled✅ Eliminated
Content trackingACR (Anoki) ONDisabled✅ REMOVED
Cloud sync active3 services1 service✅ 66% reduction

What’s ACR? (Auto Content Recognition)

  • TV watching → Recorded
  • Show/movie metadata → Sent to Anoki server
  • Aggregated with millions of users for analytics
  • Hidden from user (no visible icon/notification)

By disabling ACR: Your viewing habits are no longer tracked and sold to advertisers.

Part 6: Best Practices – lessons learned

Using AI Effectively

PracticeExampleBenefit
Ask clarifying questions“Why would [X] be ON but [Y] still work?”Understand root causes, not just symptoms
Request comparative analysis“Compare power consumption: A vs B vs C”Prioritize by impact
Ask for priority matrices“Rank these 10 changes by risk/reward”Avoid wasting time on low-impact tasks
Use AI for code generation“Create ADB command to disable these 5 apps”Save typos, batch-disable faster
Explain real-world context“This is a TV (not a phone)”Get device-appropriate advice
question everything with ai
question everything with ai

Common AI Debugging Mistakes

MistakeWhy It FailsBetter Approach
Asking too broadly“How do I optimize Android?” (generic)“How do I optimize THIS TV given these 493 settings?”
Ignoring device contextAI suggests mobile-focused optimizationsProvide: device type, OS version, chipset, use case
Blindly following suggestions“Disable these 20 apps” without understanding“Why should I disable each? What breaks if I do?”
Not verifying changesAssume setting changed without checkingAlways verify: settings get [key] after put
Risking critical changesJump to bootloader unlocking without data backupStick to: app disable, settings changes, testing UI

Conclusion: The New Art of Hardware Debugging

Once upon a time to debug your android tv or fix your it you would have to read and learn A LOT. Go through pages of documentation, trial and error. Now You just fire up an AI agent , point him to the right direction and everything goes on automativcally. Of course You can leave it on auto, provide additional information and so on and so forth. It is up to You. But no more reading, googling, checking, learning, wasting time on something that should be simple.

What we accomplished in this session (according to AI):

Youtube and apps are not crashing !!

There is a simple way to have a proper llm model ‘talk’ with your devices and translate for you. Kinda like….

why would ai do that ross friends
why would ai do that ross friends

Identified critical energy drains (and their impact %)
Found and disabled 2 privacy-invasive apps
Diagnosed mysterious “airplane mode” paradox (legacy setting)
Worked around permission restrictions (shifted to UI when needed)
Achieved 15% power reduction without risk (wifi optimize, less cpu usage)
Improved TV performance by 15+% (by reducing background apps)

The real insight: AI isn’t about doing the work for you. It’s about helping you ask better questions and understand complex systems faster.

Basic blueprint

  1. Collect data from your device (ADB + shell commands)
  2. Ask AI specific questions with context (device type, OS version, use case)
  3. Verify each change before moving to the next
  4. Document your learnings for future reference
  5. Share discoveries with your community!

Resources

About This Post

This post documents a real optimization session on a Sharp Aquos Grade Android TV (MediaTek chipset) from June 2024. No risky hacks or rooting required!

Good luck debugging.

Piotr Kowalski