ADB Debugging
ADB (Android Debug Bridge) is a command-line tool officially provided by Android for debugging and managing Android devices.
Our tutorial uses Android SDK Platform-Tools for ADB debugging.
Android SDK Platform-Tools is a core component of the Android Software Development Kit (SDK), providing developers and advanced users with a collection of utilities for interacting with and managing Android devices and emulators.
Android SDK Platform-Tools includes tools like ADB (Android Debug Bridge) and Fastboot, supporting major operating systems such as Linux, Windows, and macOS.
Hardware Requirements
- Board: Radxa Cubie A7A
- Boot media: MicroSD card, eMMC module, or UFS module (choose one)
- Power adapter: 5V Type-C power adapter
- Type-C cable: For connecting the board to your computer
Ensure that the Android system on your Cubie A7A has successfully booted before proceeding with ADB debugging.
For the exact location of the Type-C port, please refer to the interface description section in the Hardware Interfaces guide!
Download SDK Platform-Tools
Official download page: Android SDK Platform-Tools
Download and extract the appropriate SDK Platform-Tools package for your operating system.
Using SDK Platform-Tools
We primarily use the ADB tool from the SDK Platform-Tools package.
Open a terminal, navigate to the extracted platform-tools
directory, and run ADB tools using the ./adb <command>
command.
View Version Information
Use the ./adb version
command to view the version information of the ADB tool.
./adb version
Upon successful execution, it will display the version information of the ADB tool, similar to the following:
Android Debug Bridge version 1.0.41
Version 36.0.0-13206524
Enable Debugging Function
The Android system on Cubie A7A defaults to enabling USB debugging, and wireless ADB debugging is supported from Android 11.
Wired Connection:You need to enable USB debugging in the Android system on Cubie A7A.
Wireless Connection:You need to enable wireless debugging in the Android system on Cubie A7A.
Wired Connection
Use a Type-C data cable to connect Cubie A7A and your computer. Power and wired debugging are performed through this Type-C data cable.
Wireless Connection
Use a Type-C power adapter to connect Cubie A7A, Cubie A7A's WiFi and your computer need to connect to the same network, ensuring they are in the same local area network.
Enable Debugging Function
We need to let Cubie A7A enter developer mode, and check if USB and wireless debugging functions are enabled in this mode.
Steps to enable USB and wireless debugging functions:
- Enter the
Settings
→About tablet
interface of the Android system on Cubie A7A. - Click
Build number
seven times to enter developer mode. - Enter the
Settings
→System
→Developer options
interface of the Android system on Cubie A7A. - Check the
USB debugging
andWireless debugging
functions. - Click the
Wireless debugging
option to seeIP address & Port
, wireless debugging requires IP address and port information.
View Device List
Use the ./adb devices
command to view the device list.
./adb devices
Upon successful execution, it will display the device list, similar to the following:
List of devices attached
7c0016117200887238d device
Connect Android Device
- Wired Connection
- Wireless Connection
In the platform-tools
folder directory, use the ./adb shell
command to enter the Android device's terminal shell.
./adb shell
Upon successful execution, it will display the Android device's terminal shell, similar to the following:
radxa-a7a:/ $
In the platform-tools
folder directory, use the ./adb connect <device_ip>
command to connect to the Android device.
./adb connect <device_ip:port>
# Example
./adb connect 192.168.31.201:43167
Upon successful connection, you'll see a message similar to:
already connected to 192.168.31.201:43167
After a successful connection, use the ./adb shell
command to access the Android device's terminal shell.
./adb shell
Successful access will display the Android device's terminal shell, similar to:
radxa-a7a:/ $