Introduction
This article will help the user to create public and private adb keys so the H200 device does not request access to USB debugging constantly.
Creating adb keys
1. The Android SDK Platform Tools must be installed on the computer.
Refer to this article on how to do that:
2. Activate the Developer Mode in the H200.
Refer to this article on how to do that:
https://help.aminocom.com/hc/en-us/articles/4467077099289-How-to-set-developer-mode-and-usb-debug-
3. Use the adb command to generate a private and public key pair.
Open a terminal window and go to the platform-tools folder. Then run the adb command as shown in the example below.
Windows CMD:
cd /platform-tools
adb keygen adbkey
Linux Terminal:
cd /platform-tools
./adb keygen adbkey
This will create a pair of keys, public and private with the names, taken from the previous example:
adbkey.pub (public) and adbkey (private)
4. Host the adb.pub on a secured HTTP server and set the adb.key_url INI parameter in Orchestrate or DHCP VCI server as the example below:
Note: If the public key is not hosted in a secured HTTP server, the H200 won't download the key for security reasons.
5. Open a terminal and go to the folder where the private key and the adb are located and run the following commands:
Windows CMD:
cd /platform-tools
adb connect <YOUR H200 IP>
Linux Terminal:
cd /platform-tools
./adb connect <YOUR H200 IP>
6. On the first connection attempt you will have to allow a USB debugging request. After that, and if everything was done correctly, the H200 won't prompt USB debugging anymore.
Comments
0 comments
Please sign in to leave a comment.