<?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>Androidkit.com &#187; Installation</title>
	<atom:link href="http://www.androidkit.com/category/installation/feed" rel="self" type="application/rss+xml" />
	<link>http://www.androidkit.com</link>
	<description>Android Development Blog</description>
	<lastBuildDate>Mon, 08 Aug 2011 05:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Flashing Firmware Images to the ADP1 Device</title>
		<link>http://www.androidkit.com/flashing-firmware-images-to-the-adp1-device</link>
		<comments>http://www.androidkit.com/flashing-firmware-images-to-the-adp1-device#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:07:34 +0000</pubDate>
		<dc:creator>Shesh</dc:creator>
				<category><![CDATA[Installation]]></category>

		<guid isPermaLink="false">http://www.androidkit.com/?p=47</guid>
		<description><![CDATA[<p>This post serves to reduce the pain points of developers trying to Upgrade/Downgrade their G1 Firmware by following the HTC Android<strong> <a href="http://www.htc.com/www/support/android/adp.html" target="_blank">support site</a></strong> and various forums for bits and pieces of information and putting it together in one&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>This post serves to reduce the pain points of developers trying to Upgrade/Downgrade their G1 Firmware by following the HTC Android<strong> <a href="http://www.htc.com/www/support/android/adp.html" target="_blank">support site</a></strong> and various forums for bits and pieces of information and putting it together in one place. This post was modified on 30th April 09 to incorporate the 1.5 SDK.</p>
<p>I have added the solutions to the pain points after going through the upgrade process myself, from version 1.0 to 1.1 to 1.5 on an ADP1 device.</p>
<p>From the above HTC support link, download the actual Radio and System image binaries, as well as the fastboot executable, to help you flash the images to your device.</p>
<p>With the above files, you can:</p>
<ul>
<li> Keep your Dev Phone up to date with the latest Android system images</li>
<li> Test your application on multiple Android platform versions, to ensure compatibility</li>
<li> Restore a corrupted device to a factory state</li>
</ul>
<p>When flashing your device, make sure that you follow all of the instructions below, in the order that they are given.</p>
<p>Note that you can flash a system only to a supported device, as described in the following sections.</p>
<p><strong>Overview</strong></p>
<p>The sections below describe two alternative methods that you use to flash your device with a factory Android system image:</p>
<p>    * Flashing the device using an updated recovery image (recovery-image method)</p>
<p>      This approach involves using the adb tool, available in the Android SDK, to copy updated radio and recovery images to the device&#8217;s recovery partition on the SD card. It&#8217;s a straightforward operation that you can run in a Windows, OS X, or Linux environment. If you are an Android application developer, this method of flashing your device is recommended. Note that to use this method, the device must have the original factory bootloader that came with the device (hboot 0.95.3000).</p>
<p>    * Flashing the device using fastboot commands (fastboot method)</p>
<p>      This approach is slightly more complicated and involves using the adb tool to update the radio image and the fastboot tool to flash a system image to the device. Flashing your device in this way is useful if you need to install the radio and system images independently or you are already familiar with fastboot and are using it successfully in your environment. To use this method, your device must have a fastboot-compatible bootloader. Having the original factory bootloader included on ADP devices is not required.</p>
<p>Before you get started, decide which of these two methods is appropriate for you, then follow the instructions below, in the order given. The flashing process for both methods is similar ??the main difference is that the recovery-image method does not require the fastboot tool. Rather than using fastboot to flash a system image to the device, you use adb to copy an updated recovery image to the device. All other steps are the same.</p>
<p><strong>Supported Devices</strong></p>
<p>The system images provided on this page are designed only for installation on devices that meet the following requirements:</p>
<ul>
<li> HTC Dream hardware platform only</li>
<li> Device must include a development bootloader that supports fastboot</li>
</ul>
<p>You cannot flash these system images to other hardware platforms or to versions of HTC Dream hardware that don&#8217;t have a development bootloader that supports fastboot (fastboot is described in the next section). For example, the bootloader on T-Mobile G1 devices (and similar consumer devices) is not a development bootloader and does not support fastboot, so you cannot flash a new system image to those devices.</p>
<p><strong>Get the Tools</strong></p>
<p>To flash a system image to your device, you need a command-line tool called fastboot and the adb tool provided in the Android SDK.</p>
<p>The information of the executables that can be downloaded from the <a href="http://www.htc.com/www/support/android/adp.html" target="_blank"><strong>support site</strong></a> </p>
<p>On OS X and Linux, you can store the fastboot executable anywhere on your machine. On Windows, you must store the fastboot executable where it can find the AdbWinApi.dll file (included with the Android SDK), otherwise it will not work properly.</p>
<p><span style="color: #00FFBF;">The recommended place to store the fastboot executable on Windows is with the other tools in the Android SDK, in the &lt;sdk&gt;/tools directory. On all platforms, you may want to add the location to your PATH, for convenience.</span></p>
<p><span style="color: #00FFBF;">If your command line interface does not recognise fastboot,</span></p>
<p><span style="color: #00FFBF;">On Windows, where &lt;sdk&gt;/tools has been added to path, Click START-&gt;Run. Type ‘cmd’ and click ENTER, In the console type ‘cmd’ and then type ‘fastboot’ and press ENTER</span></p>
<p><span style="color: #00FFBF;">You cannot proceed with the upgrade of the System Image without fastboot, so the above steps are A MUST.</span></p>
<p>If you do not have the Android SDK installed on your local machine, download the latest version from this location and install it:</p>
<p><a title="http://developer.android.com/sdk/1.5_r1/index.html" href="http://developer.android.com/sdk/1.5_r1/index.html" target="_blank">http://developer.android.com/sdk/1.5_r1/index.html</a></p>
<p>Once you install the SDK, the adb tool will be available to you.</p>
<p>If your development machine is running Windows, you should make sure to update your USB driver before continuing. For your convenience, the Android SDK (1.0 r2 or later) includes an updated USB driver that you can install. For more information, see <a title="Setting up a Device for Development" href="http://developer.android.com/guide/developing/device.html#setting-up" target="_blank">Setting up a Device for Development</a> on the Android Developers Site.</p>
<p><strong>Download the Image Packages</strong></p>
<p>To flash a new system image to your device, you need to download two image packages to your local machine.</p>
<ul>
<li> If you are flashing your device using the recovery-image method, you need to download a recovery image package and a radio image package only.</li>
<li> If you are flashing your device using the fastboot method, you need to download a system image package and a radio image package only.</li>
</ul>
<p><strong>Radio Image Download</strong></p>
<p>Each Android platform version is designed to run on top of a specifc version of the radio firmware. Typically, each successive release of the Android platform relies on a newer version of the radio firmware, so whenever you are planning to flash a new system image to your device, whether upgrade or downgrade, you should also update the radio firmware to the version expected by the platform. If you do not update your radio image, the system may encounter problems.</p>
<p>Download the signed radio image packages that you need from <a href="http://www.htc.com/www/support/android/adp.html" target="_blank"><strong>support site</strong></a>. The platform version compatibility of each radio image package is indicated in its filename.</p>
<p>Once you&#8217;ve downloaded a radio image package, you do not need to extract it — you can reference the image package directly from adb commands, as described in the sections below. You can store the radio image package anywhere on your machine, but make sure to store to maintain its version-specific naming.</p>
<p><strong>System Image Download</strong></p>
<p>Download the signed system image packages that you need from <a href="http://www.htc.com/www/support/android/adp.html" target="_blank"><strong>support site</strong></a>. Multiple versions of the Android platform are available, so make sure that you understand what version(s) you need and what version(s) you are downloading.</p>
<p>For development, you should select the lowest possible Android platform version that meets the needs of your applications. For example, if you are working in the Android 1.1 SDK and your application is using APIs introduced in Android 1.1, then you should download the Android 1.1 system image. If you are using the Android 1.1 SDK but your application does not use Android 1.1 APIs, then using Android 1.0 image is sufficient.</p>
<p>For testing, consider downloading all platform versions with which your application is compatible, then running your applications on those platform versions to ensure that they work as designed.</p>
<p>Each system image package is a .zip archive that includes several images that you will flash to your device:</p>
<ul>
<li> A boot image — contains the kernel and initrd.</li>
<li> A recovery image — contains files used for rebuilding/updating the system.</li>
<li> A system image — contains the Android platform/apps of the specified version.</li>
</ul>
<p><span style="color: #00FFBF;">Note that the images in each package are mutually dependent, so you must flash them all to your device together. For example, you should not flash a system image to the device without also flashing the boot and recovery images included in the same image package.</span></p>
<p>Once you&#8217;ve downloaded a system image package, you do not need to extract it — you can reference the image package directly from fastboot commands, as described in the sections below. You can store the system image package anywhere on your machine, but make sure to store to maintain its version-specific naming.</p>
<p><strong>Recovery Image Download</strong></p>
<p>If you are flashing your device using the recovery-image method, download the recovery image package(s) that you need from the list of links in the table above. Currently, a recovery image packages is available only for the Android 1.1 platform version.</p>
<p>Each recovery image package is a .zip archive containing the full contents of a recovery partition, including:</p>
<ul>
<li> A boot image &#8211; contains the kernel and initrd.</li>
<li> A recovery image &#8211; contains files used for rebuilding/updating the system.</li>
<li> A system image &#8211; contains the Android platform/apps of the specified version.</li>
<li> A radio image &#8211; contains the compatible radio firmware.</li>
</ul>
<p>Note that the images in each recovery package are mutually dependent, so you must copy them all to your device together. For example, you should not copy a system image to the device without also copying the boot and recovery images included in the same image package.</p>
<p>Once you&#8217;ve downloaded a recovery image package, you do not need to extract it &#8211; you can reference the image package directly from adb commands, as described in the sections below. You can store the recovery image package anywhere on your machine, but make sure to store to maintain its version-specific naming.</p>
<p><span style="color: #00ffbf;">PAINPOINT: Cannot downgrade to Android 1.1 with recovery package 142608</p>
<p>If you are using the recovery-image method and had previously downloaded and the Android 1.1 recovery package signed-dream_devphone-ota-142608.zip, you should make sure to download the replacement recovery package signed-dream_devphone-ota-142608-b.zip (see the download link at the top of this page).</p>
<p>This is necessary because the recovery package signed-dream_devphone-ota-142608.zip prevents you from downgrading to it from a higher version of the recovery image. Therefore, if you upgrade to the Android 1.5 recovery image, you won&#8217;t be able to downgrade to Android 1.1 unless you use the replacement package signed-dream_devphone-ota-142608-b.zip.</span></p>
<p><strong>Update the Device Radio Firmware</strong></p>
<p>Follow the steps below to update the radio image on the device.</p>
<ol>
<li>Ensure that a SD card is inserted in the device</li>
<li>Boot the device normally</li>
<li>Connect the device to your development machine over USB.</li>
<li>At a command line, ensure that adb recognizes your device by issuing this command:</li>
<li>$ adb devices<br />
You should see your device in the console output generated by the command</li>
<li>Use the adb push command to copy the contents of the radio image package to the update.zip archive on the device&#8217;s SD card:</li>
<li>$ adb push &lt;radio-image-package&gt;.zip /sdcard/update.zipThe command prints the number of bytes copied and the elapsed time, then completes. However, note that the files are still being copied in the background, so wait a minute or two before continuing. If you continue too soon and terminate the operation before it is complete, you will get a &#8220;bad update.zip&#8221; error later, when you try to install the update. To ensure that the entire radio image package is copied before you continue, use this command:
<p>$ adb shell sync</p>
<p>When sync returns, all of the data has been copied to the device.<br />
<span style="color: #00ffbf;">PAIN POINT: I never got a ! icon following step 8 from the Support site. And without completing the steps below, the   installation is NOT complete.   Turn off your Phone:Press ‘Menu’ to go to Main Screen with Wallpaper.Keep the ‘Call end’ button pressed till you get the Phone options, and select Power Off option. Select OK to shut down.</span></li>
<li><span style="color: #00ffbf;">Hold the home key and power key to boot and enter the recovery mode. When the device enters recovery mode, it displays a &#8220;!&#8221; icon.</span></li>
<li>With the recovery console displayed, open the sliding keyboard and hold down the ALT+l key combination to enable log output in the recovery console and continue.</li>
<li>Next, hold down the ALT+s key combination to install the update. An &#8220;installing update&#8221; icon and progress bar are displayed<strong><span style="color: #00ffbf;"> </span></strong><span style="color: #00ffbf;">(keep holding the ALT+s combination) — when the progress bar completes, the installation is finished.</span></li>
<li>Press the HOME-BACK key combination to write the radio image, update the firmware, and automatically reboot. Note that if you do not use HOME-BACK at this point, the device will not load the updated radio image. After writing the radio image, the device shows a &#8220;updating firmware&#8221; icon for a few seconds and then automatically reboots in normal mode.</li>
</ol>
<p>After the device reboots normally, you can update the system image, as described in the next section.</p>
<p><span style="color: #00ffbf;">To check the radio image version, you can start the device in fastboot mode (see below). If you still find the old image version, your update was not complete.</span></p>
<p><strong>Copy the Recovery Image Package to the Device</strong><br />
For the recovery-image method only, after you&#8217;ve successfully updated the radio firmware, the next (and final) step is using the adb tool to copy the recovery image package to the device SD card. (If you are using the fastboot method, you do not need to copy a recovery image to the device &#8211; see Flash the System Image Package to the Device instead.)</p>
<p>follow the steps below to update the recovery image on the device.</p>
<ol>
<li>Ensure that a SD card is inserted in the device</li>
<li>Boot the device normally</li>
<li>Connect the device to your development machine over USB.</li>
<li>At a command line, ensure that adb recognizes your device by issuing this command:</li>
<li>$ adb devices<br />
You should see your device in the console output generated by the command</li>
<li>Use the adb push command to copy the contents of the recovery image package to the update.zip archive on the device&#8217;s SD card:</li>
<li>$ adb push &lt;recovery-image-package&gt;.zip /sdcard/update.zipThe command prints the number of bytes copied and the elapsed time, then completes. However, note that the files are still being copied in the background, so wait a minute or two before continuing. If you continue too soon and terminate the operation before it is complete, you will get a &#8220;bad update.zip&#8221; error later, when you try to install the update. To ensure that the entire recovery image package is copied before you continue, use this command:
<p>$ adb shell sync</p>
<p>When sync returns, all of the data has been copied to the device.</p>
<p><span style="color: #00ffbf;">PAIN POINT: I never got a ! icon following step 8 from the Support site. And without completing the steps below, the   installation is NOT complete.   Turn off your Phone:Press ‘Menu’ to go to Main Screen with Wallpaper.Keep the ‘Call end’ button pressed till you get the Phone options, and select Power Off option. Select OK to shut down.</span></li>
<li><span style="color: #00ffbf;">Hold the home key and power key to boot and enter the recovery mode. When the device enters recovery mode, it displays a &#8220;!&#8221; icon.</span></li>
<li>With the recovery console displayed, open the sliding keyboard and hold down the ALT+l key combination to enable log output in the recovery console and continue.</li>
<li>Next, hold down the ALT+s key combination to install the update. An &#8220;installing update&#8221; icon and progress bar are displayed<strong><span style="color: #00ffbf;"> </span></strong><span style="color: #00ffbf;">(keep holding the ALT+s combination) — when the progress bar completes, the installation is finished.</span></li>
<li>Press the HOME-BACK key combination to write the recovery image, update the firmware, and automatically reboot. Note that if you do not use HOME-BACK at this point, the device will not load the updated recovery image. After writing the recovery image, the device shows a &#8220;updating firmware&#8221; icon for a few seconds and then automatically reboots in normal mode.</li>
</ol>
<p>After the device reboots normally, the operation is complete.</p>
<p><strong>Flash the System Image to the Device</strong><br />
For the fastboot method only, after you&#8217;ve successfully updated the radio firmware, the next (and final) step is using the fastboot tool to flash the system image package to the device. Note that you should always update the radio image whenever you update the Android system image on your device. (If you are using the recovery-image method, you do not need to flash the system image package to the device &#8211; see Copy the Recovery Image Package to the Device instead.)</p>
<p>Follow the steps below to flash a system image package to your device:</p>
<ol>
<li>Boot the device in fastboot mode.<span style="color: #00ffbf;">PAIN POINT: Hold the Camera button and the power button at the same time when powering on, the phone will boot into Boot Loader Mode.Make sure the display on the phone changes from &#8220;Serial0&#8243; to &#8220;FASTBOOT&#8221;. If it doesn&#8217;t, try pressing the back button.</span><span style="color: #00ffbf;">The device is now in fastboot mode and is ready to receive fastboot commands. (I have had success doing this with usb plugged in the whole time, but others haven’t. If you have trouble, try it w/ usb unplugged until you see the skateboards screen.).</span>If you want to exit fastboot mode at this point, you can hold down the keys <span style="color: #00ffbf;">MENU+Call Start + Call End together</span>.<br />
Note that the bootloader screen may vary across devices.<br />
<span style="color: #00ffbf;">For Android Dev Phone devices, the bootloader screen shows an image of skateboarding robots.</span><strong><span style="color: #00ffbf;"> </span></strong>Other devices may show a different image or color pattern. In all cases, the bootloader screen shows the text &#8220;FASTBOOT&#8221; when in fastboot mode. The bootloader also shows the radio version.</li>
<li>Connect the device to your development machine over USB, if it isn&#8217;t currently connected.
<ul>
<li>USBClass_ff&amp;SubClass_42&amp;Prot_03</li>
<li>USBClass_ff&amp;SubClass_42</li>
<li>USBClass_ff</li>
</ul>
</li>
<p><span style="color: #00ffbf;">From your computer command line type &gt; fastboot devices.(Keep the emulator off, and the device should be indicated:<br />
List of devices attached<br />
HTXXXXXXXXXX device</span></p>
<p><span style="color: #00ffbf;">PAIN POINT: Device is not seen in fastboot mode.</span></p>
<p><span style="color: #00ffbf;">(NOTE: Check the USB device in Computer Manager when the phone IS IN fastboot mode. The computer sees the phone in fastboot mode as a different device than the phone in normal mode)</span></p>
<p>When the Device is in fastboot mode:</p>
<p><span style="color: #00ffbf;">If it asks you to install drivers,</span> then go ahead and use the same usb drivers that you used to get adb working. You can skip the rest of the instructions. Fastboot should be working for you now.<br />
<span style="color: #00ffbf;">If it doesn&#8217;t ask you to install a driver, you need to figure out if the correct driver is loaded already.</span><br />
Right click on My Computer, and click Manage, then go to the device manager</p>
<p>If you see an &#8220;ADB Interface&#8221; category at/near the top, with &#8220;HTC Dream&#8221; under it, then you&#8217;re good to go. Fastboot should be working for you.</p>
<p>In the device manager, go down to &#8220;Universal Serial Bus Controllers&#8221;, and see if you have at least one &#8220;USB Mass Storage device&#8221;. If you have multiple ones, you&#8217;ll need to go through each to find the correct one.</p>
<p>To find the correct one, right click on the USB Mass Storage device and click Properties. Go to the Details tab. In the combo box at the top that says &#8220;Device Instance Id&#8221;, bring up the pull down and choose &#8220;Compatible Ids&#8221;. If that is the correct device, then you will see 3 entries:</p>
<p>Once you find the correct device, go to the driver tab, and click &#8220;Update Driver&#8221;. Choose &#8220;No, not this time&#8221;, then &#8220;Install from a list or specific location&#8221;, then &#8220;Don&#8217;t search, I will choose the driver to install&#8221;, and then choose the same usb driver that you used to get adb to work (most probably located in the &lt;sdk&gt;/usb_drivers or its sub-folder)</p>
<p><span style="color: #00ffbf;">PAIN POINT: If you don&#8217;t see an &#8220;ADB Interface&#8221; category, then it&#8217;s likely that windows loaded the USB Mass Storage driver for it automatically OR If the ADB Interfaces category is seen, but ADB devices/fastboot devices command is not able to list the device.</span></p>
<p><span style="color: #00ffbf;">Unplug all your USB devices, and plug only the G1 device,</span></p>
<p><span style="color: #00ffbf;">Then Uninstall the</span></p>
<p><span style="color: #00ffbf;">ADB Interface-&gt;HTC Dream Composite ADB Interface (if present).</span></p>
<p><span style="color: #00ffbf;">USB Serial Bus Controllers-&gt;USB Composite Device</span></p>
<p><span style="color: #00ffbf;">USB Serial Bus Controllers -&gt;USB Mass Storage Device</span></p>
<p><span style="color: #00ffbf;">Now Use the USB cord to plug in the G1 Device to your computer, You will be prompted for drivers. Choose to “Install from a list or specific location&#8221;, then &#8220;Don&#8217;t search, I will choose the driver to install&#8221;, and then choose the same usb driver that you used to get adb to work (most probably located in the &lt;sdk&gt;/usb_drivers or its sub-folder). </span></p>
<p>After<strong> </strong>that&#8217;s done, you should be good to go. Open a command prompt and type fastboot devices and it should list the phone.</p>
<p>Note that, rather than using separate fastboot commands to erase the userdata and cache partitions, as described in the previous steps, you can simply supply the -w option when flashing the system image, which has the same result.</p>
<li> Next, use this fastboot command to flash the contents of the image package to the device:</li>
<li>$ fastboot update &lt;imagepackage&gt;.zip [-w]   With this command, fastboot copies all of the images in &lt;system-image-package&gt;.zip to the appropriate partitions on the device. During the process, it prints status messages to the command shell. Depending on your bootloader version, fastboot may also print status messages to the bootloader screen.When all image are copied to the device successfully, fastboot displays a success message.<span style="color: #00ffbf;">PAIN POINT: Even though I had completed a successful radio image update, and had the proper bootloader version 0.95.3000, I was not able to successfully update the System Image.</span><span style="color: #00ffbf;">Unzip the System image and extract these files to your &lt;sdk&gt;/tools and flash the boot.img, recovery.img and system.img individually:</span>
<pre>$fastboot flash boot boot.img
$fastboot flash recovery recovery.img
$fastboot flash system system.img</pre>
<p><span style="color: #00ffbf;">You may want erase the contents of the userdata partition, by using this fastboot command:</span></p>
<p><code>$ fastboot erase userdata</code></p>
<p><span style="color: #00ffbf;">This will remove all of the installed applications and their data, but it is a useful step when debugging because it ensures a clean execution environment for the application. Erasing the user data may also be necessary when you are flashing a lower (downgrade) platform version to your device. However, it is not strictly necessary to erase the userdata partition when upgrading to a higher (upgrade) platform version, which is the typical use-case in consumer devices.</span></p>
<p><span style="color: #00ffbf;">You may also want to erase the cache partition, using this fastboot command:</span></p>
<p><code>$ fastboot erase cache</code></li>
<li>Reboot the device. In most cases, fastboot should reboot the device automatically after copying the image files.<strong><span style="color: #00ffbf;"> </span></strong><span style="color: #00ffbf;"><br />
If necessary, you can reboot the device manually using these fastboot commands:<br />
</span><code>$ fastboot reboot </code>or<code> $ fastboot reboot-bootloader</code>You can also reboot from the device from the fastboot mode, by holding down the key combination <span style="color: #00ffbf;">MENU+Call Start + Call End.</span>For information about other fastboot commands, use<code>$ fastboot</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.androidkit.com/flashing-firmware-images-to-the-adp1-device/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Steps to Install and UnInstall .apk file on Android G1 Device</title>
		<link>http://www.androidkit.com/steps-to-install-and-uninstall-apk-file-on-android-g1-device</link>
		<comments>http://www.androidkit.com/steps-to-install-and-uninstall-apk-file-on-android-g1-device#comments</comments>
		<pubDate>Tue, 31 Mar 2009 11:48:04 +0000</pubDate>
		<dc:creator>Shesh</dc:creator>
				<category><![CDATA[Installation]]></category>

		<guid isPermaLink="false">http://www.androidkit.com/?p=41</guid>
		<description><![CDATA[<p><strong>Currently the following operating systems are supported:</strong></p>
<ul>
<li>Windows XP or Vista</li>
<li>Mac OS X 10.4.8 or later (x86 only)</li>
<li>Linux (Linux Ubuntu Dapper Drake)</li>
</ul>
<p><strong>The following sections are covered:</strong></p>
<ol>
<li>Installing the .apk file on a new G1</li></ol><p>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Currently the following operating systems are supported:</strong></p>
<ul>
<li>Windows XP or Vista</li>
<li>Mac OS X 10.4.8 or later (x86 only)</li>
<li>Linux (Linux Ubuntu Dapper Drake)</li>
</ul>
<p><strong>The following sections are covered:</strong></p>
<ol>
<li>Installing the .apk file on a new G1 device</li>
<li>Installing the .apk file on a device where section 1 has already been followed for steps 1 to 5</li>
<li>Uninstalling the .apk file from the G1 device before installing the same .apk again.</li>
<li>Uninstalling the .apk file (from the Device or Emulator) using adb shell .</li>
</ol>
<p><strong>Section 1: Installing the .apk file on a new G1 Device:</strong></p>
<ol>
<li>Installing The Android SDK on your computer.
<ul>
<li>First you will need to download the Android SDK pack .zip archive, once downloaded find a suitable installation location on your machine and extract the zipped files.</li>
<li>Please note: This installation location will be referred to as $ANDROID_SDK_PATH in the following sections.</li>
<li>Alternatively you can add /tools to your root path which will prevent the need to specify the full path to the tools directory along with enabling you to run Android Debug Bridge (adb) along with other command line tools.</li>
</ul>
</li>
<li>To add /tools to System PATH:<strong><br />
</strong><strong>Windows XP / Vista</strong></p>
<ul>
<li>Right click on the My Computer icon and select the properties tab.</li>
<li> Select the Advanced tab and click the Environment Variables button.</li>
<li> In the new dialog box double-click on Path (located under System Variables) and type in the full path location to the tools directory.</li>
</ul>
<p>Alternately, create a System Variable, called ANDROID_SDK_PATH and append %ANDROID_SDK_PATH%\tools to your System PATH variable.</p>
<p><strong>Linux</strong></p>
<ul>
<li> Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable.</li>
<li> Add the full path location to your $ANDROID_SDK_PATH/tools location for the PATH variable.</li>
<li> If no PATH line exists you can add the line by typing the following:</li>
<li> Export PATH=${PATH}:&lt;path to your $ANDROID_SDK_PATH /tools&gt;</li>
</ul>
<p><strong>Mac OS X</strong></p>
<ul>
<li> In the home directory locate the .bash_profile and locating the PATH variable add the location to your $ANDROID_SDK_PATH /tools folder.</li>
</ul>
</li>
<li>Connect the G1 device to the computer through the USB port. (If connecting for the first time, User is prompted to install the drivers in which case, point to $ANDROID_SDK_PATH/usb_driver, the drivers will get installed.)</li>
<li>You might have to change your settings to permit apps that don&#8217;t come from the Google Market by going to the G1 home screen and choosing MENU &gt; Settings &gt; Applications &gt; Unknown Sources.</li>
<li>Turn USB debugging ON on your phone, On your G1 go to the home screen, press MENU &gt; Settings &gt; Applications &gt; Development, then enable USB debugging.</li>
<li>From Command line on your computer enter<br />
‘adb install &lt;APK_FILE_PATH&gt;&lt;APK_FILE&gt;’<br />
(e.g. adb install C:/AndroidApps/NightStand.apk)</li>
<li>Check the MENU from the home screen on the G1 for the installed applications icon.</li>
</ol>
<p><strong>Section 2: Installing the .apk file on a device where section 1 has already been followed for steps 1 to 5</strong></p>
<ul></ul>
<ol>
<li>Follow steps 6 and 7 of Section 1.</li>
</ol>
<ul></ul>
<p><strong>Section 3: Uninstalling the .apk file from the G1 device before installing the same .apk again.</strong></p>
<ol>
<li>In the G1 Phone, Go to Applications Menu -&gt;Settings-&gt;Manage Applications.</li>
<li>Select the application which you want to Uninistall, and click on the ‘Uninstall’ button.</li>
<li>Follow steps 6 and 7 of Section 1.</li>
</ol>
<p><strong>Section 4: Uninstalling the .apk file (from the Device or Emulator) using adb shell.</strong></p>
<p><strong>There is an adb uninstall command which always shows Failure!!!</strong></p>
<p><strong>Using adb shell :</strong><br />
<strong>Important: </strong>The device has to be unplugged from USB if you are trying to uninstall from the emulator, else emulator should not be open and device needs to be plugged in the USB of the PC if you are trying to uninstall from the G1 Device. If either of them are not connected the adb shell command will not work</p>
<p>Go to the shell and making sure adb is in PATH:</p>
<p>Go to shell (from cmd-&gt;adb shell or directly through a terminal)</p>
<p>#</p>
<p>#cd data<br />
#cd app<br />
#cd ls</p>
<p>You will get a list of installed application with the complete package name of the package containing the main activity. e.g com.company.product.apk</p>
<p>#rm com.company.product.apk</p>
<p>#cd ls</p>
<p>You will not find the application &#8211; you just removed it!.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.androidkit.com/steps-to-install-and-uninstall-apk-file-on-android-g1-device/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

