yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] ss7seven:
New way to change MAC address

on phone-> enter ##3282#

select edit mode

enter MSL (can get MSL reader from market)

select wimax

select NAI

enter your wimax address@sprintpcs.com

press menu

select commit modifications

phone will reboot

after reboot redo steps 1-4 to make sure changes took place

I was doing the speed fix for changing the HTTP PD proxy port and address, saw the wimax menu, thought maybe will work.

It did.
[EVO 4G Android Development] m4f1050:
So changing the wimax NAI changed your MAC address of your 4G wimax?

Only ways I know are 1) nandbackup and flash_image the wimax.img of another EVO or 2) editing the wimax.img and on first 2 places substract 1 to the last hex digit and on the 3rd place write it normal.
[EVO 4G Android Development] dblock3nine:
Is it possible to take the RSA keys from another Evo and use them with my Evo? Lets say from either a demo Evo or a returned Evo... My keys are gone :-( and I really don't wanna exchange my phone again.
[EVO 4G Android Development] dblock3nine:
The NAI shows up as your MAC address with "@sprintpcs.com" at the end but once you edit that info it still doesn't change what shows up under Hardware info. Also didn't work for me but that could be because my RSA key is gone and those "fastboot oem" commands don't work for me.
[EVO 4G Android Development] m4f1050:
I did this, I got a wimax.img from another phone and hex edited the MAC address (the first 2 substracted 1 to the last digit of the new mac address and the 3rd the exact new mac address) and it worked fine.
[EVO 4G Android Development] NYCHitman1:
I'm having this issue on Fresh ROM 3.5.0.1. It used to work but suddenly just stopped. I have no idea what occured. I recently fully wiped to see but still authenticates, connects then auto-disconnects. Do you know how to repair the keys?
[EVO 4G Android Development] dblock3nine:
That is great to hear, can you explain in more detail how to do it? I was able to get another wimax.img from a different phone.
[EVO 4G Android Development] ridleyj329:
is anyone wiling to upload a wimax.img so that the rest of us can try to tinker with it to fix our phones?
[EVO 4G Android Development] dblock3nine:
I maybe able to get another one or two, if I do I'll give them away to whoever needs it. I got one right now but its to fix my 4G, I just need to figure out how to do it first lol.
[EVO 4G Android Development] m4f1050:
*** DO NOT TRY THIS IF YOU ARE NOT FAMILIAR WITH ADB ***

*** I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED DUE TO THIS FIX ***

Quick & Dirty Guide: (You need ROOT "su" to do this and don't change file size, replace don't insert!)

1. First, make a copy of the wimax.img as c:\newwimax.img

2. Download "flash_image.zip" and extract to your c:\ drive

3. Open c:\newwimax.img with HEX editor (I used XVI32)

4. Search for mac address on that wimax.img

5. The first 2 instances replace it with your new address substracting 1 to the last digit

example: 11:22:33:44:55:66 you replace with 11:22:33:44:55:65

6. The last instance replace it with the new address without modifying it

example: 11:22:33:44:55:66 you replace with 11:22:33:44:55:66

7. Push flash_image to /data/local/ and newwimax.img to /sdcard/

example: "adb push c:\flash_image /data/local/" and "adb push c:\newwimax.img /sdcard/"

8. Open ADB Shell, get superuser, and change permissions on flash_image to 0755

example: "adb shell", then "su", then "chmod 0755 /data/local/flash_image"

9. Flash the new image to your phone and reboot

example: "/data/local/flash_image wimax /sdcard/newwimax.img"

10. After you have confirmed your new address, NAND BACKUP YOUR PHONE!
[EVO 4G Android Development] m4f1050:
Don't like post 666, so added this post.. :)
[EVO 4G Android Development] dblock3nine:
Do you mean to put my MAC address in the areas I circled? the rest I understand.. Thanks
[EVO 4G Android Development] m4f1050:
No, it's separated by :'s search for the donor's MAC address.
[EVO 4G Android Development] dblock3nine:
Thanks, I found the donor's MAC address in 4 locations so the first 3 I replaced by subtracting 1 from my MAC address last digit (mines ended in F so I put E). Now when I tried to flash it to my phone I got a error, below I attached a picture showing you what it said.
[EVO 4G Android Development] ridleyj329:
where do we get this wimax.img from?
[EVO 4G Android Development] dblock3nine:
From another EVO, like one not being used. I believe I read somewhere on here that if you take someone else wimax.img their 4G would stop working but don't quote me on that.
[EVO 4G Android Development] m4f1050:
You got 4? I got 3 only on the EVO's I have switched MACs to... Ok, check the 4 addresses, you will notice in the original ones if it needs 1 substracted or not... Keep the same format (example: if 2 locations have -1 then do -1 on those)
[EVO 4G Android Development] m4f1050:
yeah, it flags and you get a message that you have to call sprint... both stop working. that's if you're nearby the other one.. but you won't use their MAC address, just their set of keys..
[EVO 4G Android Development] dblock3nine:
I manage to fix the wimax.img but the problem now is that I can't flash it to my phone. I have tried what you posted (both on pc and terminal emulator on the evo) and restore in recovery, but no luck :(.
[EVO 4G Android Development] m4f1050:
What's the problem? Where are you getting stuck at?
[EVO 4G Android Development] dblock3nine:
I keep getting "mtd: not writing bad block at 0x00ba0000 error writing wimax#", I get that whether I try the command on my pc or terminal emulator. I tried to restore it in recovery but since it does a md5sum check it wont take it, I even tried making a md5 file with correct md5 sum but didn't work.
[EVO 4G Android Development] m4f1050:
You are changing something somewhere... you can't be in INSERT mode, only in REPLACE mode. And only change the addresses with :'s in it. I only found 3, don't know why you are getting 4.... Try another donor wimax.img.
[EVO 4G Android Development] dblock3nine:
What do you mean? Are you talking about when you click on search and than replace? If so that is what I used and also used search just to make sure. Sorry man, I'm a noob at this...
[EVO 4G Android Development] neudof:
export PATH=/data/local/bin:$PATH

$ $su

#grep RSA /dev/mtd/mtd0

RSA-REQUEST

RSA-REPLY

RSA-REJECT

RSA-ACK

RSA-1024

RSA-REQUEST

RSA-REPLY

RSA-REJECT

RSA-ACK

RSA-1024

RSA

ReRSA

RSA requests

RSA replies

-----BEGIN RSA PRIVATE KEY-----

-----END RSA PRIVATE KEY-----

#

This is good right?

Sent from my RLS5 Sprint HTC Evo
[EVO 4G Android Development] dblock3nine:
Yes I believe it is but to make sure, download WiMax RSA Key Checker from the market.

Sent from HTC Evo on MIUI with Savage-Zen v.0.0.4
[EVO 4G Android Development] m4f1050:
Search and replace? You replace by typing in where it found the address.. What are you using to edit the file??? Use XVI32, it's small, good and reliable...
[EVO 4G Android Development] NYCHitman1:
I'm having this issue on Fresh ROM 3.5.0.1. It used to work but suddenly just stopped. I have no idea what occured. I recently fully wiped to see but still authenticates, connects then auto-disconnects. Does anyone know how to repair the keys?
[EVO 4G Android Development] dblock3nine:
I was using HxD but I'm trying XVI32. When I click on search tab and than I click on Replace, I still find 4 locations. Below I attached pics to show you.
[EVO 4G Android Development] dblock3nine:
So once I click on Replace I enter the donor's MAC address and replace it with mines, as shown below in the picture. I'm I doing it correctly?
[EVO 4G Android Development] dblock3nine:
You can't repair the keys, you need to check if your EVO still has them. Download WiMax RSA Key Checker from the market, it will let you know 4 sure. If it tells you that you don't have the keys anymore than sadly you got two options, either replace the phone or somehow get another RSA key(wimax.img) from a EVO not in use and edit the file with your MAC address. I lost my keys either flashing Radio set or when I rooted using unrevoked (been known to cause lost of RSA key) but I'm not sure because I didn't notice right away.
[EVO 4G Android Development] m4f1050:
Ok, the first 3 go with 1 less on last digit, you can tell, it's 69 instead of 6A (remember this is HEX)

Now for the replace, don't use replace, just click on the right side of the digits and type the new address (the first 3 with 1 less in the value you want and the last one with the actual value you want)

Remember, this worked for me with 3 locations, not 4 so not sure if it will work for you. Im going to look in my PC to see if I find a wimax.img that does work...
[EVO 4G Android Development] Marth05:
Can you restore them from a previous nandroid backup up or are you just screwed? I've been doing some reading and it looks like maybe Amon RA backs them up but not Clockworkmod (unless you have the newest version?).

So I'm just wondering if there's a way to pull the keys from a previous nandroid backup where they were still there and working.
[EVO 4G Android Development] m4f1050:
Yes, you can restore them from the Amon RA backup. Using "flash_image wimax wimax.img"

And yes, the new Clockworkmod has wimax backup as well.

EDIT: To use flash_image if not included in your ROM, extract the file in flash_image.zip to your c: drive and do the following:

adb push c:\flash_image /data/local/

adb shell

su

chmod 0755 /data/local/flash_image

then to flash the wimax.img, place it in your sdcard and do this:

/data/local/flash_image wimax /sdcard/wimax.img
[EVO 4G Android Development] NYCHitman1:
I have the keys. They are there. I'm still having disconnect from 4G issues.
[EVO 4G Android Development] Marth05:
Does this work for nandroids made with clockworkmod before versions 3 or am i just screwed?
[EVO 4G Android Development] m4f1050:
Do you have "wimax.img" in the nandroid backup folder? If you do then it should work. The key here is having the wimax.img...
[EVO 4G Android Development] Marth05:
Nope. Did some more reading and figured out that I'm boned. Nandroids made with clockworkmod before version 3.0, I think, don't back this up, so I'm screwed because my keys are gone.

I wish I had known that before going through the trouble of restoring my MAC.
[EVO 4G Android Development] m4f1050:
Get a donor wimax.img with keys and change the MAC address. This has worked for me but someone is having problems with it.. I havent updated to the new 3.70 with baseband 2.15.00.11.19 not sure if that has anything to do with it...
[EVO 4G Android Development] Marth05:
Deleted post
[EVO 4G Android Development] m4f1050:
From another EVO, doing a nandroid backup.
[EVO 4G Android Development] InstantKarma:
Oh good lord. After hours of researching the MAC and the RSA Keys, reflashing the wimax radio, updating the profile...all I had to do was uninstall SwitchPro.

Thanks for that.
[EVO 4G Android Development] klsmalls1:
Is there a site to get donor Wimax images from or you just gotta look for some poor sap to let you "borrow" their evo for the night?
[EVO 4G Android Development] jamyil:
fastboot

ok when i try to do fastboot oem wimaxrmac i get, im using wireless adb also, if i dont use it i dont get any adb device serial number.

C:\Users\Jamyil D Thomas>cd\

C:\>cd sdk\tools\

C:\sdk\tools>adb devices

List of devices attached

192.168.1.16:5555 device

C:\sdk\tools>fastboot oem wimaxrmac

... INFO[ERR] Command error !!!

OKAY [ 0.006s]

finished. total time: 0.006s

C:\sdk\tools>

any help?
[EVO 4G Android Development] Lyvewire:
I have the wimax.img's i each of my backup roms however from what I hear this does not mean I have "the key" downloaded Wimax checker and it says not found. Is there anything I can do???
[EVO 4G Android Development] jamyil:
i now have the same issue. i got fully rooted, did the steps, and i downloaded the key checker and it said not fount. BUT, i checked in adb and it said my max it correct. so its still not working for me.
[EVO 4G Android Development] LilCozyFab:
I'm still trying to find the Official Answer for this within this thread. I'm not sure if they're saying, the Toast 2 will fix this, but when I go through Toast 2 I still get the same above issue.

UPDATE: I've just Unrooted my phone, re-rooted using Toast's Methods 1 & 2 with success, no errors. I return to this forum to complete these instructions and still receive:

C:\Android\tools>fastboot oem wimaxrmac

... INFO[ERR] Command error !!!

OKAY [ 0.005s]

finished. total time: 0.005s

Would being on Hboot 2.10 be the problem?

Any direction would help. If it's a lost cause, just tell me it's a lost cause. Thank again.
[EVO 4G Android Development] Vdubtx:
So i guess my phone is fubar'd. No 4G only scan then disconnects. Wimax Key Checker says no keys found. Glad that my wife's is fine though. She doesn't use 4G often.

From what I am reading there is no way to get RSA keys back right?

If I go into Sprint with an unrooted phone and leave with a new one, can I then take my Titanium backed up apps and move the folder to the new phone and restore my apps? Would hate to have to go through the whole Angry Birds games again to get 3 stars and all the golden eggs, ha ha. :lol:
[EVO 4G Android Development] jamyil:
my friend i gave up an got a new evo. im looking now on how to fully root and keep my rsa keys n stuff.
[EVO 4G Android Development] m4f1050:
AMON-RA Recovery v1.8.0 (modded) or v2.2.1 will backup your WIMAX image wich will backup your RSA keys (no matter if new or old partitions.)

Using Unrevoked3 and select custom recovery before plugging in the EVO works like a charm.
[EVO 4G Android Development] CGCampbell:
hey how do i get my phone to fastboot shell...i cant get the phone to be recognized on the computer.
[EVO 4G Android Development] johnston4hooah:
Please...HELP!

After a month of trying to get my 4G back I am still stuck. I have the issue with the MAC address and I am profficient with ADB. The problem is that my EVO is running HBOOT 2.10 and therefore I do not have the neccessary fastboot commands to apply this fix. As of now I have found no way to (safely) downgrade to a previous ENG HBOOT. Any help from you guys would be greatly appreciated as I know there are many others out there lacking the ability to use these fastboot commands. I finally moved to a 4G area but can't use it! :mad: Thanks in advance!
[EVO 4G Android Development] igotroot:
Hate it for u, because 2.10 is NOT downloadable. I have a 0004 with it, and I too wanted .76 but its basically not happening. If u have a warranty, its time to back up with titanium backup, factory wipe phone, unroot, and swap out at Sprint for a warranty replacement.
[EVO 4G Android Development] gpz1100:
Depending on your hardware, hboot 2.10 it may not be possible to downgrade. Mine came with 2.10 originally. There's a guide on here (http://xdaforums.com/showthread.php?t=883548) which outlines how to downgrade. If your hardware is not compatible, you will brick the phone.
[EVO 4G Android Development] johnston4hooah:
Thanks

Thanks for the responses. I saw that article on downgrading. I'm running Hardware version 003 so I'm a little hesitant to do it. Has anyone running 003 attempted said risky procedure?
[EVO 4G Android Development] bubbate:
if i unroot my fone, will my keys come back
[EVO 4G Android Development] alammori:
Nope. Sadly.
[EVO 4G Android Development] igotitiscool:
hey i have a 4g and wifi problem but on custom roms my 4g and wifi mac address say unavalilable and when i restore my evo rooted rom that came with phone all that is there, how can i get that on the custom roms also and i used unrevoked(june 2010) and running hardware version 002
[EVO 4G Android Development] LilCozyFab:
I have my RSA Keys backed up, but still can't do nothing with them from what I understand.
[EVO 4G Android Development] igotitiscool:
i have my keys and the only way i get 4g is that i use my nadroid back up of the orginal evo rom when i rooted..... i get no 4g on no other roms..(they are 4g roms also). please help
[EVO 4G Android Development] LilCozyFab:
Try

http://xdaforums.com/showthread.php?t=936945

I'm going to try this method as soon as I figure out how to do it.
[EVO 4G Android Development] civic4982:
This method worked for me on my bad mac address issue thanks.
[EVO 4G Android Development] sparhawk6:
Thank you very much for this guide. This saved me after I got the "bad" MAC addresses after updating to the newest Gingerbread OTA.
[EVO 4G Android Development] Zacisblack:
I'm confused. My girlfriends EVO has been acting up lately on CM7 and shes getting about 300kb/s max download. I was recently checking to see if the wimax was messed up by typing wimax_mtd in a terminal and everything says "no match" or "error". Just tried out 4G and it works perfectly getting 7mbps down and 1mbps up. Why is this?
[EVO 4G Android Development] rdhddmazoku:
So there is literally no alternative way to fix this if you have HBOOT 2.10 on 0004?
[EVO 4G Android Development] dominicanodcora:
what did you modify in the wimax.img? also how did you open that file? hex editor?
[EVO 4G Android Development] dominicanodcora:
so how you i execute the eng build?
[EVO 4G Android Development] dominicanodcora:
when in fastboot i hit adb devices and it doesnt show any devices but when i load to rom i hit adb devices it shows. i keep getting the errors everyone else keeps getting. how do i get to eng build?
[EVO 4G Android Development] dominicanodcora:
anyone????
[EVO 4G Android Development] dominicanodcora:
mine only finds it in 1 locations and your last pic is the same location xvi32 finds it. when i hit search again after i deduct 1 it says no strings found
[EVO 4G Android Development] ViViDboarder:
So far has anyone who ran the unrevoked patch restored their mac address and CONFIRMED THEY GET 4G?

I worked with some of the guys the other night and got my mac restored with no luck for 4G connection. Used a different method though than this. If this works that's good news though.

As for Keys... OP, can you retrieve your keys?

If so would you be able to grep your entire /system and/or /wimax partitions for the keys and see if they are stored anywhere else on the filesystem? Then someone like me with no/bad keys could try to recover theirs and set them again.
[EVO 4G Android Development] joeykrim:
only thing i can think of, you guys all ran the eng build of PC36IMG.zip right? w/o running this you might not have access to all the fastboot commands?
[EVO 4G Android Development] kpkimmel:
good thinking joeykrim..never thought about that..such a noob mistake didn't think that would happen..but yeah if they didn't execute the eng build then no they won't have all fastboot commands.

feel like this thread has gone off topic as of now..
[EVO 4G Android Development] jonathaflores:
just a quick question mac adress is the one located on the back of the device where it says Wimax, i have to letters is that even possible????
[EVO 4G Android Development] Smac61:
Same for me too.

adb isnt seeing the device when in fastboot usb mode. When up and running I do see it and can access it.

I broke my 4G with clockwork mod / unrevoked 1st update method from yesterday FWIW. Stupid newbie question, but could this be a full root vs unrevoked issue?
[EVO 4G Android Development] kpkimmel:
yes possible..look on your box..says wimax: then your numbers.
[EVO 4G Android Development] kpkimmel:
you don't type "adb" at all..just type "fastboot oem wimaxrmac" thats it...
[EVO 4G Android Development] Travyevo:
I did unrevoked and the first version of the OTA patch which killed 4G. Haven't done anything else.

Can you point me in the right direction?
[EVO 4G Android Development] kpkimmel:
search for downgraded versions of wimax and radio.img and run those..if you have to run the stock ruu reroot from there....
[EVO 4G Android Development] swaze:
Not sure if this will help you guys, but this fix got my 4G working again with the new WIMAX. So I was thinking once you have your mac addresses to match you might want to try and see what happens.

1. Wipe and Flash DC 3.2.2.1 with ROM Manager - http://www.4shared.com/file/0shR7Fa6..._deodexed.html

2. Install updated radio - http://talkevo.com/tracker/torrents/.../new_radio.zip

3. Update PRL and Profile

4. Reboot

5. Verified MAC with sticker under battery and wimax_mtd

6. Installed the signed Wimax radio update posted earlier in this thread - http://xdaforums.com/atta...1&d=1277938917

7. Verified the mac was still the same with wimax_mtd

8. Verfied new version

9. Installed the 4g permission fix - http://xdaforums.com/atta...8&d=1277912380

10. mv /data/misc/wimax/xxxxxxxxxxxx.tree.xml /data/misc/wimax/xxxxxxxxxxxx.tree.xml.orig

If it works, make sure you thank zugnokorr, as he brought it to our attention in this thread....http://xdaforums.com/showthread.php?t=700649&page=408

Hopefully it works for you guys too. Also I have rebooted and 4G still conntects.
[EVO 4G Android Development] Geniusdog254:
I haven't looked for keys yet, but I will now.

One other thing I did notice, in /data/misc/wimax it has a *.tree.xml for your MAC address. It seems if your MAC changes it creates a new one. One thing I did notice in both versions (for the bad MAC & my original one) is that the FwV tag (firmware version) the version did NOT match my current WiMax version as reported by the wimax_mtd command. I changed it to match the correct version, but like I said I can't guarantee it works.

EDIT: @swaze or whoever it was posted about the *.tree.xml files same time I did. What a coincidence lol :p It seems like it may be because it is messing up that file when the MAC changes and the version is wrong. Just my $.02. There are way more experienced people than me working on this.
[EVO 4G Android Development] kpkimmel:
your links aren't working buddy..
[EVO 4G Android Development] Smac61:
Right. That's whats leading to the error, in my case at least.

When the phone is in fastboot mode, adb doesn't see it. I believe this is our problem.

EDIT: Sorry for the confusion, I am NOT typing adb before the fastboot command.

Here is a repost of the included command - response in question...

c:\EVO4G\tools>fastboot oem wimaxrmac

... INFO[ERR] Command error !!!

OKAY [ 0.000s]

finished. total time: 0.000s
[EVO 4G Android Development] david279:
go into fastboot mode then type in "fastboot oem wimaxrmac". No adb.
[EVO 4G Android Development] kpkimmel:
looks like your missing the drivers then..download htc sync from the website..Did your run the eng pc316img.zip file when rooting? Follow this as stated....

http://androidforums.com/android-lounge/6905-windows-driver-install-using-adb-fastboot.html
[EVO 4G Android Development] swaze:
Not sure what happened, but all the links are in the thread I posted. Its basically flashing the newest DC 3.2.2.1 ROM de-odexed,

then flashing the newest Radio from caulkins RADIO-WIMAX thread

follow the rest of the instructions

then flash the newest WIMAX from that same RADIO-WIMAX thread

follow the rest of the instructions

and then flashing flipz 4G permissions fix

and then either remove or rename that file and it should work,

at least it did for me and others from that thread.
[EVO 4G Android Development] Geniusdog254:
Adb will NEVER see a phone in fastboot mode. Don't try to mix the protocols. If you wanna see if it's connected, run "fastboot devices" and it'll show you connected devices.
[EVO 4G Android Development] Smac61:
Cool, I had thought adb handled the connection.

Anyhow fastboot is seeing the device, unfortunately the problem persists.

Thanks, I'll shut up and watch for a solution now...
[EVO 4G Android Development] jonathaflores:
change my Mac address using this mini guide, but it didnt work ,Wimax still not working, i live in a 4g area but not working! :(
[EVO 4G Android Development] kpkimmel:
if fastboot sees the device you shouldn't have any problems running fastboot oem wimaxrmac

place a cmd shortcut on yoru desktop, run as admin and try again..
[EVO 4G Android Development] jjrizzelcincy:
when you are in fastboot you need to type fastboot devices i had the same problem using fastboot for the first time.

try that hope it helps