[HD2 Android NAND Development] mskip:
This guide will explain how to install Clockwork Mod on your phone so you can flash CWM Roms, as well as performing other actions.

Clockwork Mod is the traditional way of flashing, updating, backing up and restoring Roms on Android Phones. Many chefs are now only providing Roms in this form so it is best to have it on your phone and know how to use it.

REQUIREMENTS BEFORE STARTING!! IMPORTANT, PLEASE READ THIS!!

1. YOU NEED HARDSPL 2.08 INSTALLED ON YOUR DEVICE TO FLASH MAGLDR

2. YOU NEED A RADIO WHICH SUPPORTS 576 RAM (2.08.50 or later should be fine but the Radio NEEDS to be 2.**.50.**). I recommend the 2.15.50.14 Radio

3. YOU NEED MAGLDR V1.13 ON YOUR DEVICE TO INSTALL CLOCKWORK MOD

THIS GUIDE ASSUMES YOU HAVE ALREADY FLASHED MAGLDR V1.13 ON YOUR PHONE. IF YOU HAVENT THEN PLEASE FOLLOW AND COMPLETE STEP 1 OF *THIS* GUIDE BEFORE CONTINUING WITH CWM.

-------------------------------------------------------

-------------------------------------------------------

1. FLASH CLOCKWORK MOD TO YOUR DEVICE

NOTE: There are 3 CWM images attached at the bottom of this thread. You only need to install 1 of the images depending on what type of Android Rom you want to flash. The larger the size of the CWM Partition the less space there will be left for programs installed to your phone.

150MB Partition - For lite Roms without Sense such as CM7. Gives most internal space on your phone for apps

250MB Partition - Standard size Roms or squashed Sense Roms

400MB Partition - Full Sense Roms. Hardly any internal space for apps. 512ROM Leo's will need A2SD external partition set up

If you arent sure which size you need then check the first few posts of the Rom you want to flash as it will usually tell you which size partition it needs.

1. Download the CWM Partition you require and extract it to a new folder on your pc

2. Connect your phone to your pc via the USB Cable

3. Restart your phone and HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears

4. Keep pressing the 'Volume Down' button to goto Option 5. USB Flasher and press the 'Call Button' (far left) to select it

*The screen should now say Wait USB...USB*

5. Run DAF.exe (Right Click and Run As Administrator if you have Vista or Windows 7) in the folder you extracted the image to and follow the intructions on your pc to start flashing

6. After flashing the phone will reboot. HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears

To start Clockwork Mod keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call Button' (far left) to select it

NOTE: If the Rom demands a different size CWM then you can download any of the attached sizes, then extract the contents and edit the flash.cfg file with Notepad. Change the sizes on the following lines depending on what you need:

system ya ***M (partition size)

cache ya **M (cache size)

-------------------------------------------------------

-------------------------------------------------------

2. PARTITION YOUR STORAGE CARD FOR A2SD ROMS (IF REQUIRED)

NOTE1: Setting up a partition on your Storage Card will allow A2SD compatable Roms to automatically install apps to this partition rather than using your phones internal memory. This is useful for people that have alot of apps to install and for people who want to flash a Sense Rom and wont have much internal memory left.

NOTE2: Once you create an A2SD partition on your Storage Card all information will be lost so make sure to backup everything to your pc so it can be copied back after. The accessible space on your Storage Card will be made smaller by the amount of the partition you set up so only make it as big as you need make it huge if you dont have many apps to install)

1. Boot into the Clockwork Mod menu

2. Go down to 'Advanced' and select (by pressing 'Call Button')

3. Select 'Partition SD Card'

4. Select Size of required partition not sure then 1024M is a good size)

5. Make ABSOLUTELY sure you want to continue and then select 0M Swap Size

Your Storage Card will now be partitioned with the size you selected.

ALL DATA ON YOUR STORAGE CARD WILL BE LOST!!

-------------------------------------------------------

-------------------------------------------------------

3. FLASHING A CWM (CLOCKWORK MOD) ROM

1. Connect your phone to your pc via the USB Cable

2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen

3. When the data wipe is complete, select 'install zip from sd card' in the main menu

