S B C X U s e r ' s G u i d e
v . 1 . 0 . 1
7.7.3
Running the Android Debug Bridge (ADB)
ADB (
http://developer.android.com/tools/help/adb.html
) is a fundamental
development tool and enables remote access to the Android device. ADB
is provided with the Android SDK, so before using it you must install the
SDK.
7.7.3.1
ADB over USB
ADB over USB is supported, as for all the typical Android devices. The
USB cable must be connected to the J18 Micro-USB connector.
7.7.3.2
ADB over Ethernet
To establish the ADB connection on a Linux host machine, copy the
Android SDK public key from the PC to
the /
data/misc/adb/adb_keys
of the Android root file system. You
can use an USB pen drive or a SD card to transfer the file to the Android
target:
root@sbcx:/ # cd /mnt/media_rw/extsd/
root@sbcx:/ # cp adbkey.pub /data/misc/adb/adb_keys
From the Android console, launch:
root@sbcx:/ # setprop service.adb.tcp.port 5555
Then kill the adbd process (it will be relauched automatically).
7.7.3.3
Connecting via ADB
On the host PC, launch:
adb kill-server
adb connect <ip-address>
and on the SBCX, confirm the authorization.
On the host PC, launching the
adb devices
command, the following
messages will be returned:
$ adb devices
List of devices attached
<ip-address>:5555 device
You can access a remote shell using the following command:
$adb shell
To install an application (in .apk format), you can use the following
December, 2019
116/139
Summary of Contents for SBC AXEL
Page 2: ...S B C X U s e r s G u i d e v 1 0 1 Page intentionally left blank December 2019 2 139 ...
Page 105: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 105 139 ...
Page 106: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 106 139 ...
Page 107: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 107 139 Fig 44 QtQuick Hello World ...
Page 119: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 119 139 ...
Page 121: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 121 139 ...
Page 139: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 139 139 ...