<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Debugging</title><link>https://sourceforge.net/p/ipaq214android/wiki/Debugging/</link><description>Recent changes to Debugging</description><atom:link href="https://sourceforge.net/p/ipaq214android/wiki/Debugging/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 15 Jan 2012 16:32:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ipaq214android/wiki/Debugging/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Debugging modified by Alvin Wong</title><link>https://sourceforge.net/p/ipaq214android/wiki/Debugging/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -11,6 +11,8 @@
 
 Switch on WiFi and connect to your AP. Get the IP by pressing the AP. Sit on your computer and execute `adb connect &lt;ip&gt;` and you should be connected to your device already.
 
+**Do note that this method may creates a security problem as anyone that can reach your IP will be able to use ADB on your device. As ADB has root access by default, your device can get screwed.**
+
 ###ADB via USB###
 **NOTE: The USB gadget support in the kernel is not available, so information here can be misleading. You cannot debug via USB at the moment.**
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alvin Wong</dc:creator><pubDate>Sun, 15 Jan 2012 16:32:31 -0000</pubDate><guid>https://sourceforge.net9856de51d40c68633dc4a8ec2c0cf9ede0526253</guid></item><item><title>WikiPage Debugging modified by Alvin Wong</title><link>https://sourceforge.net/p/ipaq214android/wiki/Debugging/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -2,7 +2,7 @@
 ##Debug using ADB (Android Debug Bridge)##
 ADB is a very convenient debugging method. It can be used to transfer files between the device and the computer, run commands as root and view system logs (dmesg/logcat).
 
-ADB is included in the Android SDK, or built when building from Android source code (together with the root filesystem).
+ADB is included in the Android SDK, or built when building from Android source code (together with the root filesystem). If you just built from Android source code, you'll get ADB at `&lt;root&gt;/out/host/linux-x86/bin/adb`, that is `$ANDROID_HOST_OUT/bin/adb`. It is also set to `$PATH` when built so you can just type `adb` to get it started.
 
 A detail of the commands can be seen here: http://developer.android.com/guide/developing/tools/adb.html
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alvin Wong</dc:creator><pubDate>Sun, 15 Jan 2012 16:30:44 -0000</pubDate><guid>https://sourceforge.net3eba339be937e6072ff950830368ace869266ed7</guid></item><item><title>WikiPage Debugging modified by Alvin Wong</title><link>https://sourceforge.net/p/ipaq214android/wiki/Debugging/</link><description>#Debugging#
##Debug using ADB (Android Debug Bridge)##
ADB is a very convenient debugging method. It can be used to transfer files between the device and the computer, run commands as root and view system logs (dmesg/logcat).

ADB is included in the Android SDK, or built when building from Android source code (together with the root filesystem).

A detail of the commands can be seen here: http://developer.android.com/guide/developing/tools/adb.html

###ADB via WiFi###
Add `setprop adb.tcp.port 5555` to `init.rc`. This will make ADB listen to port 5555.

Switch on WiFi and connect to your AP. Get the IP by pressing the AP. Sit on your computer and execute `adb connect &lt;ip&gt;` and you should be connected to your device already.

###ADB via USB###
**NOTE: The USB gadget support in the kernel is not available, so information here can be misleading. You cannot debug via USB at the moment.**

Plug your device to the computer.

##Debug by saving a log file (logcat)##
In `init.ipaq214.rc`, you can see a few lines commented. remove them to enable logging. The log file is saved as `logcat.log`. You need to modify the permission before opening it the first time, or you can create the file before first boot. It's very likely that logcat is run as root, so you don't need to care about it so much.

##Debug in the Terminal Emulator##
What you can do is to execute `dmesg`. You can save it to a file by `dmesg&gt;foo.bar`, given that you've created the file `foo.bar` already with write permission for anyone.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alvin Wong</dc:creator><pubDate>Fri, 13 Jan 2012 13:07:27 -0000</pubDate><guid>https://sourceforge.nete42b7c36eabef620134281b8235f8abfe9e0dae4</guid></item></channel></rss>