4. Go down to 'choose zip from sdcard' and select

5. Scroll down to your CWM Rom (which you should have copied to the Root of your Storage Card) and select it

6. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'

Note: You can repeat steps 3-5 if you have more zips to install such as gps data or screen mods

7. Once finished press the 'Back' button to get to the previous menu screen

8. Select 'reboot system now' to restart your phone and your Android Rom should boot

9. Once Android has booted and you have gone through the setup screens, LONG PRESS the 'End' button and select reboot to reboot your phone to avoid possible FC (Force Close) problems

NOTE: The first boot of your Rom will take alot longer than subsequent boots so leave it and give it time (15 minutes max)

-------------------------------------------------------

-------------------------------------------------------

4. UPDATING AN EXISTING CWM (CLOCKWORK MOD) ROM

1. Connect your phone to your pc via the USB Cable

2. In the Clockwork Mod main menu select 'install zip from sd card'

3. Go down to 'choose zip from sdcard' and select

4. Scroll down to your CWM Rom update (which you should have copied to the Root of your Storage Card) and select it

5. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'

6. Once finished press the 'Back' button to get to the previous menu screen

7. Select 'wipe cache partition' and then 'Yes' on the next screen

8. Select 'Advanced', Select 'Wipe Dalvik Cache' and then 'Yes' on the next screen

9. Select 'Fix Permissions' and wait for it to complete

10. Once completed press the 'Back' button and then select 'reboot system now'

11. After the phone boots into Android you will probably get alot of 'Force Close' messages. Pull the battery, plug it back in and press the 'Power' button to boot up and everything should work fine

-------------------------------------------------------

-------------------------------------------------------

USEFUL INFORMATION

HOW TO ENTER THE CLOCKWORK MOD MENU SCREEN

1. Restart your phone and HOLD DOWN the 'End' button (far right) until the Magldr Menu appears

2. keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call' button (far left) to select it

-------------------------------------------------------

HOW TO COPY FILES TO YOUR PHONE

NOTE: This can be used to copy music or data across to your Storage Card and for copying your CWM Rom (with .zip extension) to the Root of your Card for flashing

1. Connect your phone to your pc via the USB Cable

2. In the Clockwork Mod main menu select 'mounts and storage'

3. Go down to 'mount USB storage' and select

Note: The Storage Card will now appear as a drive on your pc

4. When finished copying files select 'Unmount'

-------------------------------------------------------

HOW TO BACKUP THE CURRENT ROM ON YOUR PHONE

NOTE1: This can be used to make a complete backup of your Rom, installed apps and all settings. You can then try a different Rom and restore your backup at a later date if required.

NOTE2: Multiple backups can be made as they are stored in seperate folders (named by date and time)

1. Connect your phone to your pc via the USB Cable

2. In the Clockwork Mod main menu select 'backup and restore'

3. Select 'backup'

Note: Your entire Rom and all associated data will now be saved to your Storage Card. You can rename this folder at a later date if you wish

-------------------------------------------------------

HOW TO RESTORE A BACKUP TO YOUR PHONE

1. Connect your phone to your pc via the USB Cable

2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen

3. When the data wipe is complete, select 'backup and restore' in the main menu

4. Select 'restore'

5. Select the backup folder you wish to restore and then 'Yes' on the next screen

Your entire Rom and all associated data will now be restored from your Storage Card

NOTE: You can also restore parts of the backup by selecting 'Advanced Restore', selecting the backup and then choosing which part of the backup you want to restore (boot, system, data, cache or sd-ext)

-------------------------------------------------------

To SCROLL through the Menu Options use the 'Volume Up' and 'Volume Down' buttons on the left side of the phone

-------------------------------------------------------

To SELECT an Option in Clockwork Mod, press the 'Call' button which is the far left button at the bottom

-------------------------------------------------------

To GO BACK in the Clockwork Mod Menu, press the 'Back' button which is next to the 'End' button at the bottom

-------------------------------------------------------

*DISCLAIMER*

I take no responsibility for any fault or damage caused by any procedures within this guide. No warranties of any kind are given.