[HD2 General] T-Macgnolia:
The rest of the guide.

What is Clockwork Mod Recovery, and how do I use it?
​

Clock Work Mod Recovery is a little program that allows us HD2 owners to flash Android ROMs via SD card (the Android way) and not just by using the USB Flasher option #5 in MAGLDR. CWM is a custom recovery for native Android devices . (Would the HD2 have it any other way?)For those of you that have had a native Android device may have experienced using CWM before and will be familiar with it. CWM allows those out there that want to run Android ROMs on their HD2 the ability to apply updates via SD card, format petitions of the NAND memory, install Android ROMs via SD card, install kernels in .zip format via SD card (any .zip as long as it is recovery flashable zip format) create Nandroid backups, restore their HD2 with Nandroid backup, allows you to go into recovery mode just like a native Android device, and allows you to do a factory reset of your HD2. The reset is just for the Android ROM it will not reinstall Windows Mobile to your HD2. To navigate CWM use the up and down volume buttons to scroll up and down, use the send button to select an option, and the back arrow button to go back out of a sub menu and back to the main menu.

This is the main menu of CWM v3.0.0.5

-reboot system

-apply update from sdcard

-wipe data/factory reset

-wipe cache partition

-install zip from sdcard

-backup and restore

-mounts and storage

-advanced

-power off

​

Ok so what is all of that you say?

Reboot system

This option will let you reboot your HD2 from CWM. Highlight this option and press the send button and your HD2 will reboot.

Apply update from SD card

This option allows you the ability to install updates via your SD card, install kernels, install ROMs, themes, appa etc. You simply copy the update.zip file to the root of your SD card (it has to be named update.zip) using option #4 USB Flasher in MAGLDR or the mount and storage option in CWM. Then scroll down to highlight this option in the main menu of CWM and press the send button. This bringsnup a confirmation screen, scoll down and highlight Yes -- Install/sdcard/update.zip press the send button and it will install the update.

Wipe data/factory reset

This option allows you to wipe all user data from your HD2 effectively resetting your HD2 to the way it was when you istalled the Android ROM on it. It also wipes any sd.ext partition. Select this option and then scroll down to Yes -- delete all user data and press the send button this will reset your HD2. Make sure you make a Nandroid back up using the backup and restore option of CWM before doing this as this is not reversible.

Wipe cache partition

This option allows you to clean the cache partition of your HD2. It is a good idea to use this befor you install a ROM, kernel, or any custom mod to your HD2. Scroll down to highlight this option press the send button, then scroll down to highlight Yes – Wipe Cache press send button and it will wipe your cache.

Install zip from SD.

This option has four sub menu options in it, I will cover them shortly. They are the following.

-apply/sdcard/update.zip

-choose zip from sdcard

-toggle signature verification

-toggle script asserts

Backup and restore

This option has three sub menu options in it, again I will cover them shortly. They are as follows.

-Backup

-Restore

-Advanced Restore

Mounts and storage

This option has 12 sub menu options in it, all of these options are pretty much self explanatory. All the mount options simply allow you to mount or unmount the respective partition. All the format options do just that allows you to format the respective portitions. Warning if you use any of these options it will be a total wipe of that partition therefore if you choose format system it will leave you with no ROM and format boot in a native Android device would leave you with no bootloader and will brick a native Android device if a bootloader is not reinstalled before reboot. We HD2 users have to use MGLDR or cLK to boot Android, but we also still have our original bootloader too. The last option allows you to transfer data to or from your SD card via USB connection, if it is the first time you use it you will have to let the drivers load and it should show up in Devices and Printers on your computer as Android Phone. You can also view the contents of your SD card this way. Here is how the options look. To select any of these options just scroll to it to highlight the option and press the send button, for the format options you will have to select Yes – Format but remember these are not reversible once done, and last for the mount USB option you will have to connect your HD2 via USB cable and remember to press send to unmounts your card before unplugging your USB cable

-mount/data

-mount/cache

