yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] jpatterson350:
Little help please.

Please tell me the below information is good?

I am able to connect to 4G in orange county and speeds are from 1200kb to 3800kb. My question is in some parts of LA I get the searching, authenticating, connecting then back to searching but others can connect. Note I do have the Begin RSA private key and End private key but it doesn't show any numbers just what you see below. So you do you think am I OK? PS I only have one MAC address and its the correct one.

# busybox grep RSA dev/mtd/mtd0

busybox 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-----

#

Best,

JP
[EVO 4G Android Development] debugguy:
Not true. Search the forumn, there is a fix. Here is taster for you, pull the battery, write down your correct WIMAX MAC address, you will need it.
[EVO 4G Android Development] debugguy:
Yes AMON RA backs up the following:

boot.img

cache.img

data.img

nandroid.MD5

system.img

wimax.img
[EVO 4G Android Development] JvIo55iBl3r:
man, you mean there is some way to fix RSA key loss problem?
[EVO 4G Android Development] hperry:
he was pretty clear that he was talking about the issue with losing MAC address, which is a separate issue from losing your RSA keys. the MAC address can be restored (read title of this thread). RSA keys cannot be restored unless you made a backup beforehand. so if you have bad MAC and you still have RSA keys intact, there is hope you don't need a new phone. if you have lost your RSA keys, you are hosed no matter what your MAC is (unless you have a backup).

i am hoping sprint smartens up and releases a tool to allow recovery of RSA keys. word is that they have this tool for their 4g USB data cards which need to have the same RSA keys.
[EVO 4G Android Development] JvIo55iBl3r:
My bad, sorry that i didn't really read carefully.

thx for sharing such information, i m hoping that true too.
[EVO 4G Android Development] MercuryTangent:
Outstanding! Thank you.

Sent from my Virus Infected Evo using the XDA app.
[EVO 4G Android Development] MercuryTangent:
Is there a fairly sure method for backing up one's RSA keys? How would you restore them afterward?

Sent from my Virus Infected Evo using the XDA app.
[EVO 4G Android Development] teedo757:
..............look up see blue...labatt blue...wait no its the answer to your question at the top of the page.

You would need to do a restore of the original rom to bring them back. Note that Roms should not override the wixam.img and if you have an issue it was probably caused by a bad radio flash. So restoring and then flashing a new rom could potentially fix the issue if your wimax.img got screwed at some point.
[EVO 4G Android Development] MercuryTangent:
The answer on how to restore the RSA keys?

Sent from my Virus Infected Evo using the XDA app.
[EVO 4G Android Development] kashmir28:
Any help for never-rooted EVO with bad 4G MAC address?

At wits end on this one. Never rooted but somehow got the bad 4G MAC address others are suffering from. HTC and Sprint basically told me SOL, get a refurb.

Is it possible to root just to resolve this issue and how should one go about it? Read through this thread and while I'm not a tech newbie, never rooted an Android device before. Thanks.

Would just love to have 4G working on MY EVO again. Any suggestions would greatly be appreciated. Did all updates, hard reset and just about everything else.
[EVO 4G Android Development] hperry:
same thing happened to me. never rooted and then lost 4G. i finally rooted just so that i could check my RSA keys and sure enough, they are gone. i'm back to stock now but i am living without 4g for now.
[EVO 4G Android Development] Travyevo:
As soon as I figure out how to do this, I can test it. I am in 4G territory.
[EVO 4G Android Development] asrebel:
I had already corrected my MAC address issue earlier so my MAC showed correctly. I'm still don't have my 4G back though.

This is where I'm at: http://xdaforums.com/showpost.php?p=7028571&postcount=4072
[EVO 4G Android Development] Geniusdog254:
Interesting. If nothing else, it's best to set your MAC back to normal so you can return it to Sprint and they can't tell you screwed with it.
[EVO 4G Android Development] krosemm:
My Dev MAC matches exactly with my phone's MAC and I'm still not getting 4G.
[EVO 4G Android Development] mpa4712:
If I didn't think my 4g was already working, id try this. I'll be able to test in about 2 hours once I get to the 2 square blocks of town that has 4G :)

For those who want to test if this does anything with the signature, I believe you would want to do a dif on the 'tree' file in /data/misc/wimax before and after doing this.

