Open main menu

DAVE Developer's Wiki β

Changes

Industrial Tablet

1,199 bytes added, 10:51, 10 March 2015
m
no edit summary
{{ImportantMessage|text='''The default IP address is 192.168.0.122'''}}
 
 
=== Running_the_Android_Debug_Bridge ===
 
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. With adb, developers can remotely access the Android device (via USB, USB-ETH or ETH) to check the status, open a shell, etc. (http://developer.android.com/guide/developing/tools/adb.html).
 
To enable adb (via ethernet), the following commands must be launched on the target:
 
<pre>
target #> setprop service.adb.tcp.port 5555
target #> stop adbd
target #> start adbd
</pre>
 
On the host machine, after Android SDK installation, launch:
 
<pre>
$ export PATH=${PATH}:<your_sdk_dir>/platform-tools
$ export ADBHOST=<target's ip address>
$ adb kill-server
$ adb start-server
</pre>
 
To check the connection, from the host machine launch:
 
<pre>
$ adb devices
</pre>
 
If the device is properly connected and detected, the output will be the following:
 
<pre>
$ adb devices
List of devices attached
emulator-5554 device
</pre>
 
A remote shell can be started with the following command:
 
<pre>
$ adb shell
</pre>
 
To install an application (in .apk format), launch:
 
<pre>
$ adb install <path to apk>
</pre>