# Claude Code found a root backdoor on my cheap Android TV stick\, then ported mainline Linux to it over USB\, with Sonnet building and Opus auditing every step before anything touched the hardware


A Reddit user bought a no-name “DQ10” Android TV stick built on an Allwinner H618 and asked Claude Code to reflash it with clean firmware and make it safe. About two days later the stick ran mainline U-Boot plus Armbian &#40;kernel 6.18.53&#41; from its own eMMC, the factory Android was fully wiped, and the original firmware turned out to be malicious; Wi-Fi worked and SSH was key-only. The user did no soldering and had no serial console, acting as the “hands” while Claude Code did the technical work. Scripts, device tree, flasher, runbook, audits and malware indicators are published in a GitHub repository. The workflow ran Claude Code CLI on Windows with Git Bash, a Kali WSL2 distro and usbipd-win to pass the stick’s USB into WSL. A standing rule was “write code with Sonnet and do an audit with Opus”: the main Opus session planned, communicated and ran commands against the hardware, a Sonnet subagent built U-Boot/TF-A configs, the device tree, images, scripts and tests, and a separate read-only Opus subagent audited and wrote a report. Nothing was written to the stick until an audit passed and the user approved. CLAUDE.md logged decisions, evidence and dead ends into an Obsidian vault. Initial access found the stick claimed Android 13 but was really a userdebug Android 12 with unauthenticated root ADB, reached through hidden Developer options via Activity Launcher on TCP 5555. After isolating the stick behind an egress-blocking iptables chain on a laptop hotspot and taking a full eMMC backup, the backup contained a vendor remote-command system, root drop scripts written on the stick’s first day online, and an 11 MB UPX-packed Go binary carrying NPS reverse-tunnel code started as root. The user concluded the OS had to be replaced rather than cleaned; indicators are published with hosts defanged and no samples. Four Opus audits, each in a fresh context, gated the writes: Round 1 &#40;GO-WITH-FIXES&#41;: a power-cycle instruction could brick the device mid-write; a borrowed device tree disabled the SD slot; hash checks ignored filesystem resize. Round 2 &#40;NO-GO&#41;: U-Boot started over USB &#40;FEL&#41; only 1 in 6 times, so the auditor refused to sign off and proposed zero-write diagnostics. Round 3: usbipd bind without --force let Windows keep and once rewrite the partition table; a boot-command test could pass falsely after a crash. Pre-publication audit: a build script would bake a private key into a shareable image and the README allowed wiping without a verified backup. Without a UART, Claude used the LED and reset timing as a debugger—tiny U-Boot environment overrides blinked patterns, and “back in FEL 16 seconds later” meant U-Boot reached its boot command. It found the LED was active-low by poking GPIO over FEL and that the button wired directly to the Boot ROM. When USB mass storage failed from a cold boot, it instead booted a small Linux into RAM over FEL &#40;HDMI console, Wi-Fi scan, then a configfs USB gadget exposing eMMC&#41;, which became the flasher. The project was interrupted by Claude’s 5-hour and weekly usage limits, and subagents died mid-task; the post cuts off before listing what ultimately worked.
