[HD2 Android NAND Development] bullcrapr:
Here you go... Did it quickly, hope I didn't miss anything...

HOW TO INSTALL DORIMANX 3.1.9 FROM SCRATCH W/ ODEX (TASK29 / MAGLDR)

I. Tools

1)	Preparing Phone for flash

-	HD2 Toolkit (install to pc): http://www.filehosting.org/file/details/327686/HD2ToolKit4.2.0.1.zip or follow this link: http://xdaforums.com/showpost.php?p=19931919&postcount=501

-	Recovery (unzip this to a separate folder on your pc): http://www.dorimanx.com/rom/Recovery_5.0.2.7_B6-TOUCH_CWR-FIXED.zip

-	A text/script-editing software (to modify the Recovery size). I use Notepad++: http://notepad-plus-plus.org/download/v6.1.3.html

2)	Preparing sdcard for rom

-	Minitool Partition Wizard (Home edition free—install to pc): http://www.partitionwizard.com/download.html OR Easeus Partition Master (Home edition free): http://www.partition-tool.com/download.htm

II. Ingredients

1)	Latest Dorimanx ROM (keep it on pc, do not unzip) available here: http://www.dorimanx.com/ in this case I will be using: http://www.dorimanx.com/rom/Dorimanx-Rom-3.1.9-Nightly-277-All-in-One.zip

2)	Latest Dorimanx Kernel (keep on pc, do not unzip) also available at dorimanx.com… hint: scroll down)

