I want to use an android phone as a USB terminal/display for a headless system.

The ideal user experiece would be:

  1. Plug phone to the usb port.
  2. System starts sending status info, phone displays it.

I prefer a solution without developer options/adb necessary.

Ideally the end user only has to install an app and open it up.

Does a solution exist?

  • Maybe via VNC? – Izzy Dec 16 '15 at 0:18
  • Gave it a try. Since the purpose is info display only, having a desktop is a bit of overkill and requires extra scripting to auto-open an info display. Headless system will have no X11 anyway.... Effort for the user to set up a new phone is equal or greater to the partial solution I list below. – hauptmech Dec 16 '15 at 0:59
  • Enabling usb-tethering programmatically seems to be not possible. – hauptmech Dec 16 '15 at 1:03
  • Good points. If the device is rooted, auto-enabling USB tether should not be a big deal for e.g. Tasker with the Secure Settings Plugin, as my Tasker graphs reveal – just a matter of finding the right trigger-acction :) – Izzy Dec 16 '15 at 6:00
  • Rooted devices are not an option. I want to be able to do a sanity check on the headless server using any device at hand. – hauptmech Dec 16 '15 at 12:27

My current partial solution:

  1. android: Use usb-tethering to create rndis connection.
  2. headless: bring up network device with a static ip
  3. android: ssh to pc
  4. headless: pipe output to connected pts with write(1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.