<?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>JesusFreke&#039;s AndBlog &#187; smali baksmali</title>
	<atom:link href="http://jf.andblogs.net/tag/smali-baksmali/feed/" rel="self" type="application/rss+xml" />
	<link>http://jf.andblogs.net</link>
	<description></description>
	<lastBuildDate>Sun, 13 Jun 2010 21:14:28 +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>It&#8217;s alive!</title>
		<link>http://jf.andblogs.net/2009/06/23/its-alive/</link>
		<comments>http://jf.andblogs.net/2009/06/23/its-alive/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:09:16 +0000</pubDate>
		<dc:creator>jf</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[smali baksmali]]></category>

		<guid isPermaLink="false">http://jf.andblogs.net/?p=134</guid>
		<description><![CDATA[Alive I tell you, Alive! baksmali lives! baksmali is the companion disassembler to smali, the dex assembler that I released recently. I&#8217;ve released a new version of smali as well, with a number of improvements/fixes. This is the v0.91 release of both tools. As you might imagine, baksmali is able to disassemble a dex file [...]]]></description>
			<content:encoded><![CDATA[<p>Alive I tell you, Alive! <a href="http://code.google.com/p/smali/downloads/list">baksmali</a> lives!</p>
<p><span id="more-134"></span>baksmali is the companion disassembler to smali, the dex assembler that I <a href="http://jf.andblogs.net/2009/06/07/smali-v09/">released recently</a>. I&#8217;ve released a new version of smali as well, with a number of improvements/fixes. This is the v0.91 release of both tools.</p>
<p>As you might imagine, baksmali is able to disassemble a dex file into a set of text files, one for each class, containing the methods, field, annotations, debug info and dalvik bytecode for that class.</p>
<p>And then smali can munch on those text files and assemble them into shiny new classes.dex file, which you can repackage back into an apk/jar/zip file and throw on your android-based phone.</p>
<p>And most importantly, you can make magic happen when you make changes between the 2 steps.</p>
<p>Both tools are released as executable jar files. You can invoke them and get the usage information with</p>
<p><code>java -jar smali-0.91.jar<br />
java -jar baksmali-0.91.jar</code></p>
<p>Unfortunately, the current incarnation of the tools are somewhat porcine. If you try to assemble/disassemble a large dex file and get an out-of-memory type error, try running with -Xmx512m, which increases the max java heap size to 512MB</p>
<p><code>java -Xmx512m -jar smali-0.91.jar [options]<br />
java -Xmx512m -jar baksmali-0.91.jar [options]<br />
</code></p>
<p>The main project page for smali/baksmali is <a href="http://smali.googlecode.com">http://smali.googlecode.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jf.andblogs.net/2009/06/23/its-alive/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