3)	Regional gps fix e.g. gps.conf_Auto_AGPS_update_every_24hr_(asia).zip (dmx's mirror...)

III. Safety First!! DO A NAND BACKUP!!! This method will clean out everything on your phone (internal memory and external sd-card) so make a backup (Magldr menu> 8. ADRecovery> Backup and storage> backup). Copy the backup folder from your sd-card to somewhere safe on your pc.

IV. Steps to Install

A.	CLEAN-WIPE YOUR PHONE:

a.	Plug the phone to the USB cable and Reboot. Before bootscreen appears, keep holding down the “Volume down” button until the red-green-blue-white (rgbw) screen shows with “USB” (if it shows “Serial” then wiping will not work)

b.	Run (as administrator) HD2 Toolkit. You can start with re-installing HSPL2.08 (optional). Once that is done, re-enter the rgbw, and press “Wipe (Task29)”. This wipes your entire nand memory.

c.	Next, re-enter the rgbw and press “Install MAGLDR”. The phone auto-reboots after that. Let it. It will take you to the magldr menu

d.	Go to “5. USB Flasher” to install Recovery mod. (Press the ‘Call’ button to enter usb mode)

B.	INSTALL RECOVERY MOD

e.	Preparing Recovery for odex. (If you don’t intend to run the odexed version, skip this step). To run the odex version of Dorimanx’s rom, the recovery size has to be increased to a minimum of 170MB. On your pc, go to the unzipped recovery folder. Inside, you will see some files. Open the file called “flash” (not “flash.cfg”), using Notepad++ (not Notepad). You will see:	misc ya 1M

recovery rrecov|ro|nospr filesize recovery-raw.img

boot yboot|ro 5M

system ya 150M

cache ya 10M

userdata ya|asize|hr allsize

*Change the “150M” to at least “170M”. (I keep mine at 190M or 200M in case of bad blocks). Save and exit.

f.	Installing Recovery: (While phone is in usb-flasher-mode, and showing “Wait usb…usb”), run the DAF.exe (as admin) in the Recovery folder. The phone will autoboot to magldr menu again. Disconnect the phone from the usb cable. This time go down to: “8. AD Recovery”

C.	PARTITIONING YOUR SDCARD WITH SWAP (FOR ODEXED VERSION)

g.	In AD Recovery, go to: Advanced> Partition SD Card> 1024M> 256M, and format. Wait for it to complete the operation, and turn off phone. Take out the sd card and put it into your pc card reader.

h.	Convert Fat32 partition to 32kb cluster size (for faster read-write). Open Minitool Partition Wizard and format the Fat32 partition to Fat32 with 32kb cluster size. Note: There is no need to change the drive letters or partition size, names or type. Leave everything else as is (unless you know what you’re doing). After applying the new settings, close Minitool, and copy the Dorimanx zip file (currently 3.1.9zip) to your sd-card. (Copy the new kernel-zip file to the same place as well, if the kernel is not already included in the Rom). Take out your sd-card from the pc, and put it back in your phone and boot into the Magldr menu. Go to “AD Recovery” again.

D.	INSTALLING THE ROM

i.	With the new Aroma installer from Amarullz, this stage is a piece of cake. In AD Recovery, go to: install zip from sdcard> choose zip from sdcard, and choose the Rom-zip, and choose to install (of course). Aroma installer starts up. The first menu will ask you to choose a theme (this is for the installer interface, not for the rom, so choose any!). Hit “Next” on the next screen.

j.	The Menu after that is about choosing the mods you want to be applied to the rom (this is Dmx’s specialty!). My preferences are:

	Full skin. This will install the rom with Dmx’s own visual customizations (skin/animation/icons)

	High End. Dmx Roms have two types: High End and Light. The High End Rom is for more heavy duty users (use 60+ apps on their phones excluding the system apps). High End users need to manually install task managers and task killers as the built-in one is disabled. The Light version is for lighter users with the default task managers already enabled (so less complicated).

	192dpi. A personal visual preference. Lower dpi’s lower the ‘clutter’ on your screen by reducing the size of icons. 167 is even smaller, 160 is still smaller…

	Fast Dormancy on. An option that manages background-data while screen is off in a way that reduces battery drain (at least I think so – I read it a long time ago). If your operator doesn’t provide this service, keep it disabled.

	Boot Atomic Boost on. This option allows you to boot your device faster, but at the cost of stability. Mine gives no trouble with this option enabled, but many ppl have reported bootloops with any kind of boost activated. Keep it off if you’re not sure

	Cron tasks on. CROND is a tasker that makes the Rom/phone a lot snappier by performing a few automated tasks: runs Dmx’s own Phone-prioritizer script more often, clears file cache once a day, clears RAM cache every 6 hours, refreshes the swap (I took all this off Post #3-go there for details). If you want to run maintenance yourself, keep it disabled. I read some time back that a reboot removes the cache files on this rom

	Enable data to ext mod. This tweak assigns data-management to the SD card (from nand) reducing the burden on the internal processing mechanics. There is a debate about which is better. Personally, I’d rather wear out my sdcard than my nand.

	Robo Font. Again, a personal visual preference. I used to use base, but I’ve since gotten used to robo

	3515 Hacked Market. You can install the original market, or the one hacked for multiple dpi support. If you’re going for stock dpi, it is safe to go with new market

	Enable Odex. Odex is explained clearly here: http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/

	Default keys light mod. This applies to the backlight. You can activate the light-sensitive mod, or apply the default touch-sensitive version

	Use normal auto install

	Reboot

k.	The menu after that, requires you to pick the applications you like… (so do so). Then hit “Next” on the next screen to install. Rom should auto-reboot. Wait for roughly 3-4 minutes. A popup should greet you. Choose “Default setup” (I’ve tried both, they generally get you through after a force close or two).

l.	Enabling Zram: The first thing I do is skip the whole google accounts setup and enable zram. This is how: CyanogenMod settings> Performance> Compcache ram usage> choose 26% (this is to activate the extended virtual ram). What zram basically does is it complements the physical ram (swap). In other words zram is virtual ram that is meant to improve the whole system performance. Zram won’t be activated until you restart though… so please do.

E.	POST-INSTALL TWEAKS

m.	Installing Task Managers. After the reboot, install the task managers (recommended are: System Tuner Pro and Advanced Task Killer). The job of these task killers are to autokill apps periodically because the in-built task manager is disabled. Make sure you include the apps you don’t want to kill in the whitelists of both task-killers.

n.	Enable Customized Cron and GPS fix. Once the Rom has settled, you can customize Cron to your local preferences. To do this, you can use Root Explorer. In Root Explorer (top), press the 'Mount R/W'. You should see r/o-status (left) change to to r/w (editing enabled). Then navigate to: System > etc > init.d > Long-press “08wcrond” > Open With > Text Editor > Scroll down to: “TZ=IDT -3”. Change the “-3” to your localized time preference. My time zone is +8, so mine is: “TZ=IDT -8”. Exit Root Explorer and save the changes made when it prompts you to do so. Also, Root Explorer will automatically create a backup of the edited file “08wcrond.bak”. Delete it. For the GPS fix, you can edit the file using Root Explorer as well. Just navigate to: System > etc > long-press gps.conf and edit the servers as shown in Post #3. Alternatively, it’s easier to just flash the downloaded GPS fix file via AD Recovery (the same way you flashed the rom)

o.	Enjoy the fastest/smoothest CM7 ROM EVER! Yes, it might be more complicated to install and set up, but by God the performance is just mindblowing!! You have to try it to fathom it!! ENJOY!!

I've also attached a docx-file to this post for convenience