Login Using ADB

After setting up connections of Blade 3, you can log in to it on Windows, macOS, or Ubuntu using Android Debug Bridge (ADB), a serial communication tool, or via SSH.

ADB is a command-line tool that enables a variety of functions, such as tracking system logs, uploading files and downloading files.

This document describes how to log in to Blade 3 using ADB. For details about login using a serial communication tool and via SSH, refer to the following documents:

Preparations

  • A Blade 3 board
  • A computer: Windows, macOS, or Ubuntu
  • A USB-C cable
  • A power adapter with a USB-C connector at one end that supports USB PD 2.0

Steps

Step 1. Connect hardware

Connect one end of the USB cable to Blade 3’s USB port that is away from the corner and the other end to the computer.

Step 2. Install ADB

Install ADB according to the operating system running on your computer.

On Windows

1. Download ADB and unzip the file to a customized installation directory, such as C:\adb\platform-tools.

2. Press Windows+R open Run. Then enter sysdm.cpl and press Enter.

3. Choose Advanced > Environment Variables > System Variables > Path.

4. Create a directory C:\adb\platform-tools under Path.

On macOS

1. (Optional) Install Homebrew if it is not installed yet by running the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. Install ADB by running the following command:

brew install android-platform-tools

On Ubuntu

sudo apt update
sudo apt install android-tools-adb

Step 3. Verify ADB connection status

Run either of the following ADB commands to verify whether the ADB connection is successful:

adb devices
List of devices attached
I002TDRJNA    device
adb shell
root@blade3:/#

Other ADB commands

Besides adb devices and adb shell, you can interact with Blade 3 through ADB by running other ADB commands, such as adb pushadb pull, and adb reboot.

adb push

You can copy files from a local computer to Blade 3 by running this command. The format is as follows:

adb push <local> <remote>

For example:

adb push /Users/mia/Documents/test_1.txt /home/mixtile

This copies the test_1.txt file from a local computer to the mixtile folder of Blade 3.

adb pull

You can copy files from Blade 3 to a local computer by running this command. The format is as follows:

adb pull <remote> <local> 

For example:

adb pull /home/mixtile/test_2.txt  /Users/mia/Downloads

This copies the test_2.txt file from Blade 3 to the Downloads folder of a local computer.

adb reboot

You can remotely reboot Blade 3 by running this command.

adb reboot

When upgrading the firmware of Blade 3, you can enable it to enter Loader mode by adding the loader parameter:

adb reboot loader

For details about upgrading the firmware of Blade 3 in Loader mode, see Upgrade firmware in Loader mode.

Was this article helpful?

Related Articles