ADB Login
Overview
ADB (Android Debug Bridge) is one of the most convenient ways to connect to the Rhino Pi A1R, without the need to configure a display or network additionally.
Prerequisites
Windows
- Download and extract the ADB tool package platform-tools
- Add the extracted
platform-toolsdirectory path to the PATH system environment variable - Open CMD or PowerShell and run
adb versionto verify the installation
Linux / macOS
bash
# Ubuntu / Debian
sudo apt update
sudo apt install adb
# macOS
brew install android-platform-toolsHardware Connection
- Use a USB Type-A to Type-C data cable to connect the device
- Connect the USB Type-A end to the PC
- Connect the USB Type-C end to the Type-C port on the Rhino Pi A1R
- Power on the device and wait for the system to finish booting (the STATUS LED stays solid green)
Establish an ADB Connection
bash
# List connected devices
adb devices
# Example of normal output:
# List of devices attached
# 47897135 deviceIf the device is not listed:
- Verify the USB data cable supports data transfer (not a charge-only cable)
- Reconnect the USB data cable
- Try a different USB port on the PC
Common ADB Operations
Enter the Shell
- Method 1: Enter the device command line with normal privileges
bash
# Enter the device command line
adb shell- Method 2: Enter the device with root privileges
bash
# Obtain root privileges
adb root
# Enter the device command line
adb shellFile Transfer
bash
# Upload a file to the device
adb push <local file path> <device target path>
# Example: upload test.py to /home/aidlux/
adb push test.py /home/aidlux/
# Download a file from the device
adb pull <device file path> <local target path>
# Example: download the log file
adb pull /var/log/syslog ./System Operations
bash
# Restart the device
adb reboot
# Enter flashing mode (EDL)
adb root
adb reboot edl
# View system information
adb shell cat /proc/version
adb shell cat /proc/cpuinfoWarning
The current system does not support connecting via adb connect <Device IP>:5555.