-mount/sdcard

-mount/sd-ext

-format boot

-format system

-format cache

-format sdcard

-format sd-ext

-mount USB storage

Advanced

This option has eight sub menu option in it, again I will cover these shortly. They are as follows

-Reboot Recovery

-wipe Dalvik Cache

-Report Error

-Key Test

-Partition SD Card

-Fix Permissions

Ok that gives you a good overview of the main menu in CWM. Now let us look at all the sub menus minus the mounts and storage sub menu of course.

Install zip from SD card​

-apply/sdcard/update.zip

This does the same as the apply update from sdcard option in main menu of CWM and you follow the same directions as it after you highlight and press the send button to select it.

-choose zip from sdcard

This option allows you to flash your Android ROM via SD card, kernels, apps, you name it as long as it is in the recovery flashable zip formate. You simple copy the .zip file to the root of your SD card using option #4 USB Mass Stg of MAGLDR or mounts and storage option in CWM. Boot into MAGLDR then boot CWM via option #2 Boot AD SD or option #8 AD Recovery of MAGLDR depending on the way you installed CWM. Then scroll down to highlight install zip from sdcard in the main menu press the send button to select it, then scroll down to choose zip from sdcard to high light it and press the send button to select it, then scroll through the contents of yout SD card until you highlight the zip file for your ROM and press the send button and it will flash the ROM to your HD2.

Toggle signature verification

This option does just that, it allows you to toggle signature verification on or off depending on what it says in the highlighted area when you press the send button to select it. This is for allowing custom ROMs and other custom or nonofficial software on native android devices but really has no use in the HD2 as it is not a native Android device and has no official ROM so every ROM is a custom ROM and any Android related software installed to it is unofficial.. To use this just press the send button to toggle it on and again to toggle it off while you are on the screen for this option as it will be the only highlighted option. Just to be safe I would not turn the verification on, who knows what it might do lol.

Toggle script asserts

This option does just that, it toggles script asserts on and off depending on what it says in the highlighted area when you press the send button to select it. Script asserts is a way for the ROM package to check values if you will while it is being flashed if the values of the compared components do not match then the installation will halt and give an error message. So this is something mostly for devs to use I suggest if you are not a dev just leave this alone. To use this just press the send button to toggle it on and again to toggle it off while you are on the screen for this option as it will be the only highlighted option.

Backup and restore​

Backup

This option allows you to make a Nandroid Backup of your HD2. It creates a backup for boot, system, data, cache, and sd-ext partitions. You can use this Nandroid backup to restore your settings and user information and the such, pretty much everything you will need to make the phone just like you had it before you had to reset it or flashed a new ROM. To make a backup boot into MAGLDR and choose option #2 Boot AD SD or option #8 AD Recovery in MAGLDR, which ever one you have to use depending on the way you installed CWM, and boot into CWM. Next scroll down to backup and restore to highlight it and press the send button to select it, press the send button again as backup will be the default option highlighted and let your phone complete making a backup file. The backup file is stored on your SD card.

Restore

This option allows you to restore all of your personal information and settings using a Nandroid backup file you made by using the backup option above. This restore does a complete restore of all boot, system, data, cache and sd-ext partitions. This translate into you having the same phone you had before you reset the phone or flashed a new ROM. To do a restore boot into MAGLDR and choose option #2 Boot AD SD or option #8 AD Recovery in MAGLDR, which ever one you have to use depending on the way you installed CWM, and boot into CWM. Next scroll down to backup and restore to highlight it and press the send button to select it, then scroll down to restore to highlight it and press the send button to select it. Then highlight the backup you want to use if you have more than one backup file on your SD card and press the send button to select it and the phone will then restore your settings and information to the phone. (Note if you are restoring to a new/different ROM do not use this option, go to advance restore and only restore the data and cache, as if you restore the boot and system you will just have the same ROM again as boot restores your Lenuix kernel and system restors your ROM.)

Advanced Restore

