<?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>Just2us &#187; ROMs</title>
	<atom:link href="http://just2us.com/tag/roms/feed/" rel="self" type="application/rss+xml" />
	<link>http://just2us.com</link>
	<description>Its about us</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:03:22 +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>How to flash a Hero ROM onto ADP1 (dev phone)</title>
		<link>http://just2us.com/2009/11/how-to-flash-a-hero-rom-onto-adp1-dev-phone/</link>
		<comments>http://just2us.com/2009/11/how-to-flash-a-hero-rom-onto-adp1-dev-phone/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 16:43:10 +0000</pubDate>
		<dc:creator>samwize</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[ROMs]]></category>

		<guid isPermaLink="false">http://just2us.com/2009/11/how-to-flash-a-hero-rom-onto-adp1-dev-phone/</guid>
		<description><![CDATA[This post describes my experience in flashing a Hero ROM onto a ADP1 Google&#8217;s development phone, also known as a G1 or HTC Dream. &#160; I. Downgrading Android to RC29 Format sdcard to FAT Download DREAIMG-RC29 Unzip and copy DREAIMG.nbh to root of sdcard Power off Press and hold Camera + Power Update as per [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjust2us.com%2F2009%2F11%2Fhow-to-flash-a-hero-rom-onto-adp1-dev-phone%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjust2us.com%2F2009%2F11%2Fhow-to-flash-a-hero-rom-onto-adp1-dev-phone%2F&amp;source=samwize&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This post describes my experience in flashing a Hero ROM onto a ADP1 Google&#8217;s development phone, also known as a G1 or HTC Dream.</p>
<p>&nbsp;</p>
<h3>I. Downgrading Android to RC29</h3>
<ol>
<li>Format sdcard to FAT </li>
<li>Download <a href="http://android-roms.googlecode.com/files/DREAIMG-RC29.zip">DREAIMG-RC29</a></li>
<li>Unzip and copy DREAIMG.nbh to root of sdcard</li>
<li>Power off</li>
<li>Press and hold Camera + Power</li>
<li>Update as per instruction</li>
<li>Finish and reboot</li>
</ol>
<p>Your phone is now downgraded to G1 build RC29. Wondering why we are downgrading? This is because we need to exploit a security hole that is present in RC29. In RC30+, we can no longer exploit the security hole.</p>
<p>&nbsp;</p>
<h3>II. Replacing Recovery Image</h3>
<p>A recovery image allows us to load custom build of Android, and it is what that gives us root access to the device. </p>
<ol>
<li>Download <a href="http://n0rp.chemlab.org/android/cm-recovery-1.4.img" class="broken_link">Cyanogen&#8217;s version cm-recovery-1.4.img</a>&nbsp;</li>
<li>Copy cm-recovery-1.4.img to root of sdcard</li>
<li>Reboot</li>
<li>At home screen, press enter &gt; pause for a second &gt; press enter &gt; type &#8220;telnetd&#8221; (if it is doing a contact search, you are correct) &gt; press enter.</li>
<li>Go to Market, search for &#8220;telnet&#8221; and install</li>
<li>Launch telnet and connect</li>
<li>Enter the commands:</li>
<blockquote><p>mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system<br />cd /sdcard<br />flash_image recovery cm-recovery-1.4.img<br />cat cm-recovery-1.4.img &gt; /system/recovery.img</p>
</blockquote>
<li>Power off</li>
<li>Press and hold Home + Power</li>
<li>You should see a Cyanogen system recovery. If you encountered a problem going into the recovery mode, try downgrading to RC29 and repeat again.</li>
</ol>
<p>In later steps, we will be frequently rebooting the phone and goes into this recovery mode.</p>
<p>&nbsp;</p>
<h3>III. Upgrading Radio Image and SPL</h3>
<ol>
<li>Download <a title="http://sapphire-port-dream.googlecode.com/files/ota-radio-2_22_19_26I.zip" href="http://sapphire-port-dream.googlecode.com/files/ota-radio-2_22_19_26I.zip">ota-radio-2_22_19_26I.zip</a> and copy to root of sdcard</li>
<li>Download <a title="http://sapphire-port-dream.googlecode.com/files/spl-signed.zip" href="http://sapphire-port-dream.googlecode.com/files/spl-signed.zip">spl-signed.zip</a> and copy to root of sdcard</li>
<li>Reboot to recovery mode</li>
<li>Select apply any zip and select the ota-radio-2_22_19_26I.zip</li>
<li>When completed, reboot to recovery mode</li>
<li>Select apply any zip and select the spl-signed.zip</li>
</ol>
<p>Why are we doing this? </p>
<p>The radio image is the latest radio baseband version. We need the correct version to go with the correct Android build.</p>
<p>SPL is Second Program Loader, which is part of the device&#8217;s bootloader. It is responsible for bootstraping the device, and we are replacing it with a less restrictive one that allows us to apply flash images from any region.</p>
<p>&nbsp;</p>
<h3>IV. Partition SD Card</h3>
<ol>
<li>Download <a href="http://www.4shared.com/file/139646917/5695730f/sdparted.html">sdparted.txt</a> and copy to root of sdcard</li>
<li>Reboot to recovery</li>
<li>Select console mode (Alt-x)</li>
<li>Enter the commands:</li>
<blockquote><p><font face="mon">mount /sdcard<br />cp /sdcard/sdparted.txt /sbin/sdparted<br />chmod 755 /sbin/sdparted<br />sdparted -efs ext4 -ss 150M</font> </p>
</blockquote>
<li>Continue with execution of the script</li>
<li>Enter the command &#8220;reboot recovery&#8221;</li>
<li>Take out your sdcard</li>
</ol>
<p>Your sdcard is now correctly partitioned for installing bigger sized ROMs, such as Hero. As you will not be able to boot up your phone to access the sdcard now, you would need to copy the ROMs to the sdcard via a card reader.</p>
<p>&nbsp;</p>
<h3>V. Installing Custom ROMs</h3>
<p>The last part is pretty easy &#8211; update a desired custom ROM to the phone. The hardest in this last part would be selecting from the many available ROMs <img src='http://just2us.com/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Visit the <a href="http://db.androidspin.com/android_build_information.asp">Android ROM Build database</a> to download your desired ROMs. For example, I wanted to try HTC Hero on my ADP1/G1/Dream, I downloaded <a href="http://db.androidspin.com/androidspin_filedownload.asp?release=103&amp;type=1">KiNgxKxROM Sense Hybrid v2.2</a>.</p>
<ol>
<li>Copy the ROM to root of sdcard (via a cardreader)</li>
<li>Insert sdcard back to phone</li>
<li>Reboot to recovery</li>
<li>Select apply any zip and select the ROM</li>
<li>Reboot when done</li>
</ol>
<p>That&#8217;s it <img src='http://just2us.com/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="center"><img alt="hero sense UI" src="http://db.androidspin.com/buildphotos/103-9.jpg"> </p>
<p align="center">&nbsp;</p>
<p align="left">Related:</p>
<ul>
<li><a href="http://androidandme.com/2009/08/news/how-to-root-a-t-mobile-g1-and-mytouch-3g-android-phone/">How to root a T-Mobile G1</a></li>
<li><a href="http://code.google.com/p/android-roms/">Android ROMs</a></li>
<li><a href="http://db.androidspin.com/android_build_information.asp">AndroidSpin ROM database</a></li>
<li><a href="http://developer.htc.com/adp.html">HTC dev phone 1</a></li>
<li><a href="http://forum.xda-developers.com/forumdisplay.php?f=448">xda-developers</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://just2us.com/2009/11/how-to-flash-a-hero-rom-onto-adp1-dev-phone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
