Toybrick EN

中文 / EN
Toybrick EN Wiki TB-RK3399ProD ADB Usage
ADB Usage

Ubuntu16.04 Install Adb

1. Install adb

You can install adb by apt-get install android-tools-adb 



2.   Connect android devices to computer, check usb devices by lsusb, it is an android device as following red part shows. 

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 005: ID 0bda:0821 Realtek Semiconductor Corp

Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller

Bus 001 Device 003: ID 5986:06b2 Acer, Inc

Bus 020 Device 002: ID 2207:0006 Fuzhou Rockchip Electronics Co., Ltd.

Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


3.   Create adb_usb.ini file,write android device's VID

echo 0x2207 > ~/.android/adb_usb.ini

4. Restart adb service, and execute adb devices command, if there is a device then it means adb is successfully configurated.

adb kill-server

adb start-server

adb devices

List of devices attached

69T7N15823003216   device

ADB Install under Windows

1. Download adb.zip from  http://adbshell.com/download/download-adb-for-windows.html

2. Extract it to C:\adb

3. Configure environment variables

4. Open command line window,input:adb shell

If all is OK, you can enter adb shell,and execute command in devices

Connection Management

Direct connection with Type-C

1. List all the connected devices and their series numbers adb devices

List of devices attach

G1XXI2YZXK      device

G2XXI2YZXK      device

2. Connect one of devices

adb  –s  G1XXI2YZXK   shell(if only one device is connected,directly adb shell)

Connection through network

1. Input in serial port:

setprop service.adb.tcp.port 5555

stop adbd

start adbd

2. Input ip a in device serial port,achieve device address(172.16.9.76)

3. Input in host machine adb connect 172.16.9.76

4. Input in host machine adb  shell

Install/Uninstall apk

1. adb install  [items] *.apk

With following parameters:

-l: forward lock application

-r: replace existing application

-t: allow test packages

-s: install application on sdcard

-d: allow version code downgrade

2.  adb uninstall *.apk

Other Adb Commands

Please use adb –help to get corresponding help





Products Store Community Wiki Download About TB


To Top