Introduction
This article is to help install Android SDK Platform-tools so you can connect your laptop to the H-Series via the command line.
Choose your OS:
ADB examples
Check ADB commands list here.
How to setup ADB on Windows
- Download the Android SDK Platform Tools ZIP file for Windows.
- Extract the contents of this ZIP file into an easily accessible folder (such as C:\platform-tools)
- Open Windows explorer and browse to where you extracted the contents of this ZIP file.
- Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “Open command window here” option. (Some Windows 10 users may see “PowerShell” instead of “command window”.)
- Enable H200's Developer Mode in ORCHESTRATE, ENGAGE or DHCP Server. Click here to know how.
- Find the IP address of your STB and enter the following command to launch the ADB daemon:
adb connect <IP>
- On your STB screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
How to setup ADB on macOS
- Download the Android SDK Platform Tools ZIP file for macOS.
- Extract the ZIP to an easily-accessible location (like the Desktop for example).
- Open Terminal.
- To browse to the folder you extracted ADB into, enter the following command:
cd/path/to/extracted/folder/
- For example, on my Mac it was this:
cd/Users/Doug/Desktop/platform-tools/
- Enable H200's Developer Mode in ORCHESTRATE, ENGAGE or DHCP Server. Click here to know how.
- Find the IP address of your STB and enter the following command to launch the ADB daemon:
./adb connect <IP>
- On your STB screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
How to setup ADB on Linux
- Download the Android SDK Platform Tools ZIP file for Linux.
- Extract the ZIP to an easily-accessible location (like the Desktop for example).
- Open a Terminal window.
- Enter the following command:
cd/path/to/extracted/folder/
- This will change the directory to where you extracted the ADB files.
- So for example:
cd/Users/Doug/Desktop/platform-tools/
- Enable H200's Developer Mode in ORCHESTRATE, ENGAGE or DHCP Server. Click here to know how.
- Find the IP address of your STB and enter the following command to launch the ADB daemon:
./adb connect <IP>
- On your STB screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
Some Linux users should be aware that there can be an easier way to install ADB on their computers. The guide above will certainly work for you, but those on a Debian or Fedora/SUSE-based distro of Linux can skip steps 1 and 2 of the guide above and use one of the following commands:
Debian-based Linux users can type the following command to install ADB:
sudo apt-get install android-sdk-platform-tools
Fedora/SUSE-based Linux users can type the following command to install ADB:
sudo yum install android-sdk-platform-tools
However, it is always better to opt for the latest binary from the Android SDK Platform Tools release, since the distro-specific packages often contain outdated builds.
Just to cover all of our bases here, users may need to put a ./ in front of the ADB commands we list in future tutorials, especially when they are using the extracted binaries directly from the Platform Tools ZIP. This is something that is likely known by any *nix user (or Windows user running PowerShell) already, but again, we want as many people as possible to understand how to do these tweaks for Android no matter how much of your operating system you know.