I would think something very much like this is done to set the MAC in the first place, so I would also think the signature would be done as well.
[EVO 4G Android Development] rocolema:
I re-downloaded the android SDK, applied all updates and I still get invalid command:

c:\EVO4G\tools>fastboot oem wimaxrmac

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

OKAY [ 0.000s]

finished. total time: 0.000s
[EVO 4G Android Development] kpkimmel:
Type adb devices

Then adb remount

Then the fastboot command
[EVO 4G Android Development] Travyevo:
I get the same error.
[EVO 4G Android Development] Geniusdog254:
Thats definitely strange. I'm not sure what the problem could be?
[EVO 4G Android Development] yous1200:
I'm getting the same error:

c:\android-sdk-windows\tools>fastboot oem wimaxrmac

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

OKAY [ 0.007s]

finished. total time: 0.007s
[EVO 4G Android Development] rocolema:
I have one of the google I/O phones. Maybe the bootloader is slightly different.
[EVO 4G Android Development] kpkimmel:
Bootloader is the same
[EVO 4G Android Development] Sid6_7:
Taking a shot in the dark, but if you guys are running win 7, are you guys starting the cmd as an administrator? This usually causes me grief.... :(
[EVO 4G Android Development] Geniusdog254:
I'm running Win7 and not running it as an admin and mine runs fine. Just throwing that out there
[EVO 4G Android Development] Travyevo:
I'm on XP as an admin.

Just wondering if I'm going to have to go to a sprint store. If I have to return this because 4G is perm broke, that will end my root career.
[EVO 4G Android Development] Geniusdog254:
You may have to return it but I'm not sure. I'm looking at the tree files as someone else mentioned but its impossible for me to know it if works or not since I don't live in a 4G area, I just know that my WiMax MAC was changed, which leads me to believe it's broken now.
[EVO 4G Android Development] kpkimmel:
just checked my mac...matches perfectly..if your having trouble here is what to do..

open cmd with admin priv

plug in phone and type adb reboot bootloader

select option for fastboot (fastboot usb) will come up

go back to shell and just type

fastboot oem wimaxrmac

should give you mac address

also, my first wimax flash didn't work either..but i reflashed my wimax update and checked mac and it worked..so try to reflash the wimax update...if you have to update your wimax mac..make sure you update prl and profile...then reboot phone..and it should work for you..
[EVO 4G Android Development] Geniusdog254:
Well aren't you lucky :P Does your 4G work?
[EVO 4G Android Development] Calkulin:
Don't know if it was mentioned in the thread yet but when using fastboot, make sure you have the driver installed in device manager, if not fastboot will not work, even tho adb does. Win 7 does have them but I'm not sure about XP/Vista
[EVO 4G Android Development] kpkimmel:
not sure because i'm in detroit, but my cousin in philly had the exact same problem..we went through those steps together and we got the same results and his starting working fine..so i'm confident it will work...also dl htc sync and it will have drivers you need...
[EVO 4G Android Development] drivendaily:
Just throwing this out there, but unless you rooted it and installed BusyBox or something similar to get you extended commands in the terminal... you won't be able to use "grep". I noticed this when i installed the rooted odex 3.29. It will just say grep not found or something like that.
[EVO 4G Android Development] hperry:
good point. i did have to install busybox after rooting to get the grep command (which is necessary to check for the rsa keys).
[EVO 4G Android Development] dasingleton:
Thanks..worked for me ! whew!!!
[EVO 4G Android Development] gmelchert:
So I heard 4g had been released in sf bay are a few weeks ago and i got excited. I live in the east bay and tried connecting to 4g... I would get "connecting to Sprint" then it would disconnect and start scanning again. I thought it was bad signal but turns out, my mac was broked AND my RSA keys had been s*d*m*z*d.. I'm rooted but can easily unroot.. do you guys think I could go into sprint and tell em my story sans root and get a replacement? I fixed my mac address and did the tree.xml thing but yeah, RSA are gone... what are my optionss
[EVO 4G Android Development] flexte:
i keep getting a no devices found when i adb shell in fastboot. no problem in recovery. any suggestions
[EVO 4G Android Development] david279:
you cant use adb in fastboot. I think the command is fastboot devices.

adb and fastboot are 2 diff things and dont really work together.
[EVO 4G Android Development] david279:
more specific..

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot + recovery + system

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

reboot reboot device normally

reboot-bootloader reboot device into bootloader

options:

-w erase userdata and cache

-s <serial number> specify device serial number

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id
[EVO 4G Android Development] cfrock:
How do you check for your rsa keys?
[EVO 4G Android Development] flexte:
Clearly...but can you tell me how to check my MAC address? The first page says use the commands after putting the phone in fastboot
[EVO 4G Android Development] david279:
Try fastboot oem wimaxrmac and also I think certain versions of the bootloader allow you to use these fastboot commands.
[EVO 4G Android Development] flexte:
fastboot not found. at this point its for learning purposes only because my 4g is working again.
[EVO 4G Android Development] david279:
Do you have the fastboot binary? Are you using mac, linux or windows?
[EVO 4G Android Development] flexte:
don't know that that is so i am assuming NO.
[EVO 4G Android Development] david279:
Well you need to download that to be able to use fastboot. Google it or search for it here.
[EVO 4G Android Development] flexte:
Thanks ill give it a shot later
[EVO 4G Android Development] cyberenz:
You need to download an Engineering version of the bootloader. This is why you're getting this error, because your bootloader does NOT recognize the "oem" command. You need Eng Bootloader Version 0.76.2000 for the Evo. Once you download and flash this Eng Bootloader, it contains extra commands so it will recognize the 'oem' command and others and will NOT give you an ERROR. Of course, you're supposed to know this by osmosis, as nobody I found easily, posted this fact and I went NUTS trying to find out why my bootloader didn't recognize the 'oem' command. I hope this helps.
[EVO 4G Android Development] freeza:
Okay, can someone who's done this before show me where to hex edit to change the MAC? Changing it through fastboot isn't enough and it still creates the xml file in data/misc/wimax with the old MAC.

I got a hold of a working wimax partition with someone else's information but want to permanently change it to mine, thus recreating my partition and just changing the MAC through fastboot doesn't work all the way. Thanks!
[EVO 4G Android Development] nukedukem:
Is it possible to have working 4G, but have someone else's RSA keys? I thought I had escaped this mess because my MAC was correct, and grep returned a BEGIN/END with my RSA command. However, I was reading in the common misconceptions sticky that two phones can have the same keys, but only one can connect to 4G at a time.

Now I'm worried that updating my radios may have given me someone else's keys. Is this possible?
[EVO 4G Android Development] freeza:
It is possible. I have a few wimax backups from friends phones that i have successfully used and connected to 4G with. However, I can't change the MAC address properly with the fastboot command.
[EVO 4G Android Development] nukedukem:
If I understand you correctly, the keys are dependent on MAC address so having working wimax with the correct MAC can only mean that the keys I have are unique to my device and did not get copied from another phone?
[EVO 4G Android Development] freeza:
I'm not entirely sure, I've tried changing the MAC address with the fastboot method, it changes but not all the way. The XML file that gets created in /data/misc/wimax still attaches whatever MAC the partition came with, rather than the one I changed it to via fastboot. On another note, the new MAC does show under hardware, and even assigns itself to ##3282#, weird... also, i've recently come to discover that having the wimax partition of a deactivated phone will not fix 4G either, which really sucks..... I can only imagine it either has to do with one of two possibilities:

-The MAC address needs to be changed 100%. XML file creation needs to match changed MAC address.

-The RSA Keys get created in relation to the MAC address, so changing it 100% will probably render 4G not working.
[EVO 4G Android Development] eaglesw00t:
Question for you guys. I rooted my evo back around release, and installed Fresh, and then once 3.1.0.2 came out, I stopped touching my phone. It was working great in phone mode, so I just left it, and stopped upgrading.

The only problem I have left, is that 4g doesnt work. I went through the steps in the OP here, and my MAC is correct. But when I first bought my phone, I would get 2 bars of 4g at my house, and it was fast. Now, I turn on 4g, and the 3g image on the top of my screen is still there. I never see a 4g emblem or bar graph.

I reflashed the wimax and radios listed here, but that made no change.

How do I determine if the problem is with my phone, or with the 4g service in my area? I read as much as I could, but I am seemingly going in circles, and cant find any definitive answers. I am dropping my DSL service, as I am moving soon, and I want to be able to tether my laptop to my phone at the 2.2Mb/s rate I was getting back at release time.

Thanks for any help, I appreciate it
[EVO 4G Android Development] ViViDboarder:
They may have been messing with towers. Are you in a supported service area? I live just outside DC and I used to get better coverage than I do now but they don't officially support my area yet.
[EVO 4G Android Development] ridleyj329:
anyone get any updates yet on if theres anything that can be done about RSA keys?
[EVO 4G Android Development] Mediocrates:
Please do not try any of these steps while half-asleep! (Bangs head against wall..........)
[EVO 4G Android Development] sensibreed:
After running the above, adb returns.

(Correct Mac Address).tree.xml

sockets

(Generic Mac Address).tree.xml

Is this normal? Should i remove the Generic Mac address .tree.xml?
[EVO 4G Android Development] mhmobile:
Not sure what to make of this... I leave 4G scanning on because it appears to be slowly rolling out in OC California and there are several areas where I pick up a signal and connect successfully (speed tested at 10.85 MB down). I had recently flashed a Ava rom and found that my EVO no longer found 4G in the areas it had before. I flashed back to Fresh and everything went back to normal.

I wanted to run Ava's ROM again and the posts over there referred me to here to resolve the 4G issue. My MAC is not jacked up but when I check the rsa status, I get <rsa> blank, next line </rsa>. I used a term emulator on my device as well as adb shell on my PC.

From what I've read here, based on the rsa error, I shouldn't be getting 4G at all.

Any ideas? Also, I used AR 1.8 and do have a wimax.img (not sure if it's pre rsa loss), cant recall how restore the image. Does it have to be renamed?

Thanks for any insight on this.
[EVO 4G Android Development] sensibreed:
I'm getting the same thing as you.

# grep RSA /dev/mtd/mtd0

grep RSA /dev/mtd/mtd0

<rsa>

</rsa>

#

Have you tried:

adb shell

ls /data/misc/wimax/

to see what is displayed for your mac address?
[EVO 4G Android Development] mhmobile:
Just checked, I'm getting the correct mac address. Are you able to connect to 4G?
[EVO 4G Android Development] sensibreed:
it finds networks but it just scans, authenticating, and then back to scanning.
[EVO 4G Android Development] :
The Wimax download link in the OP's first post isn't working.
[EVO 4G Android Development] mhmobile:
Just checked to be sure, I was able to connect to a nearby 4G network with the rsa errors described above. anyone know why this might be?

Thanks
[EVO 4G Android Development] erack3:
Same here. rsa keys are gone too and when im still able to connect to 4G (rarely).
[EVO 4G Android Development] dinkoh:
Same here. I'm wondering what's up with this.
[EVO 4G Android Development] sensibreed:
So some users are able to still connect to 4g wimax with rsa errors? Does anyone have a clear explanation for what's going on other than, "you are hosed?"
[EVO 4G Android Development] mhmobile:
I called Sprint support just to see what they'd say. Basically told them what the forum says I should see as responses and what I'm seeing. I also told them that I can connect to 4G when available and have gotten almost 11MB down when 3 bars were lit. Tech support conferred with others and came back to say that if you can connect to 4G then nothing is wrong with your phone and they didn't understand why I was exercizing these commands.

Guess they don't know or didn't want to say. So apparenty, tech support is like a box of chocolates, you never know what your gonna get / F-Gump...
[EVO 4G Android Development] sensibreed:
You might be better off talking to someone from HTC.
[EVO 4G Android Development] DaddieDiesel:
So I updated to the newest radio,wimax. And now getting the dreaded scanning available 4g but not connecting. Checked wimax and have the 00:16:08:00:24:05 address.

Checked my wimax address on my EVO and box and both end in letters.

Have tried all instructions from Op and still keep getting the wrong wimax address. Any ideas?
[EVO 4G Android Development] m4f1050:
Rough way of backing up your CERTIFICATE & RSA key.

adb shell

su

sed -n '/BEGIN CERTIFICATE/,$p' /dev/mtd/mtd0 > /sdcard/rsa.key

exit

exit

adb pull /sdcard/rsa.key rsa.key

Then edit the file (I used a Hex editor) and deleted everything after -----END RSA PRIVATE KEY-----

With recover-RA-v1.8.0 you can do a nandroid backup which will include the wimax.img...
[EVO 4G Android Development] dynamicpda:
Very useful, thanks!
[EVO 4G Android Development] HAXSUNG GAL:
Hi Everyone,

I like many did go with radio/wifi updates and lost the use of these items....I used this method and have the correct MAC address on my phone but even after following these methods my MAC address appears incorectly on my Evo and worse I still cannot use WiFi or Radio. Oddly enough I get texts, emails, phone calls, can download market apps perfectly etc . I don't live in a 4G area and thus assume that I probably cannot access 4G either if I did....any advice?
[EVO 4G Android Development] erack3:
I've been told that following works:

Just tell them to transfer you to to someone who is more qualified to assist you/answer your question(s).
[EVO 4G Android Development] drcz_92:
Anyway to do this without a computer,.. Like on my phone..

I did it on a computer but I got an error info.. And didn't have time to deal with it..,

So the question is if I can check if my wimax Mac number is correct and is not change it directly on the phone .

Help please..
[EVO 4G Android Development] m4f1050:
Yeah, use flash_image recovery wimax.img (from an ANON_RA nandroid backup)

If you didn't backup then you are SOL... Sorry.
[EVO 4G Android Development] drcz_92:
Really.? I don't have it.

Is there a way like check the Mac on the phone.. And see and change it?
[EVO 4G Android Development] m4f1050:
No, only how it's described here.

Haven't seen a way to edit wimax.img (on a hex editor) I tried but it didn't change.
[EVO 4G Android Development] drcz_92:
Ooh I u derstand. But why when I try to see if I have the correct wimax Mac it comes a in for error. .. It appear where the Mac number is suposted to be...? And I tried to cange it like it said here but the same error came up
[EVO 4G Android Development] m4f1050:
you need mtd-eng or something like that on the phone for the OEM commands... check previous posts for info / instructions on what to do.
[EVO 4G Android Development] drcz_92:
Thanks... For ur help
[EVO 4G Android Development] mhmobile:
Has anyone been able to figure out why some people (like me) are still able to connect to 4G even though their RSA keys are gone? I posted the same question in another thread, would really like to know - thanks
[EVO 4G Android Development] freeza:
That's very interesting indeed.
[EVO 4G Android Development] m4f1050:
They are probably not gone. I just backup the wimax.img using ANON_RA recovery and keep a copy in the event you do loose 4G.
[EVO 4G Android Development] mhmobile:
Well, if they're not gone, they're not in the right subdirectory (dev/mtd). I have no files there. I happened to do several Wimax back ups with RA but don't know if the RSA keys were actually saved. Can the file be viewed (and understood) with a hex editor? - thanks!
[EVO 4G Android Development] m4f1050:
Yes, you should be able to view the wimax.img file with a HEX Editor. I use XVI32, I do a search of BEGIN RSA and it's there.

Have you tried the /dev/block folder? Not sure about the folders. Check the .IMG files though, do a search for plain text "BEGIN RSA" (without the quotes)
[EVO 4G Android Development] mhmobile:
Thanks for your response. I found RSA information in the img file. Just not sure if I should load the image back to my phone. I had made several wimax back ups and one was prior to when I thought I had lost my keys. All the img files I have are exactly the same. I did look in the /dev/block folder but nothing was there either. A friend who has an unroted EVO told me that his mtd0 file showed 0 bytes but there were multiple files in his /dev/mtd folder.

Guess I should just be happy I can still connect to 4G but this has really got me wondering if I'm connecting everywhere it's available and at the highest speed. - thanks again
[EVO 4G Android Development] m4f1050:
I wouldn't worry about it, you have the keys, you have the MAC address, you're good to go. You could always flash the latest Sprint update to the phone and hopefully it recover those missing files you are worried about..
[EVO 4G Android Development] strauss0829:
hey all I recently got rooted and have hardware 0003 and runnin ultimate droid 2.1.0 i know this is a ASOP rom and 4g wont work ...but when I used other roms which 4g is said to work in I would turn on 4g and it just scanns and disconnects befor the 4g even fully kicks on ...so if I flash back to a normal sense rom or a 4g capable rom and do this fix will it work ...Plz leme know asap cause if it will I will flash back
[EVO 4G Android Development] m4f1050:
Did you root the phone using unrevoked3? What version and from what date? There is rumors that unrevoked3 used to break wimax... I never had this issue so I can't confirm this.
[EVO 4G Android Development] strauss0829:
it was with 3.2.1 i think and hboot 2.0.2 root method like a boss edition
[EVO 4G Android Development] toddlmr:
That is what I did and all it does is scan but not connect.