You are on page 1of 11

cLK&Android for dummies how to install&configure cLK on Leo/HD2

The most important thing you will ever read in this whole tutorial: Warning! Any software or hardware changes you make to your phone could result in phone malfunction, loss of data, and even total inoperability of the device (bricking). I take no responsibility for damages to your phone or to the user, or its data. If you choose to continue, be warned that this is your own responsibility!

-Remember, all data on your phone will be lost during the following procedure, so dont come cryin if you didnt back up your SMSs and applications and other priceless data -You may freely skip any step from this tutorial. You do so at your own risk! -You acknowledge that you may have voided your warranty already, even prior to installing cLK and Android.

I. BEFORE YOU EVEN BEGIN


You will need a FULLY charged smartphone (well, duh!). Also you need a PC (again, duh) equipped with Windows and either WinRAR or 7-zip. You are going to need to extract .rar, .7z, and maybe even .zip files. You need internet access to download the necessary files. All of my examples come from the system setup that I use HTC Touch HD2 T8585 and 64-bit Windows 7 operating system. A different setup may make a difference in the steps I have mentioned, or, then again, they may not. Note: make sure you DISABLE firewalls and antiviruses programs, and that you turn off sleep mode on you PC! These are things that will only get in the way of installation and could potentially be dangerous to your phone.

II. UNDERSTANDING WHAT ARE YOU DOING


If you wish to run Android on your officially Windows Phone, you must be prepared to hack your phones internals -- namely, its boot loader-SPL (thingy that powers up your phone). There is no easy, one-button-press way to do this. It's not as easy as working with a computer, where you can tweak things easily. Each phone has software made only for it, so any changes you make apply to that one model specifically.

III. GETTING EVERYTHING READY!


Know what an SPL is? No? Read on you will need it couple of times! To install these funky pieces of software to your phone, you need access to some of its low-level processing capability. Operating systems of any kind do not provide that, for the very simple reason that doing this directly is a quick way to kill your phone. (For those who are curious, SPL stands for secondary program loader if you are still curious, see the One Last Note Before Getting On With It below.) Steps to getting into the SPL 1. Make sure you are not connected to a charger or to the PC with a USB cable and turn off your phone completely. Pulling out the battery and put it back in, if you have no other way to do this. 2. Hold the volume DOWN key while pressing the POWER key (thats right: the red one) briefly. Keep holding the volume down key until. 3.Wazaaaaah! Here you are:

Theres the nice (?) red-green-blue-white screen that tells you your SPL version in the top section and says Serial in the bottom section. The moral of the story so far is: when you see terms like SPL, CMD, CWR, bootloader, etc. used in this guide, just follow the instructions. If you need more information, or if you are totally unfamiliar with a term you should probably take a moment to see what you can find out about them on google.

This wasnt so hard, was it? Now lets find out what useto make of this!

To continue with install, I am assuming you have HardSPL and Radio 2.15.xx.xx installed. Follow the next steps only if that is not the case:
1. Go get HardSPL from here (scroll down a bit to locate version 3 or 4). Extract the files you download and and install the HSPL to your phone. Heres how. a. Connecting phone in either SPL-bootloader mode (refer to the section above) or via Windows Mobile Device Center (called ActiveSync on Windows XP). b. Run the extracted file hspl4.exe (or hspl3.exe). Note: remember to select 2.08.HSPL in the options for HSPL4.exe -- or just install HSPL3.exe 2. Install Task 29 the same way you did HSPL. Note: Task29 is not really necessary, but some folks report that it fixes some small quirks after installation. I say better safe then sorry. 3. Install "Leo_RADIO_2.15.50.14" the same way you did Task29 and the HSPL. You are
probably getting good at this by now, right?

If you have all these things already (and I mean you, Custom ROM users!), skip on ahead

One Last Note Before Getting on with It

