<?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>oh god, why'd it break‽ &#187; android</title>
	<atom:link href="http://yokohead.com/tag/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://yokohead.com</link>
	<description>screwing around with technology</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to root Android G1 with Cupcake and AppstoSD</title>
		<link>http://yokohead.com/2009/06/how-to-root-android-g1-with-cupcake-and-appstosd/</link>
		<comments>http://yokohead.com/2009/06/how-to-root-android-g1-with-cupcake-and-appstosd/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 22:05:12 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[appstosd]]></category>
		<category><![CDATA[cupcake]]></category>
		<category><![CDATA[g1]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=257</guid>
		<description><![CDATA[[Update] &#8211; Fixed the DREAIMG.nbh link,  it should now work fine &#8211; tested it this time.  Thanks @Doshin!
This is the instructions that ended up working flawlessly to root my G1, install JesusFreke&#8217;s 1.51 T-Mobile US ROM,  and setup AppstoSD.  I must&#8217;ve wiped my phone about a half-dozen times and spent ridiculous amounts of time trying [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-small;"><em>[Update] &#8211; Fixed the DREAIMG.nbh link,  it should now work fine &#8211; tested it this time.  Thanks @<a href="http://www.twitter.com/doshin">Doshin</a>!</em></span></p>
<p>This is the instructions that ended up working flawlessly to root my G1, install JesusFreke&#8217;s 1.51 T-Mobile US ROM,  and setup AppstoSD.  I must&#8217;ve wiped my phone about a half-dozen times and spent ridiculous amounts of time trying to make this work the way it was supposed to.  (By the way,  thank you Krista,  for convincing me to get a G1 over a Blackberry Bold.  I love this phone.)</p>
<p><a href="http://www.androidandme.com/2009/05/guides/beginners-guide-for-rooting-your-android-g1-to-install-cupcake/">Androidandme</a> has a great guide to root your phone which I&#8217;ve condensed here &#8211; and stripped out everything that didn&#8217;t work for me.</p>
<p>First backed up all of my data using <a href="http://www.cyrket.com/package/com.rerware.android.MyBackupPro">MyBackup Pro</a> ($4.99 in Market) and saved it to my SD card.</p>
<p>Hooked the phone up to my system and mounted,  then copied over all my pictures,  videos,  and backups.</p>
<ul>
<li>Click the notification on your phone that says “USB Connected”.  Select the “Mount” option.</li>
</ul>
<p>Formatted the entire SD card using FAT32 (do not use Quick Format).</p>
<ul>
<li>Right click <strong>Removable Disk</strong> and select <strong>Format</strong>.</li>
<li>Select <strong>FAT32</strong> for the file system,  then click <strong>Start</strong></li>
</ul>
<p>Once the disk is done formatting,  download DREAIMG.nbh.  You can do this with the root application below,  but this always downloaded corrupted over 3G &amp; Edge (I did both, several times) and wasted a bunch of time.  I&#8217;ve uploaded a copy of RC29 DREAIMG.nbh to my <a href="https://www.getdropbox.com/referrals/NTQ2MTM4MDk">Dropbox</a> account.</p>
<ul>
<li>DREAIMG.nbh <a href="http://bit.ly/wfAOO">http://bit.ly/wfAOO</a> (<em>90mb</em>)</li>
<li>Copy DREAIMG.nbh onto the SD card root (don&#8217;t put it into a folder) through the USB mount.</li>
<li>After the copy finishes, right click <strong>Removable Disk</strong> and choose <strong>Eject</strong>. </li>
<li>Disconnect the USB cable from your phone.</li>
</ul>
<hr />
<p>Now we&#8217;re going to wipe the phone entirely (make sure you&#8217;ve used <a href="http://www.cyrket.com/package/com.rerware.android.MyBackupPro">MyBackup Pro</a>,  or <a href="http://forum.xda-developers.com/showthread.php?t=459830 ">Nandroid</a> before doing this,  seriously) and install RC29 with the exploitable root hole.</p>
<ul>
<li>Power off your phone by holding the red &#8216;end talk&#8217; button (Power) down, and choosing <strong>Power Off</strong></li>
<li>Hold the <strong>Camera</strong> button down,  and power the phone back with the <strong>Power</strong> button</li>
<li>Once the bootloader fully loads,  press the <strong>Power</strong> button to start update</li>
<li>When completed press the trackball (<strong>Action Key</strong>) to continue</li>
<li>Reboot the phone by pressing <strong>Talk, Menu, Power</strong> at the same time</li>
<li>Go through the steps to setup a fresh install of Android</li>
</ul>
<p>Now download the root script here from the Android browser: <a href="http://bit.ly/L9ast">http://bit.ly/L9ast</a> <span style="font-size: xx-small;">(Leads to: <a href="http://www.androidactivity.com/root/root.apk" target="_blank">http://www.androidactivity.com/root/root.apk</a>)</span></p>
<p>Tap on the <em>root.apk </em>in your browser download list,  it will notify you that this program needs to be allowed because it is a non-Market application.  Click the provided <strong>Settings</strong> button and allow non-Market apps.  Hit the back button,  then tap the <em>root.apk</em> download to install.</p>
<p>Now there are two ways to do this,  both worked for me,  but I&#8217;m paranoid of downloading critical updates OTA at this point.</p>
<ul>
<li><strong>OTA:</strong> Run the <em>root.apk </em>in your apps list and tap <strong>Step2:  Download IMG and HardSPL files</strong> to get the recovery files.
<ul>
<li>or</li>
</ul>
</li>
<li><strong>Direct:</strong> Download the IMG and HardSPL files directly on your computer,  and copy onto the root of your SD card with a USB mount.
<ul>
<li>Recovery (2.7MB) [recovery.img] &#8211; <a href="http://bit.ly/K7FXI">http://bit.ly/K7FXI</a></li>
<li>HardSPL (177k) [update.zip] &#8211; <a href="http://bit.ly/qdm7P">http://bit.ly/qdm7P</a></li>
</ul>
</li>
</ul>
<p>Once the files are downloaded onto your SD card&#8217;s root perform these steps.</p>
<ul>
<li>Go to the home screen and open up your keyboard.</li>
<li>Hit enter, pause a second, then hit enter again.</li>
<li>Type <strong>telnetd</strong> in all lower case minus the quotes. Ignore the contact search that comes up.</li>
<li>Press enter again.</li>
</ul>
<p>Now run the <em>root.apk</em> application and tap <strong>Step3: Protect your root</strong>.  This will root your phone with the SPL upgrade.  Any errors means <strong>telnetd</strong> is not running,  so go back and do those steps again.  Now we need to reboot the phone again and run the update.zip on the SD card.</p>
<ul>
<li>Hold the <strong>Power</strong> button down and choose &#8220;Power Off&#8221;</li>
<li>Hold the <strong>Home</strong> button down and the <strong>Power</strong> button until the phone turns back on</li>
<li>When the yellow warning sign appears,  hit <strong>ALT+S</strong> on the keyboard</li>
<li>When finished reboot the phone by pressing <strong>Talk, Menu, Power</strong> at the same time</li>
</ul>
<hr />
<p>Last step before adding the custom build is updating the radio to support Android 1.5.</p>
<ul>
<li>Download the radio update (<em>9mb</em>) [update.zip] &#8211; <a href="http://bit.ly/102Ndj">http://bit.ly/102Ndj</a></li>
<li>Plug your phone into your computer and mount USB</li>
<li>Copy <em>update.zip</em> onto the root of the SD card (overwrite or remove previous files if still there)</li>
</ul>
<ul>
<li>Hold the <strong>Power</strong> button down and choose &#8220;Power Off&#8221;</li>
<li>Hold the <strong>Home</strong> button down and the <strong>Power</strong> button until the phone turns back on</li>
<li>When the yellow warning sign appears,  hit <strong>ALT+S</strong> on the keyboard</li>
<li>When finished reboot the phone by pressing <strong>Talk, Menu, Power</strong> at the same time</li>
</ul>
<hr />
<p>Time to update to a custom build of Android.  I went with <a href="http://jf.andblogs.net/">JesusFreke</a>&#8217;s 1.51 US build,  which has the T-Mobile apps built in.</p>
<ul>
<li>Download the JF 1.51 update (<em>36mb</em>) [JFv1.51_CRB43-US.zip] &#8211; <a href="http://jf.andblogs.net/wp-content/plugins/download-monitor/download.php?id=14">http://jf.andblogs.net/wp-content/plugins/download-monitor/download.php?id=14</a><a href="http://bit.ly/102Ndj"></a></li>
<li>Plug your phone into your computer and mount USB</li>
<li>Rename <em>JFv1.51_CRB43-US.zip </em>to <em>update.zip</em></li>
<li>Copy <em>update.zip</em> onto the root of the SD card (overwrite or remove previous files if still there)</li>
</ul>
<ul>
<li>Hold the <strong>Power</strong> button down and choose &#8220;Power Off&#8221;</li>
<li>Hold the <strong>Home</strong> button down and the <strong>Power</strong> button until the phone turns back on</li>
<li>When the yellow warning sign appears,  hit <strong>ALT+L </strong>to display loader</li>
<li>Press <strong>ALT+W </strong>to perform a factory wipe [Thanks to <a href="http://www.davidaltherr.net/">David</a> for pointing this out in the <a href="http://yokohead.com/2009/06/how-to-root-android-g1-with-cupcake-and-appstosd/#comment-110">comments</a>,  ran into the same issue on a friend's G1 and a wipe prior resolved.]</li>
<li>Once wipe finishes,  press <strong>ALT+S </strong>to load update.zip</li>
<li>When finished reboot the phone by pressing <strong>Talk, Menu, Power</strong> at the same time</li>
</ul>
<p>Alright.  Now you&#8217;re running a custom Android build.  Other builds are available as well,  here&#8217;s a few resources in case you&#8217;re curious (the steps are the same to install those instead).  <a href="http://haykuro.theiphoneproject.org/">Haykuro</a> &amp; <a href="http://forum.xda-developers.com/showthread.php?t=507151">The Dude</a> both have their own builds,  and you can download different JF versions at his blog.</p>
<hr />
<p>Before doing anything else I highly suggest running configuring your Apps and Cache to run off of your SD card &#8211; the whole reason I went through all of the nonsense above is because I screwed my installation up trying to do this after I already had my phone pretty loaded with stuff.  Without AppstoSD eventually your G1 will run like absolute crap as the memory dwindles down and it can be pretty frustrating.</p>
<ul>
<li>Format your SD card one more time to FAT32 just to be safe</li>
<li>Download this zip containing <em>a2sd.sh</em> and <em>init.rc</em> &#8211; (<em>1k</em>) [a2sd.zip] &#8211; <a href="http://bit.ly/3QXx1">http://bit.ly/3QXx1</a></li>
<li>Unpack <em>a2sd.zip</em> to your SD card&#8217;s root</li>
<li>Start the <strong>Terminal Emulator </strong>and type:
<ul>
<li><code>su</code></li>
<li><code>cp /sdcard/init.rc /data/</code></li>
<li><code>cp /sdcard/a2sd.sh /data/</code></li>
</ul>
</li>
<li>Reboot your phone</li>
</ul>
<p>Now install the AppstoSD2 application created by <a href="http://forum.xda-developers.com/member.php?u=510170">MarcusMaximus</a></p>
<ul>
<li>Go here in the Android browser to install &#8211; (<em>68k)</em> [AppstoSD2.apk] -<a href="http://bit.ly/18jVr7"> http://bit.ly/18jVr7</a></li>
<li>Choose the amount you want to partition your card,  I did around 500-600MB,  doubt you&#8217;ll need even that much.  Whatever you do,  don&#8217;t go past 1.5GB.
<ul>
<li>It might take a minute &#8211; do <em>not </em>restart/power off your phone,  just wait.  It&#8217;ll eventually reboot on it&#8217;s own. <span style="font-size: x-small;"><em>[Update: I've been told that it might not reboot automatically and the app will give a 'reboot now' button instead,  I haven't seen this myself,  drop me a line in the comments or on <a href="http://www.twitter.com/yokohead">twitter</a> if it does!]</em></span></li>
</ul>
</li>
</ul>
<ul>
<li>After the reboot run <em>AppstoSD2</em> and press <strong>Copy Apps to SD</strong></li>
</ul>
<ul>
<li>Start the <strong>Terminal Emulator </strong>and type:
<ul>
<li><code>su</code></li>
<li><code>mkdir /system/sd/app-private</code></li>
<li><code>mkdir /system/sd/dalvik-cache</code></li>
</ul>
</li>
<li>Reboot one last time</li>
</ul>
<p>You&#8217;re done!  If you check the <strong>Settings</strong> it should say that you have however much space you made your Ext2 partition as available system memory &#8211; and your phone should never lag.</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/06/how-to-root-android-g1-with-cupcake-and-appstosd/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
