[EVO 4G Android Development] redsolar:
Before we begin. This solution is for people who have tried everything multiple times, and failed. If you haven't read and have not tried the following solutions yet, please do so first:

How to start over: From original stock to rooted latest OTA (WiMAX working!)

[GUIDE] Bad WiMax MAC? Broken 4G after update? Fix HERE!

The guide below is ONLY for people who did not have success with above methods (i.e. they are really really hosed). And there are limitations for now, until everything is confirmed and tested. The most important part you need access to a second, healthy and rooted EVO. As of yet, this is the only way to guarantee that one binary dump is not used a million times, negating the effect.

Please read the whole guide before starting the process, so that you know the risks, limitations, and potential issues with all this.

I am going to sign off for a few hours, and go enjoy my life for a brief time, before returning to answer any questions that may arise.

Ok, so for now, this is more of a proof of concept solution, since I understand not everyone has more than one EVO to do what I did.

My idea about partitions was correct, so without further ado, here is how to restore a botched wimax.

What you need.

2 Fully rooted EVOs (step 1 and step 2), one with working 4G (any version of all firmware on either, all we care for is working WiMax)

System which can do fastboot commands. That means you will have to have Android SDK installed. I also add path to /tools folder into my system PATH, so I don't have to type out the full path to adb or fastboot every time

Custom recovery. I use clockwork for this, since I am not sure all the files are signed, as required by Amon RA's recovery

Broken EVO backup

Backup your existing wimax partition on your broken EVO. We may need it some day.

Open command line window (cmd)

Make sure you have no PC36IMG.zip files in the root of your SD Card, or it will take a while to power your phone up

Power down your phone

Power it up while holding down the Volume Down key

HBOOT will attempt to scan for PC36IMG files. Let's hope you read carefully and don't have it on your SD Card root

Once HBOOT fails to find the file, use Vol Up/Down buttons to go into Fastboot mode

Connect the USB cable to your phone (and PC). You may have to install the USB drivers that come with Android SDK, but chances are if you are looking for this solution, you already have them installed and working

The FASTBOOT mode will switch to FASTBOOT USB (that's good)

Test your fastboot by typing "fastboot oem h" in command window you opened earlier (note, no adb, or adb shell anywhere, the command is "fastboot oem h". From here on all fastboot commands are issued in that window

If you see less than ~40 lines of output, you don't have a propertly rooted phone, and you need to do step 1 and step 2 (see above)

Dump your wimax data by issuing "fastboot oem saveprt2sd wimax -n wimax.bin" command (varies, anywhere between 7 to 8.5 MB, mine was 7MB)

Dump complete partition (~12MB) by issuing "fastboot oem saveprt2sd wimax -n wimax.bin -a" command

Reboot your phone

Pull the data files you dumped to a safe place ("adb pull /sdcard/WIMAX.BIN" and "adb pull /sdcard/WIMAXRAW.BIN"). Note the capitalization, it's important

We are done with your "bricked" phone.

Getting correct wimax image from a working phone

Now, repeat the same steps for your working phone (steps 1-14)

Pull the files to a different (safer) place, and cherish them like they are the only thing you care about in this world (which you do, right?)

Make a copy of your WIMAX.BIN file from the working phone (do NOT edit the actual file, just in case something breaks with your working phone at any time)

Use hex editor to update the working file in

2 places

, and change the MAC address (which should be your working evo MAC - 1) to your broken evo MAC - 1 (remember, A becomes 9, F becomes E, etc). It's a big file, so search for "00:18" to find the 2 places. There will be exactly 2, not 3+ and not 1.

Rename the file you just edited to "wimax_25641R01.img"

Fixing your bricked phone

Push it to your sd card root: "adb push wimax_25641R01.img /sdcard"

Push the attached zip file to sdcard root: "adb push new_wimax.zip /sdcard"

Reboot your bricked phone into recovery

Flash new_wimax.zip. This will force write wimax_25641R01.img you pushed earlier, including the certificates in it

Reboot from recovery, let it finish, and boot up into Android

If not running the latest evo WiMax firmware yet, use the second attached zip to do so

Reboot your phone. Allow everything to complete and boot into Android

If needed, update PRL/Profile (I didn't need to, but I already updated it 50 times by now, so YMMV)

Now, I can not attach any of my dumps yet, before I test and make sure whether both phones can stay online on 4G without interruption, I will do some more testing later, since the Encryption keys are different (between 2 working evos I dumped binaries from). I still have 1 more phone to check when I get home. So if you have another evo (friend, family, etc) - you can do that already.

Otherwise, be patient, more testing is needed to make sure we are not going to steal anything from your friend, family, etc, since encryption keys are unique.

But the above solution works for completely restoring your 4G into working state.

I am currently running latest rooted OTA update, too, so it definitely works fine on latest and greatest.