Before proceeding I recommend visiting the cLK thread on xda forums, found here , to get the latest cLK updates (as the apocalypse might occur between me writing and you reading) and additional help. There, you will find most of the attachments I will mention for downloading and a quick tutorial -- one for experts, that is.
I will describe installing Typhoons CM7 Android rom which is pre-packaged to use the cLK boot loader. Recall that for other (non CWM ZIP) installations the procedure may be different (check Addendum Chapter VII if thats what you have to have and if you are feeling brave). The procedure is still pretty much same in every case. You will simply use different size files to install cLK and maybe patch an existing installation. Again, consult the Addendum for that.

IV. DOWLOADING EVERYTHING YOU NEED


1. Click on the link in the XDA site linked to above to get the cLK bootloader .nbh file (the version number may be different by the time you read this) and here is CustomRUU.exe, the program you will use to flash this baby.

2. Download android drivers from here. 3. Download latest ROM (cLK version, Mr. Obvious) from here (OR any other ROM in zip format and its kernel update but youre on your own for that) 4. Download recovery image from here

Extract the files from 1st, 2nd and 4th steps into an easy-to-remember folder; I recommend C:\android (it would be best for you too, and you will see why in a minute) 3rd (or so called ROM zip) is actual thing you will flash. Do !!NOT!! extract it!

V. INSTALLING EVERYTHING
Installing cLK 1. Again (yes, Im boring) put your phone in bootloader forgot how it looks?

Just in case, check your SPL version; if not SPL-2.08.HSPL, go back and install the HSPL ;) 2. Time to plug in your USB cable. 3. Run CustomRUU.exe from the folder where just extracted everything (probably C:\android I told you that name would be handy). Follow the on-screen instructions. At the end, leave your phone plugged in to the USB cable, and it will reboot to screen like this:

WTH? you destroyed my phone? Actually, no lets proceed ;)

5. In Windows 7, the USB drivers you need to communicate with your phone should be installed automatically. If you need to update them for any reason, you downloaded them in step 2 of part IV. You can install them manually by opening Device Manager in Control Panel:

6. Find Unknown Device in USB Devices or else Android phone (your phone). Click the update driver icon on the menu bar. Select Browse my Computer and hunt up the folder where you extracted everything perhaps C:\android ;) and let it install. 7. Take a look at your phone. It should now say fastboot: processing commands on the bottom line. Good work! 8. Open a command prompt on your PC by typing cmd in the Run (Windows key + R, or use Run from the Start menu). 9. In the command prompt CMD window type cd C:\android (assuming thats what you named the folder) and hit Enter. 10. Type fastboot flash recovery cLK_recovery_1.3.3_3.0.1.9.img & hit enter 11. Type
fastboot reboot and grab your phone and HOLD DOWN THE HOME BUTTON IMMEDIATELY. Hit Enter, keeping the home button held down until you see an orange menu appear(like 30 sec). This is the ClockWorkMod recovery, abbreviated CWM (or sometimes CWR).

So here we are, almost done :) Congrats! From this point on, you will be doing things you need to do with each new ROM you install on your phone, and even with each new version of a ROM you already installed (a ROM update, that is). You dont need to repeat the whole procedure from the top for the same ROM unless it is stated in thread of that ROM. Now, if you find another ROM where you need a different version of cLK well, that is a different story and you will find instructions about that in the Addendum! Installing flashing a Android ROM and kernel
1. Use CWM to copy ROM and packages to your SD card. How? you ask use the Volume keys as D-Pad to move up and down the menu, use the green Call key to select an item, like pressing the Enter key, and use the red Power key to return to the main menu. a. Move down to Mounts and storage, select it, and from the Mounts and Storage menu move down and select "Mount USB storage" b. If the SD card does not appear as a drive on your PC, unplug the phones USB connection, then reconnect it. Eventually your SD card will show up as a USB thumb-drive on your computer. 2. Copy the zip files for TyphooNs ROM that you downloaded previously or another ROM with an updated kernel !!!.ZIP files only!!!!! (in other words, do not extract them) to SD card 3. On the PC, use "Safely remove hardware" function to disconnect the SD card 4. On the phone, select "Unmount", press End Call button to return to CWM main menu 5. Move down to Install zip from sdcard" and select this. From the new menu, move down to "Choose zip from sdcard" and select this. 6. Find the ROM you copied (for instance, TyphooNXXXXXXX.ZIP) and install it by selecting it with the Call button. Wait patiently while the ROM is flashed to your phone.

