Skip to main content

Reaching a device: tdt

tdt is the Taunus debug tool, like adb. It talks to tdtd on the device over USB (the device is 172.16.42.1) or Wi-Fi (debug builds), authenticated with an ed25519 key per computer.

  1. Turn on Settings › Developer (developer mode) on the device.
  2. Connect the USB cable and run tdt shell. The device asks whether to allow this computer; confirm.
tdt shell [CMD] # a shell as the session user
tdt push FILE… DIR / tdt pull # copy files
tdt screenshot [FILE] # what is on screen
tdt layout [-a APP] # the Slint element tree of every visible window, with on-screen values
tdt ui CMD # a shell control command, e.g. tdt ui screenoff
tdt press KEY # a key like a remote's: up down left right ok back home …
tdt tap X Y / swipe / type # touch and text input
tdt --root shell # as root (needs Settings › Developer › Rooted debugging)
tdt help

Each daemon has its own key, which tdt pins in ~/.config/tdt/known_hosts. After a factory reset the device has a new one: tdt forget HOST.

The root daemon (port 578) refuses screenshots and input. In release builds rooted debugging works over USB only, needs a passcode of at least 6 digits and ends after a restart.

Without a working system: boot TWRP on the device and run cargo xtask flash.