[G2 and Desire Z General] dietotherhythm:
I'm getting a lot of private messages lately on "how do I overclock my phone?"

I am not a developer, I just read and learn how to do these things and have no problem explaining it to the masses. It's getting generally irritating to paste the method and modify it to each person's specific needs, so here is a guide for everyone to try from square one.

(IF this has ALREADY been explained in another thread, then please disregard, and mod's feel free to delete this thread)

Note: This should work on most all roms. I have not personally tested it with all but I can say this method will work with cyanogen's mod/Stock/Stock de-odexed rom's. Don't blame me if you get stuck in a boot loop or have some other problem. Worst case scenario, restore to a backup, which reminds me...

MAKE A BACKUP BEFORE DOING THIS

Now I am a huge fan of Flippy125 and Coolbho3000's work on the overclocking of the G2/Desire Z. The files that will be used in this guide are from their work and they deserve credit for them.

I am merely just posting a guide for those who have trouble with other overclocking methods. Upon reading beyond this point, you accept that I take no responsibility for any damage you may cause to your phone and anything that goes wrong is your problem...not mine :p

With that said, let's get to business.

WHAT YOU WILL NEED

A PC with Android's SDK installed (Get it here)

Overclocking kernel package (Wifi fix included, get it here)

A rooted G2/Dz

HOW TO DO IT

Now first things first, boot your phone into Fastboot mode by holding the Vol down+Power Buttons when starting it up. Hook the device to your pc via usb. Make sure the phone says "Fastboot" in red on it. If you have all the drivers then it should register everything just fine. If your pc says unrecognized device, then google "T-Mobile Vision Drivers" or "Desire Z Drivers" according to your device and install them.

I don't want this thread to get flooded with "where do I get drivers from?" Go google it.

If your phone is in fastboot mode, we can proceed to flash the kernel.

Now you will need to pick what you want the maximum speed to be on your phone. The provided package contains the 1.8Ghz overclocking kernel (stable) and the 1.9Ghz (unstable) kernel. They are labeled as such.

It is recommended that you use the 1.8Ghz because your phone is more likely to crash on start up if you use the 1.9Ghz.

Take your selected zImage1xxxmhz and rename it to just "zimage"

Move the newly renamed zimage to your C:\Program Files\Android\android-sdk-windows\tools folder. This will make for easier flashing.

Now open command line on your pc.

Navigate to your android sdk tools with this command to the default install location

Next we will proceed to flash the zimage you just put in this exact directory

enter the following:

If successful, your phone should display 2 lines confirming that it was successfully written to your device.

Next we will need to take the bcm4329.ko file out of the kernel package and move it to C:\Program Files\Android\android-sdk-windows\platform-tools

We will also need to navigate to out platform-tools folder with command line.

Enter the following:

Now boot your phone into recovery mode (the screen that is used for rom installs and all that crap) Then select mounts and storage menu. Be sure to mount system and data. Once that is set enter the following into command line.

If successful, it should display something like "xxxxKB/s <xxx,xxx bytes in 0.xxxs>....but the x's are replaced by numbers.

If all went well then you should now have an overclocked device on restart.

You will need a program like SetCPU to control the speeds so it is highly suggested you check out the coolbho3000's SetCPU thread here!

Hope this helps all the newcomers that are looking for a little performance boost so good luck guys!