<?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>mastix media contents - the official website &#187; emulator</title>
	<atom:link href="http://www.mastixmc.de/tag/emulator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mastixmc.de</link>
	<description></description>
	<lastBuildDate>Fri, 25 Jun 2010 13:25:08 +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 install a &#8220;real&#8221; firmware on your emulator (incl. Android Market)</title>
		<link>http://www.mastixmc.de/2009/12/02/how-to-install-a-real-firmware-on-your-emulator-incl-android-market/</link>
		<comments>http://www.mastixmc.de/2009/12/02/how-to-install-a-real-firmware-on-your-emulator-incl-android-market/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 18:50:37 +0000</pubDate>
		<dc:creator>mastix mc</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cell phones]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[android market]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[google voice]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[RecognizerIntent]]></category>
		<category><![CDATA[smartphones]]></category>
		<category><![CDATA[speech recogniton]]></category>
		<category><![CDATA[system.img]]></category>

		<guid isPermaLink="false">http://www.mastixmc.de/?p=211</guid>
		<description><![CDATA[Yesterday, I&#8217;ve tried to find a way to install a firmware with closed source apps on my Android 1.6 emulator. And let me explain why I did it and of course how. I wanted to have a look at the Android Speech Recognizer API (RecognizerIntent) and was really impressed by the fact that there are [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_230" class="wp-caption alignleft" style="width: 160px"><a class="thickbox" href="http://www.mastixmc.de/wp-content/uploads/2009/12/Screen-shot-2009-12-02-at-7.44.00-PM.png"><img class="size-thumbnail wp-image-230 " title="Screen shot 2009-12-02 at 7.44.00 PM" src="http://www.mastixmc.de/wp-content/uploads/2009/12/Screen-shot-2009-12-02-at-7.44.00-PM-150x100.png" alt="Android Market on the Emulator" width="150" height="100" /></a><p class="wp-caption-text">Android Market on the Emulator</p></div>
<p>Yesterday, I&#8217;ve tried to find a way to install a firmware with closed source apps on my Android 1.6 emulator. And let me explain why I did it and of course how.</p>
<p>I wanted to have a look at the Android Speech Recognizer API (<a href="http://developer.android.com/reference/android/speech/RecognizerIntent.html" target="_blank">RecognizerIntent</a>) and was really impressed by the fact that there are only a few lines of code needed to use this feature. But after some digging, I found out that you would need an application on your device to take care of the speech analysis. Only with this app, you&#8217;ll be able to use this feature &#8211; and yes &#8211; there&#8217;s no app packaged with the emulator to provide that. The only application I knew was Google Voice&#8230; but: Google Voice is closed source and therefore not installed on the emulator. I had to find a way to get it somehow&#8230; Android Market? No, closed source -&gt; not available.</p>
<p>So I made up my mind and remembered that someone told me once that the firmware images on the phone and on the emulator are pretty much the same. I&#8217;ve checked the AVD (Emulator = AVD = Android Virtual Device) folder to see how it stores its files&#8230; and yes, there were *.img files.  If you don&#8217;t have such a directory, you need to create an Android 1.6 AVD first (you can use <a href="http://developer.android.com/guide/developing/eclipse-adt.html#CreatingAnAvd" target="_blank">eclipse</a> or <a href="http://developer.android.com/guide/developing/tools/avd.html#creating" target="_blank">command line</a>) &#8211; I&#8217;ve created an AVD with a 1024MB sized SDCard.</p>
<p>You will find this directory in your home folder (e.g. on Linux/Mac):</p>
<p><code>~/.android/avd/MastiX_Donut.avd/</code></p>
<p>On <a href="http://developer.htc.com/adp.html" target="_blank">HTC&#8217;s developer website</a> they offer the Android Dev Phone Firmware (ADP1) to download&#8230; So I&#8217;ve downloaded the following file:</p>
<p><code>signed-dream_devphone_userdebug-img-14721.zip</code></p>
<p>I&#8217;ve tried the <a href="http://developer.htc.com/google-io-device.html" target="_blank">ION firmware</a> (signed-google_ion-img-14721.zip) as well, but I was not able to get an internet connection. <em>Link seems not work with Firefox (Ubuntu) and Chrome (Mac). But I can download it successfully using Safari 4 on my Macbook. Please try this. The problem is that you have to accept a license agreement, which is why I don&#8217;t want to/can&#8217;t provide that file. Maybe you need to install Safari 4 to download the files&#8230; could someone tell me if it worked with Safari 4 on Windows?</em></p>
<p><em>Edit: I&#8217;ve found a link that should work &#8211; BUT PLEASE READ THE LICENSE AGREEMENT ON HTC&#8217;s DEVELOPER SITE BEFORE DOWNLOADING THIS FILE.</em></p>
<pre><a href="http://dl.dropbox.com/u/1676562/signed-dream_devphone_userdebug-img-14721.zip">http://dl.dropbox.com/u/1676562/signed-dream_devphone_userdebug-img-14721.zip</a></pre>
<div id="attachment_232" class="wp-caption alignright" style="width: 160px"><a class="thickbox" href="http://www.mastixmc.de/wp-content/uploads/2009/12/Screen-shot-2009-12-02-at-7.47.52-PM.png"><img class="size-thumbnail wp-image-232 " title="Screen shot 2009-12-02 at 7.47.52 PM" src="http://www.mastixmc.de/wp-content/uploads/2009/12/Screen-shot-2009-12-02-at-7.47.52-PM-150x99.png" alt="Also Gmail, Google Talk, etc. are available" width="150" height="99" /></a><p class="wp-caption-text">Also Gmail, Google Talk, etc. are available</p></div>
<p>Ok, let&#8217;s continue&#8230; After extracting the downloaded file I was able to see that there&#8217;s a system.img file in there. This system.img did not exist in my current AVD folder, but I could see that it existed in the SDK folder:</p>
<p><code>./Development/android-sdk-linux_x86-1.6_r1/platforms/android-1.6/images/system.img</code></p>
<p>Fortunately the AVD itself supersedes this AVD-wide SDK setting as soon as it includes its own system.img file. The trick is to just copy the system.img file into the MastiX_Donut.avd folder. After that I&#8217;ve (of course) tried to run the emulator with the new firmware, but unfortunately it failed with the following exception:</p>
<p><code>emulator: ERROR: system image file too large for device's hardware configuration (78MB &gt; 72MB)</code></p>
<p>This error is pretty easy to fix, you just need to put the following line into the AVD config file  (.android/avd/MastiX_Donut.avd/config.ini):</p>
<p><code>disk.systemPartition.size=96MB</code></p>
<p>That&#8217;s it! I&#8217;ve started the emulator and after a quick boot sequence it forced me to enter my Google account credentials&#8230; (you need to switch to landscape mode to enter them &#8211; on a Macbook it would be Fn + Ctrl + F12!).</p>
<p>Now I was able to download Google Voice from the market and tested the speech stuff without any problems. <img src='http://www.mastixmc.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It also synced my Google contacts to my emulator. Of course, I deleted the firmware after my test phase and returned to the standard emulator ROM!</p>
<p>Happy emulating,</p>
<p>Sascha</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.mastixmc.de/2009/12/02/how-to-install-a-real-firmware-on-your-emulator-incl-android-market/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mastixmc.de/2009/12/02/how-to-install-a-real-firmware-on-your-emulator-incl-android-market/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