7. Repeat the same process for the kernel (if you have it from another ROM). 8. Press End Call button to return to CWM main menu. 9. Move down and select "Wipe data / factory reset" to format the userdata and cache partitions so that data can be stored on it. 10. When done, select "Reboot system now" .wait for it..just a little bit It will take up to 15min to get to the Android screen. Even after that, you may experience some error messages; just click Force Close and leave the phone alone for about 15min. You may even have to reboot by long pressing End Call. The next boot should be all ok.

VI. Everything (should be) done.


1. Enjoyandroid heaven!1!!!!!1111!!!!1one!one!! 2. Leave comment or Thanks where you found this tutorial 3. Check Addendum for extras (If you need new dose of hacking)

VII. Addendum
I see you are still reading, so lets get to the point
Wanna have another kernel you found that everyone says is totally awesome? a) There is chance you will find a cLK-friendly zip in the kernel thread or the cLK thread because someone will have converted it already. In that case, download, a copy to your SD Card, and flash it from CWR. Notice that you can actually reboot to recovery with cLK. b) You cant find a cLK version? Not to worry we can make that work too. The following is an example of flashing rafpignas r1.9OC kernel (find it on xda, lazy!). Note: This kernel comes in a Gingerbread and non-Gingerbread flavor, as of this writing. For an Android 2.3.x ROM, choose the GB version, for a Froyo ROM choose the other. 1. Look in the kernel updater .zip file using winrar or 7zip. Locate the boot folder. In there you will find the file zImage. 2. Copy zImage for the new kernel to your working directory (wasnt that called C:\android?) 3. Look the .zip file of your ROM using winrar or 7zip and locate the boot folder. In it you will find the file initrd.gz. 4. Copy initrd.gz to your working directory, too. 5. Open a command prompt on your PC and type cd C:\android 6. Make sure your phone is connected via USB and boot it into fastboot mode: a. Turn off the phone and hold down the Back (left arrow) button. b. Press the power/End Call key while holding down the Back button. c. You will see fastboot: processing commands on the last line of your phones screen after it starts up:

Remember this picture?

10

7. Type
fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz and hit Enter.

8. Type fastboot reboot and hit Enter. Enjoy your new kernel! You saw this really awesome bootanimation but dunno how to install it? 1. Flash it the same way you flash a ROM in CWR. Enter it by using Reboot to recovery option on phone or you can also do it by holding Home key and Power key, something you do with the Volume Down key to enter the SPL 2. Flash .zip as in chapter V, but select the bootanimation .zip, ofcourse.

Want to flash another Android ROM you found on the forum? 1. Find out what CWR partitions does the build uses. This may be stated in first post of thread, and if nothing else, download the ROM (you will probably need it anyway) and locate the flash.cfg file. Open the file in notepad and note numbers used for system. Note: the default cLK system partition is 150 mb and no other system size will work with it. 2. Download cLK files for alternative size system and cache partitions here 3. Install needed (or closest) .nbh file using CustomRUU.exe it (look in chapter V.) 4. Install recovery via fastboot again(chapter V.) 5. Then, install ROM in CWR after holding down Home during startup(chapter V.) 6. Optionally, install different kernel see the instructions above.

please leave THANKS and reqirements for improvements on PM or thread made by stirkac@xda-developers.com

edited by dkephart (huge thanks to him!!!)

11

You might also like