Ok, so I have been reading around regarding the 4G issues and noticing that mine is most likely hosed.
When doing a "grep RSA /dev/mtd/mtd0" I get the following output:
$ 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-----#
And that is all. Now I am pretty sure I am missing my RSA keys. My question is that I have a broken EVO I bought from a friend that is in bad shape, but still stock. Am I able to copy over that phones certs since its not activated to replace mine? Or am I pretty much still SOL? Thanks in advanced.
Sent from my PC36100 using XDA App
Bump
Sent from my PC36100 using XDA App
Looks like you have your keys. If you didn't, you wouldn't have the private part there at the bottom. It won't actually show you they keys, and you need a hex editor to move them, but that is something you don't need to worry about. Lucky you.
Check your /data/misc/wimax folder for a file that starts with a bunch of numbers.
Those numbers should be your mac address. If it starts with 0016, you have a problem, let me know.
Otherwise, delete that file with root explorer or adb if you are fancy.
Try your 4g again.
If that file was with the 0016, you need to find a way to change your mac address for the 4g radio (not that tough, but I don't know the command.) Find the thread for fixing a messed up mac address.
good luck
-Roger
I have no actual way of testing it since I am not in a 4G area. I will be passing a 4G area and will try there. The reason I asked was because I had done the 4G radio update and saw how many problems people were having and wanted to check my symptoms. I was just alarmed when I thought there was another key missing from that output and saw no hash. Im guessing I have everything as needed then? In any case, I did update RA recovery and did a nandroid. I will flash back to a sprint image tomorrow and give it a try.
Sent from my PC36100 using XDA App
roghaj said:
Looks like you have your keys. If you didn't, you wouldn't have the private part there at the bottom. It won't actually show you they keys, and you need a hex editor to move them, but that is something you don't need to worry about. Lucky you.
Check your /data/misc/wimax folder for a file that starts with a bunch of numbers.
Those numbers should be your mac address. If it starts with 0016, you have a problem, let me know.
Otherwise, delete that file with root explorer or adb if you are fancy.
Try your 4g again.
If that file was with the 0016, you need to find a way to change your mac address for the 4g radio (not that tough, but I don't know the command.) Find the thread for fixing a messed up mac address.
good luck
-Roger
Click to expand...
Click to collapse
r
I actually have the 0016 xml thing, is that the only way to fix it?
edit: I reflashed my entire phone using this guide. http://forum.xda-developers.com/showthread.php?t=715915 Still not working, and i still have 0016 xml file =/
Related
Long time reader, first time poster...
Prologue,
I appreciate all the great info on the site and have visited the same threads so many times, my google chrome shortcut windows are all xda pages
My first evo was purchased the second day available to public and i initially took the plunge into the world of dev and rooting because I wanted free wifi tethering.... let me say... its a slippery slope
Anyway, I cooked my wimax keys and oemMAC a loooong time ago on my evo.
Tried everything, fastboot mac fix, stock rom with su_radio, HTC SPRINT RUU, blah blah blah.
I did fix the turn on/searching/failed/turn off/turn on loop and corrected my MAC but RSA keys were toast
Followed ALL threads to no avail... I do not have access to another EVO so I finally bit the bullet and took it to the sprint store and got a free replacement (took 4 days).
SO, here I am with a new (refurb) evo that is 100% stock and working. I did a logcat to check out what was going on with a working 4g and when I turned off the radio, I keep getting this:
( 102): <DC> Try to establish a connection to DC server.
E/Wimax ( 102): <DC CONNECT> IO error: msg='/127.0.0.1:7771 - Connection refu
sed'
It just repeats, and repeats and repeats... Even though the 4gradio is off. The message didnt show up in the logcat until I turned the 4g radio on and then off.
Yes, I know... it has been discussed before but the "problem" was being reported by members with non-stock phones...
OFF TOPIC, but still seeking guidance:
Also, I want to get back on the root-train and want to make sure I dont have the 4g rsa key problems. Where do I start to make sure I can backup my wimax part?
This has been discussed and the verdict is: This is normal behavior, maybe not wanted, but normal on these phones; and does not negatively impact battery life. Carry on.
sfef84 said:
OFF TOPIC, but still seeking guidance:
Also, I want to get back on the root-train and want to make sure I dont have the 4g rsa key problems. Where do I start to make sure I can backup my wimax part?
Click to expand...
Click to collapse
Amon_RA 1.8.0 Nandroid backs up your WIMAX partition
^that being said... maybe you could make this a sticky:
IF YOUR RSA KEYS ARE GONE... GET A NEW PHONE, fixing MAC does nothing...
(assuming you dont have access to another Evo)
....would have saved myself about 2 weeks of screwing around
mgriffin13 said:
Amon_RA 1.8.0 Nandroid backs up your WIMAX partition
Click to expand...
Click to collapse
I have read about the Amon_RA method and it doesn't say anything specifically about the wimax backup partition. Do you have to do anything special for the wimax backup or is it a "bonus" feature?
sfef84 said:
I have read about the Amon_RA method and it doesn't say anything specifically about the wimax backup partition. Do you have to do anything special for the wimax backup or is it a "bonus" feature?
Click to expand...
Click to collapse
It does it automatically, but just beware if you ever have to get a replacement phone and want to restore your backup. You will have to delete the Wimax.img and edit the md5 file or it will overwrite your brand new partition with one from your old phone.
long time reader doesn't already know this??
--edit--
sfef84 said:
^that being said... maybe you could make this a sticky:
IF YOUR RSA KEYS ARE GONE... GET A NEW PHONE, fixing MAC does nothing...
(assuming you dont have access to another Evo)
....would have saved myself about 2 weeks of screwing around
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=8357508&postcount=355
sfef84 said:
^that being said... maybe you could make this a sticky:
IF YOUR RSA KEYS ARE GONE... GET A NEW PHONE, fixing MAC does nothing...
(assuming you dont have access to another Evo)
....would have saved myself about 2 weeks of screwing around
Click to expand...
Click to collapse
is there anyway to see if you still have your rsa keys if you have NEVER connected to wimax? i do not live in a 4g area but if i visit one, or if it finally comes to me, i would like it to work. also, if i ever find out my wimax actually doesnt work, could i just take it in and get it replaced assuming it unroot properly?
Go into shell and type
grep RSA /dev/mtd/mtd0
This is what mine said with broken keys:
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
Check your keys, if they are there and your MAC matches, you should be good to go.
hockey4life0099 said:
is there anyway to see if you still have your rsa keys if you have NEVER connected to wimax? i do not live in a 4g area but if i visit one, or if it finally comes to me, i would like it to work. also, if i ever find out my wimax actually doesnt work, could i just take it in and get it replaced assuming it unroot properly?
Click to expand...
Click to collapse
Run the command like the op posted. You should see something like -----BEGIN RSA KEY----- or something similar if you still have your keys.
I also found another thread around here which has a command that you can use to backup your wimax partition. You can do that and save it in a safe place (or nandroid using anon ra recovery). That partition contains your keys as well. I backed it up, opened it in a hex editor and saw those keys in there.
Sorry I can't post the link, the xda app doesn't let me save draft so I couldn't search for that other thread while typing this. The title of that head says "fix your broken 4g here" or something of that sort.
Sent from my Evo using XDA App
hey all anybody out there is able to connect to ad-hoc networks?
its the only thing that keeps me from using android cuz i use my phone as a link to the internet
I tried some stuff posted in other places but it didn't work
thx in advance
So you want to tether the data connection on your phone to your laptop, or the other way around...?
XDAndroid wifi tethering app - that'll allow you to tether your data cxn on your phone to a wifi enabled PC.
If you want the other way around... bleck, not sure.
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
husam666 said:
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
Click to expand...
Click to collapse
XDAndroid is already rooted... Comes that way.
You can try to apply the patch, no clue. Never used it.
So I assume the laptop has a wired internet connection, and it's being shared as an ad hoc connection thru the laptop?
I'd say two choices - try to fiddle with the patch, or just spend $30 and get an actual router
WTF!!!
Definitely go for the router, mate.
You are trying to solve a problem possibly creating a new one, but a hundred times bigger.
tried to mess with my system image by mounting it and replacing the files no luck at all (you will get error when starting wifi);
I should go for a faster internet connection such as wimax that comes with a router
thx for support guys
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from another cell phone (a Nokia--so no infrastructure available).
Thanks!
matt300 said:
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from my other cell phone.
Thanks!
Click to expand...
Click to collapse
Seems Android doesn't support ad-hoc out of the box, which it seems you already know.
I would much prefer to use a real AP, as opposed to anything adhoc. But that's just me.... What is your other phone? That isn't capable of putting up an actual AP?
lol, just read your sig. If the other phone is the Tytn, I feel your pain.
Actually, I still have the Tytn (still works!), but I'm using a Nokia E71 as my main phone at the moment. Too much of a pain to pop the sim card out when I want to use Android and the Nokia's Joikuspot (equivalent to WMWifi Router) is ad-hoc only.
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
Click to expand...
Click to collapse
If you get the time, could you copy the relevant lines out of your froyo.user.conf file?
I've tried two versions of the wpa supplicant I found, wpa_adhoc-signed from http://forum.xda-developers.com/showpost.php?p=7674767 and wpa6_adhoc-signed from another thread.
My guess is I was editing the froyo.user.conf incorrectly.
If there is some way to fix ad-hoc permanently, I wouldn't mind integrating it into the build. If stine is cool with it, it'll get baked into the system image. If he's not... I'll just include it with the bundle .
Let us know if you figure it out.
is it possible (in general) to put it in Infrastructure mode?
AkumaX said:
is it possible (in general) to put it in Infrastructure mode?
Click to expand...
Click to collapse
Not when using WMwifirouter (Windows Mobile) or Joikuspot (Symbian) as the access point. I don't keep my sim card in the Rhodium full time but it's nice to have internet on it when I need it.
Cool, Working!!
OK, I finally got it right. Here's what I did:
Downloaded the wpa_adhoc-signed.zip file from this post: http://forum.xda-developers.com/showpost.php?p=7674767
Copied just the wpa_supplicant file to the root of the sdcard (it's inside of the wpa_adhoc-signed/system/bin folder of that zip file)
Using Notepad++, inserted the following line into the froyo.user.conf file:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant see this post: http://forum.xda-developers.com/showpost.php?p=10984380&postcount=1
Here's how the last section of my froyo.user.conf file looks:
# custom shell commands, these commands run last
custom_shells{
chmod 777 /etc/dbus.conf
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
#echo 2 > /sys/devices/platform/msm_hsusb/usb_function_switch
rm -f /sdcard/fsck*.rec
modprobe ipv6
modprobe xt_owner
modprobe ipt_REJECT
#echo "Hello!!!" # example
#echo "You can create your own commands here" # example
}
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
matt300 said:
OK, I finally got it right. Here's what I did:
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
Click to expand...
Click to collapse
Cool! Looks like this will have to be shoehorned into the system - so it'll have to be something stine accepts. Thanks!
this is what i added to my config file:
Code:
--bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
i had the wpa_supplicant file in the root of my sdcard
and yeah, the drivers also fixed WEP
husam666 said:
and yeah, the drivers also fixed WEP
Click to expand...
Click to collapse
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
arrrghhh said:
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
Click to expand...
Click to collapse
lol, i tried to tell you more than once, in different threads, i guess you were busy
husam666 said:
lol, i tried to tell you more than once, in different threads, i guess you were busy
Click to expand...
Click to collapse
Hum... I guess I vaguely remember the adhoc conversations, but I don't recall the WEP ones. At least I didn't realize that they went hand-in-hand...
We probably did talk about it. I've lost a lot of things in the ether... Oh well, I'll try not to forget it next time we're scrambling to do a release .
First off my 4G turns on, connects, obtains an IP, and will send and receive data just fine. I have not lost my RSA key, but I have a different oddity in that I can SEE the key when I run the instructions on checking it.
All threads have said I should see this after the grep:
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-----
And that nothing should be between the two lines. Yet, I have a fairly long string of random characters and symbols between the BEGIN and END lines. Anyone else seen this?
No, but there's nothing really wrong with that. It might be that your version of busybox is just parsing not only lines with RSA in it, but also files that have RSA in the title.
If you want to see that this is normal (and some idiots who don't know how to mark their pastes as private, and have now given away their RSA keys for anything from their SSH access to WiMax to website certificates) check this out:
http://v.gd/U4GFnw
drmacinyasha said:
No, but there's nothing really wrong with that. It might be that your version of busybox is just parsing not only lines with RSA in it, but also files that have RSA in the title.
If you want to see that this is normal (and some idiots who don't know how to mark their pastes as private, and have now given away their RSA keys for anything from their SSH access to WiMax to website certificates) check this out:
http://v.gd/U4GFnw
Click to expand...
Click to collapse
Gotta love it.. see it everyday.. no need to hack when you have those willing to give it away. Of course... they didn't lose it themselves via the stupidity train... its always those darn hackers.
devnulldroid said:
Gotta love it.. see it everyday.. no need to hack when you have those willing to give it away. Of course... they didn't lose it themselves via the stupidity train... its always those darn hackers.
Click to expand...
Click to collapse
The hackers forced them to post it online... or is that ninjas?
Anyway, thank you for the replies on this.
I recently discovered that my RSA Keys are gone (used the app from the Market for confirmation). A little while ago, I lost my Evo, I got a replacement, and the lost unit was found and returned to me later. It supposedly is blocked from going back on the network, so I'm not going to try and put it back on my account, but I checked last night and 4G connected w/out a problem. So I'm wondering if I could Amon-Ra Nandroid the phone w/the keys, and restore that to the new phone w/out the keys? Does it seem at all plausible, or is there a simpler way to transfer the keys from one unit to the other? I've been reading a lot of the 4G threads, and it seems like it is a possibility, I'm just unsure as to how exactly I should proceed w/out horking things up more.
Is it a possibility to make backups of the keys as per step 6a of this thread, edit the MAC and transfer them over? TIA for any guidance.
take the wimax.img from the phone with the good keys (bad esn) and put it on the sdcard of the phone with the bad keys (good esn) and then in the good phone open a terminal emulator and type su then type flash_image wimax /sdcard/wimax.img
feel free to make a backup of the bad wimax partition first just to be safe
A lot of what I read indicates that the keys are specific to the MAC address. Is this correct?
whats77inaname said:
A lot of what I read indicates that the keys are specific to the MAC address. Is this correct?
Click to expand...
Click to collapse
Ok, I can't say one way or the other if you can trade out your RSA keys between phones, but I wanted to tell you that sprint can unblock or unrestrict your old phone if you request them to. I lost my phone a few months ago and had to make a claim, I went through the whole process from the police report to getting my new replacement. The phone was blocked from the network a few weeks after I got the new phone - I found the old one, I called sprint and the police to let them know I had found the phone. Sprint asked me if I wanted the lock taken off it and now its the phone my sister has...works just fine, so if they tell you they cant remove the lock - tell the Rep you want to speak to a manager... now, there MAY be a limit on the days for the phone to be found before the lock becomes permanent i.e if the lock isnt lifted in 30 days or 60 days it becomes perm... but i found my phone in 3 weeks...
My understanding is you can't use another phones keys. I don't have any experience first hand, but there was a thread about this a couple days ago and everyone said the keys are phone specific and there is no way to switch.
+1
I lost my keys and researched for days. Wimax keys are non-transferable :/
Bamba1260 said:
My understanding is you can't use another phones keys. I don't have any experience first hand, but there was a thread about this a couple days ago and everyone said the keys are phone specific and there is no way to switch.
Click to expand...
Click to collapse
Well, I did manage to use the aforementioned method from post #2 and got the key transferred. The WiMAX RSA Key Checker now says that the RSA key is present, so that's good. I've been researching this issue for the past couples days, there's a lot of info to process.
Edit: In the interim, I checked out this thread. I ran "fastboot oem wimaxrmac" and it didn't error out, it shows the IP address from the donor phone. It appears that the issue for everyone is that yes, the key is specific to the MAC, so the fact that the recipient phone is showing both MAC and key from the donor makes me think this might work after all.
Well, I can confirm that this method works. I am able to connect and sustain connection on 4G.
The RSA keys, mac address, username and password are all stored in the wimax image. So transferring it from one phone to another should work.
Good job, I think a lot of people will be interested in hearing about that
So a little off topic. I would like to use my laptops wimax proset 6250 to connect as its antenna seems to pickup better than the evo. Anyway to extract the keys and password so I can try to set them in as replacements for the ones in my laptop?
EVO Sent
is your proset rooted?
Sweet, I'm gonna sell a copy of my wimax image to someone who needs some RSA keys lol, I don't use 4G anyway haha
TL;DR - There IS a WiMAX RSA key somewhere on our device and it CAN be lost. It would be great if we could track it down and figure out how to back it up.
Here's the story. I had to send my E4GT in to Samsung for a new logic board, and about a week after I got it back, WiMAX stopped working. I discovered that my WiMAX MAC address had reset to 00:00:00:00:00:00, and all the other settings (MRU, REALM, etc) had been cleared, as well. I was able to reprogram the MAC address to the one on the sticker, and the other settings to match my NS4G. I still couldn't connect, so I did a ##786# reset, and re-activated; still no go. I was getting desperate, so I called Sprint. The support agent didn't know jack about WiMAX, but she updated my profile, still no-go. I called Samsung, too, but they claimed there was not way the repair process could have affected my WiMAX. I have used the WimaxLineTest application to verify that Authentication fails, so I have to believe that there is an authentication RSA key somewhere in flash, which was lost when my WiMAX settings got reset.
I'm not looking for a solution to my problem, as my local Sprint store is getting me a replacement. I do think that it would benefit the community, though, if we could figure out where the RSA key is stored so we can find a way to back it up. Thoughts?