This option allows you to restore just like regular restore but it could be call selective recovery as it lets you choose which part of the backup you want to use to backup your settings and information from. Example if you want to just use the cache partition and the data partition files from the backup Advanced Restore will allow you to do this. To use Advanced Restore boot into MAGLDR and choose option #2 Boot AD SD or option #8 AD Recovery in MAGLDR, which ever one you have to use depending on the way you installed CWM, and boot into CWM. Next scroll down to backup and restore to highlight it and press the send button to select it, then scroll down to Advanced Restore to highlight it and press the send button to select it. Then scroll to highlight the partition you want to use to backup with and press the send button to select it. The phone will restore only the files that were in that partition. If you want to use more than just one partition you will have to navigate back to Advanced Restore from the main menu of CWM as when the restore is complete it will go back to the main menu of CWM.

Data restores your personal information.

Cache restores your settings and any other cached information.

System restores your ROM. ( So do not restore this if you changing ROMs)

Boot restores your Lenuix kernel . (So do not restore this if you are changing ROMs)

Advanced​

Reboot Recovery

This option simple just reboots your phone from CWM. In native Android devices this would take reboot you straight back into Recovery but being as the HD2 has to boot into bootloader then MAGLDR it can not do this. (We HD2 owners are still crossing our fingers though) Press the send button to select it as it is the default highlighted option when you go to Advanced.

Wipe Dalvik Cache

This option allows you to clear the Delvik cache on your phone. Dalvick cache is a cache area for a program named Delvik. This program is a java based virtual machine. This program is the bases for running programs with the .apk extension. The cache is a result of the optimization of running programs. It is recommended to wipe this cache any time you are going to flash a new ROM as you might encounter issues if you don’t. It is not advised to wipe this cache any other time as it might might make your system sluggish or buggy until it rebuilds the cache.

Wipe Battery Stats

This option allows you to clear your battery stats in/data, it is believed that if you fully charge your battery to 100% then wipe your battery stats and drain your battery completely down, then completely charge it to 100% again it recalibrates your battery and helps battery life. To do this just scroll down while in advanced sub menu to Wipe Battery Stats to highlight it and press the send button to select it.

Report Error

This Option allows you to create and save a log of CWM’s operations to your SD card that can be used with Android ROM manager. Highlight this option and press the send button to create the log.

Key Test

This option allows you to test the external hardware buttons (keys). Highlight this option and press the send button to select it. Once selected you can press all the hardware keys and get the corresponding value for it. After all the keys have been press you will return to the main menu of CWM. YOU should get these values.

Up volume button=Key:115

Down volume button=Key:114

Send button=231

Home button=Key:102

Windows Start button=Key:139

Back button=Key:158

End button=Key:107

Partition SD

This option allows you to be able to petition your SD card so you can take advantage of ROMs that support data2ext which allows you to use some of your SD card as the /data partition. This is internal data that contains user information. Warning using this option will wipe all data and contents of your SD card, so make a backup copy of it before you use this option. To use this option highlight it and press the send button and a list of Partition sizes will come up just choose the appropriate partition size for you. Here is a list of the partition sizes.

Ext Size​

-128M​

-256M​

-512M​

-1024​

-2048​

-4096​

Fix Permissions

This option allows you to fix the file permissions for internal memory partitions. This is useful if your HD2 starts to give errors and force closes, as these are sometimes caused by apps that have root access. Just highlight this option and that’s right you guessed it press the send button to select it lol.

This concludes the run down off Clock Work Mod Recovery for the HTC HD2. Here is my sources for this information. [01 FEB][RECOVERY] ClockworkMod Recovery for HD2 - v1.3[FONT=&quot], [/FONT]update-script syntax - A guide for ROM devs, modders, and themers[FONT=&quot], [/FONT]Android forums[FONT=&quot], [/FONT]wipe battery and rotate stats[FONT=&quot],[/FONT] What Is ClockworkMod Recovery And How To Use It On Android [Complete Guide], and last but not least Google.