<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Droid Hacks &#187; debugging</title>
	<atom:link href="http://droidhacks.com/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://droidhacks.com</link>
	<description>Tips and Tricks for Android Users</description>
	<lastBuildDate>Fri, 27 Aug 2010 18:44:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>On Device Packet Capture</title>
		<link>http://droidhacks.com/2010/08/on-device-packet-capture/</link>
		<comments>http://droidhacks.com/2010/08/on-device-packet-capture/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 15:36:55 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=153</guid>
		<description><![CDATA[When I need to capture network traffic from my device I normally capture traffic at a router to see what&#8217;s going on. I had seen some mentions of running tcpdump on device and pulling off the pcap file to a desktop to inspect, but Androshark was what people mentioned the most. And it didn&#8217;t seem]]></description>
			<content:encoded><![CDATA[<p>When I need to capture network traffic from my device I normally <a href="http://droidhacks.com/2009/06/monitoring-network-traffic-using-os-x/">capture traffic at a router</a> to see what&#8217;s going on. I had seen some mentions of running tcpdump on device and pulling off the pcap file to a desktop to inspect, but Androshark was what people mentioned the most. And it didn&#8217;t seem to be actively developed any more. I ran across <a href="http://forum.xda-developers.com/showthread.php?t=725692">Shark for Root and Sharkreader</a> recently however. It&#8217;s an app for packet capture and a simple packet capture viewer directly on the device. Works out pretty well. Requires root access, and it seems to be working quite well on my Nexus One with CM6. Screenshots below.</p>
<p>Start/stop capture, writes to the sdcard by default:</p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://droidhacks.com/wp-content/uploads/2010/08/wpid-screenshot_12.png" width="240" height="400"/></p>
<p>View packet dump stream:</p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://droidhacks.com/wp-content/uploads/2010/08/wpid-screenshot_14.png" width="240" height="400"/></p>
<p>View contents of an individual packet:</p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://droidhacks.com/wp-content/uploads/2010/08/wpid-screenshot_15.png" width="240" height="400"/></p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2010/08/on-device-packet-capture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assember/Disassembler for Dalvik</title>
		<link>http://droidhacks.com/2010/07/assemberdisassembler-for-dalvik/</link>
		<comments>http://droidhacks.com/2010/07/assemberdisassembler-for-dalvik/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 17:04:49 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=150</guid>
		<description><![CDATA[I ran across a mention of an assember/disassember pair for Dalvik in an XDA Forum posting. Just had a chance to give at least the assembler a try and make sure I could get things working before I posted. Yep, working on the emulator at least. There are a few examples you can start with,]]></description>
			<content:encoded><![CDATA[<p>I ran across a mention of an <a href="http://code.google.com/p/smali/">assember/disassember pair for Dalvik</a> in an XDA Forum posting. Just had a chance to give at least the assembler a try and make sure I could get things working before I posted. Yep, working on the emulator at least. There are a few <a href="http://code.google.com/p/smali/source/browse/trunk/examples/">examples you can start with</a>, instructions for assembling and running are in the comments. And some <a href="http://code.google.com/p/smali/w/list">pages in the wiki</a> that look like they&#8217;ll provide some great starting points.</p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2010/07/assemberdisassembler-for-dalvik/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text to Speech Using Scripting</title>
		<link>http://droidhacks.com/2010/07/text-to-speech-using-scripting/</link>
		<comments>http://droidhacks.com/2010/07/text-to-speech-using-scripting/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 23:26:41 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=147</guid>
		<description><![CDATA[I&#8217;ve been fooling around with Scripting Layer for Android to generate some speech notifications. Two issues I ran into, figured I would share if anyone else does. The first was that the examples still use the droid.speak() call, and it should be droid.ttsSpeak() instead. Quick fix. The second however I only saw on my CM6]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fooling around with <a href="http://code.google.com/p/android-scripting/">Scripting Layer for Android</a> to generate some speech notifications. Two issues I ran into, figured I would share if anyone else does. The first was that the examples still use the droid.speak() call, and it should be droid.ttsSpeak() instead. Quick fix. The second however I only saw on my CM6 device, which was that no speech was coming out ever after I updated the ttsSpeak() call. logcat turned up the issue quickly enough though. I just needed to go into settings from the home screen and download the data necessary to generate speech. Once you&#8217;re in the &#8220;Voice Input and Output&#8221; area the process is obvious. It&#8217;s just knowing that you need to go into settings to get speech working that&#8217;s a bit tricky.</p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2010/07/text-to-speech-using-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring Network Traffic Using OS X</title>
		<link>http://droidhacks.com/2009/06/monitoring-network-traffic-using-os-x/</link>
		<comments>http://droidhacks.com/2009/06/monitoring-network-traffic-using-os-x/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 23:19:31 +0000</pubDate>
		<dc:creator>Lead Hacker</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://droidhacks.com/?p=45</guid>
		<description><![CDATA[Here&#8217;s a tip for monitoring network traffic from your Android phone using OS X. The same thing works for iPhone (or any other mobile device you can configure to use a wifi connection). I frequently use it to see how some bit of client/server interaction is done. Install Wireshark Follow the instructions in the readme]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tip for monitoring network traffic from your Android phone using OS X. The same thing works for iPhone (or any other mobile device you can configure to use a wifi connection). I frequently use it to see how some bit of client/server interaction is done.</p>
<ul>
<li>Install <a href="http://www.wireshark.org/">Wireshark</a></li>
<li>Follow the instructions in the readme to also install the ChmodBPF script</li>
<li>Under Sharing area of the OS X settings app configure your system to use an ethernet connection and share it out to wifi clients</li>
<li>Now configure your device to connect to the wifi network provided by your system, test to make sure it works</li>
<li>Startup Wireshark and set it to capture traffic (wifi is en1 on MacBook Pro systems, what I normally use)</li>
</ul>
<p>And that&#8217;s it, you should now get quite readable dumps of what applications are doing to communicate. Lots of interesting things you can learn digging into how folks structure their client/server interaction.</p>
]]></content:encoded>
			<wfw:commentRss>http://droidhacks.com/2009/06/monitoring-network-traffic-using-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
