<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: smali/baksmali v1.0</title>
	<atom:link href="http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 21:31:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: anthony</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18930</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Tue, 12 Jan 2010 23:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18930</guid>
		<description>Hi JF, thanks in advance for any help that you give me. I de-odexed my services.odex file on my CLIQ and the program put everything in the out directory. (I am trying to change the color on my notification bar.) I edited my files and am ready to rebuild. Everything that I have read about rebuilding the services.odex file goes something like this...

java -jar baksmali.jar -o  &lt; .dex file

Now here is where I get confused. Is a .odex file the same as a .dex file? Or do I have to perform another step for an .odex file?

Thank You</description>
		<content:encoded><![CDATA[<p>Hi JF, thanks in advance for any help that you give me. I de-odexed my services.odex file on my CLIQ and the program put everything in the out directory. (I am trying to change the color on my notification bar.) I edited my files and am ready to rebuild. Everything that I have read about rebuilding the services.odex file goes something like this&#8230;</p>
<p>java -jar baksmali.jar -o  &lt; .dex file</p>
<p>Now here is where I get confused. Is a .odex file the same as a .dex file? Or do I have to perform another step for an .odex file?</p>
<p>Thank You</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by Wysie_Soh</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18254</link>
		<dc:creator>Twitted by Wysie_Soh</dc:creator>
		<pubDate>Mon, 14 Dec 2009 13:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18254</guid>
		<description>[...] This post was Twitted by Wysie_Soh [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by Wysie_Soh [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jf</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18238</link>
		<dc:creator>jf</dc:creator>
		<pubDate>Mon, 14 Dec 2009 01:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18238</guid>
		<description>Yeah, you can definitely deodex everything in any order you want, as long as you don&#039;t replace any jars/apks on the phone until after you&#039;ve deodexed everything. I&#039;m 100% certain about that. Don&#039;t believe anyone who says otherwise ;)</description>
		<content:encoded><![CDATA[<p>Yeah, you can definitely deodex everything in any order you want, as long as you don&#8217;t replace any jars/apks on the phone until after you&#8217;ve deodexed everything. I&#8217;m 100% certain about that. Don&#8217;t believe anyone who says otherwise <img src='http://jf.andblogs.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jubeh</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18229</link>
		<dc:creator>Jubeh</dc:creator>
		<pubDate>Sun, 13 Dec 2009 20:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18229</guid>
		<description>I see how that makes sense. I was with the logic where, if you create odexes for a build, you first have to follow the boot classpath and then do all the rest because there are dependencies generated (in some way, I don&#039;t understand fully how) based not only on the dalvik machine and memory configuration but also the running framework, so if you dexopt-wrapper the apps, then the secondary framework, then the core framework, there will be a lot of broken dependencies since the information written to the original apps odexe&#039;s were dependent on the original configuration of the classes for the framework (non-odexed) and when you odex the framework after that, it breaks all that. Again, I&#039;m not entirely sure why that is, but that&#039;s what seems to be happening.

  Anyway, I thought this was the same situation, but thinking about it, it makes sense that those dependencies are stripped when you de-odex, and as long as you don&#039;t change anything in the current build from which you&#039;re running deodexerant, the applet should be able to determine those dependencies, memory configurations, etc and strip those to leave you with the kind of &quot;universal&quot; dex code we all know and love.

   I hope I&#039;m on the right track.</description>
		<content:encoded><![CDATA[<p>I see how that makes sense. I was with the logic where, if you create odexes for a build, you first have to follow the boot classpath and then do all the rest because there are dependencies generated (in some way, I don&#8217;t understand fully how) based not only on the dalvik machine and memory configuration but also the running framework, so if you dexopt-wrapper the apps, then the secondary framework, then the core framework, there will be a lot of broken dependencies since the information written to the original apps odexe&#8217;s were dependent on the original configuration of the classes for the framework (non-odexed) and when you odex the framework after that, it breaks all that. Again, I&#8217;m not entirely sure why that is, but that&#8217;s what seems to be happening.</p>
<p>  Anyway, I thought this was the same situation, but thinking about it, it makes sense that those dependencies are stripped when you de-odex, and as long as you don&#8217;t change anything in the current build from which you&#8217;re running deodexerant, the applet should be able to determine those dependencies, memory configurations, etc and strip those to leave you with the kind of &#8220;universal&#8221; dex code we all know and love.</p>
<p>   I hope I&#8217;m on the right track.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jf</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18220</link>
		<dc:creator>jf</dc:creator>
		<pubDate>Sun, 13 Dec 2009 02:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18220</guid>
		<description>The only reason you would need to deodex stuff in any particular order is if you deodex one file, and then resmali it and put it back on the phone, and then deodex the next file, etc. But if you just deodex everything before replacing any files on the phone, you don&#039;t have to deodex them in any particular order. Much easier :D

As for the services.odex issue, I&#039;m aware of it, and working on a fix. In the meantime, just replace the goto/16 or goto instructions that it complains about with a goto/32 instruction instead.</description>
		<content:encoded><![CDATA[<p>The only reason you would need to deodex stuff in any particular order is if you deodex one file, and then resmali it and put it back on the phone, and then deodex the next file, etc. But if you just deodex everything before replacing any files on the phone, you don&#8217;t have to deodex them in any particular order. Much easier <img src='http://jf.andblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>As for the services.odex issue, I&#8217;m aware of it, and working on a fix. In the meantime, just replace the goto/16 or goto instructions that it complains about with a goto/32 instruction instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jubeh</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18215</link>
		<dc:creator>Jubeh</dc:creator>
		<pubDate>Sat, 12 Dec 2009 23:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18215</guid>
		<description>I&#039;m also at the same point as you, though. services deodexes just fine, but then trying to smali it back will fail.
I know now my approach is correct and I should be able to de-odex the core framework by doing it in the reverse order of which it dexopts for the first time, but services.jar happens to be the very last jar to be de-odexed and while the others will de-odex fine (except etc.jar, it will throw a bunch of errors and won&#039;t baksmali completely), even if I try to boot with core, framework, and android.policy de-odexed, services and ext will fail verification (ofcourse) and the system will just hang at a boot loop.
I&#039;m mentioning it because I&#039;m very sure the problem is with smali/baksmali.
My test rom is the adp1 ota image for 1.6. What? you say, that build doesn&#039;t have any odexes, does it?.
Well, no, it doesn&#039;t, but I ran dexopt-wrapper all over it and then baksmali-ed it all back to classes.dex for fun (yeah, i was that bored, research actually). So to replicate, just download the image from developer.htc.com (oh, they&#039;re down) and dexopt-wrapper it and then try to deodexerant it back.
I have to ask, JF, which build are YOU using. I&#039;d like to test compiling the framework on that.</description>
		<content:encoded><![CDATA[<p>I&#8217;m also at the same point as you, though. services deodexes just fine, but then trying to smali it back will fail.<br />
I know now my approach is correct and I should be able to de-odex the core framework by doing it in the reverse order of which it dexopts for the first time, but services.jar happens to be the very last jar to be de-odexed and while the others will de-odex fine (except etc.jar, it will throw a bunch of errors and won&#8217;t baksmali completely), even if I try to boot with core, framework, and android.policy de-odexed, services and ext will fail verification (ofcourse) and the system will just hang at a boot loop.<br />
I&#8217;m mentioning it because I&#8217;m very sure the problem is with smali/baksmali.<br />
My test rom is the adp1 ota image for 1.6. What? you say, that build doesn&#8217;t have any odexes, does it?.<br />
Well, no, it doesn&#8217;t, but I ran dexopt-wrapper all over it and then baksmali-ed it all back to classes.dex for fun (yeah, i was that bored, research actually). So to replicate, just download the image from developer.htc.com (oh, they&#8217;re down) and dexopt-wrapper it and then try to deodexerant it back.<br />
I have to ask, JF, which build are YOU using. I&#8217;d like to test compiling the framework on that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wysie</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18192</link>
		<dc:creator>Wysie</dc:creator>
		<pubDate>Fri, 11 Dec 2009 03:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18192</guid>
		<description>Hi JF, jubeh@xda has posted some stuff regarding framework de-odexing here: http://forum.xda-developers.com/showpost.php?p=5121020&amp;postcount=14

Hope it helps :D.</description>
		<content:encoded><![CDATA[<p>Hi JF, jubeh@xda has posted some stuff regarding framework de-odexing here: <a href="http://forum.xda-developers.com/showpost.php?p=5121020&amp;postcount=14" rel="nofollow">http://forum.xda-developers.com/showpost.php?p=5121020&amp;postcount=14</a></p>
<p>Hope it helps <img src='http://jf.andblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wysie</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18110</link>
		<dc:creator>Wysie</dc:creator>
		<pubDate>Mon, 07 Dec 2009 03:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18110</guid>
		<description>by the way, is your email JesusFreke[at]JesusFreke.com? I can email you the odex files later :). thank you.</description>
		<content:encoded><![CDATA[<p>by the way, is your email JesusFreke[at]JesusFreke.com? I can email you the odex files later <img src='http://jf.andblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wysie</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18109</link>
		<dc:creator>Wysie</dc:creator>
		<pubDate>Mon, 07 Dec 2009 02:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18109</guid>
		<description>Hey jf, thanks for the reply! Nope, I did not modify the file at all, was simply trying to de-odex services.odex and framework.odex. Had trouble de-odexing framework.odex, and services.odex works but I can&#039;t compile it back using smali.

I&#039;m using it on Amon_RA&#039;s ROM here: http://forum.xda-developers.com/showthread.php?t=538645

Thanks JesusFreke! :)</description>
		<content:encoded><![CDATA[<p>Hey jf, thanks for the reply! Nope, I did not modify the file at all, was simply trying to de-odex services.odex and framework.odex. Had trouble de-odexing framework.odex, and services.odex works but I can&#8217;t compile it back using smali.</p>
<p>I&#8217;m using it on Amon_RA&#8217;s ROM here: <a href="http://forum.xda-developers.com/showthread.php?t=538645" rel="nofollow">http://forum.xda-developers.com/showthread.php?t=538645</a></p>
<p>Thanks JesusFreke! <img src='http://jf.andblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jf</title>
		<link>http://jf.andblogs.net/2009/11/08/smalibaksmali-v1-0/comment-page-1/#comment-18106</link>
		<dc:creator>jf</dc:creator>
		<pubDate>Sun, 06 Dec 2009 21:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://jf.andblogs.net/?p=158#comment-18106</guid>
		<description>Did you modify that smali file before re-assembling it? If so, it&#039;s possible you inserted some code between the goto/jump and its target, and made the target out of range.

BUT, if you didn&#039;t modify it at all, that&#039;s certainly very strange. If that&#039;s the case, what rom did you take the services.odex from? A dl link to the rom would be appreciated - or you could email the odex file to me.</description>
		<content:encoded><![CDATA[<p>Did you modify that smali file before re-assembling it? If so, it&#8217;s possible you inserted some code between the goto/jump and its target, and made the target out of range.</p>
<p>BUT, if you didn&#8217;t modify it at all, that&#8217;s certainly very strange. If that&#8217;s the case, what rom did you take the services.odex from? A dl link to the rom would be appreciated &#8211; or you could email the odex file to me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
