Adb on tablet (not android tv / firetv) possible?

Hi everybody,

I have a Samsung Galaxy Tab, which has the Home Assistant android app installed. Is there some way to send adb commands to this device?

When I go to developer-tools/service, there are services relevant to adb, but they all need an android tv component.

The Fully Kiosk Browser is also installed, which can be connected to Home Assistant (docs). However:

  • the kiosk browser is not always running, and even if it were:
  • the integration doesn’t allow custom commands (or, for example, starting particular apps)

I’d like to install kodi on this tablet. If there was a way to send an adb command to the tablet, I could instruct it to open kodi via some trigger. Once it was opened, I could control it through the kodi integration. But this won’t work when kodi is not running already.

tl;dr

Can I send adb commands to an android device that is not an android tv / firetv?

I guess at workaround would be utilizing the shell_command to initiate the adb command… but since Home Assistant already has adb built in, perhaps there is a “better” way to do this?

Thank you in advance for your ideas :slight_smile:


UPDATE:

When I ssh into my hassOS machine (Home Assistant OS 9.5, homeassistant 2023.2.5, supervisor 2023.01.1), the adb command is not available. So I guess shell_command isn’t as easy as I thought.

1 Like