Rsa help - EVO 4G Q&A, Help & Troubleshooting

Looking for a way to get an rsa key other then taking it off another phone. Mine has gotten wiped somehow and my backup copy has gone mia. If someone could help me out with a solution that would be great. Sprint has a deductable that I'm trying to avoid.

There's no way to get your RSA keys back if you don't have a backup. You can't just take it from another phone, they're specific to your device.
If you have a nandroid backup from before you lost them, you may be in luck. If you're using Amon Ra, you should have chosen to backup wimax at some point. I believe CWM backs up wimax with each backup. You can open up your nandroid backup and see if you have a wimax.img file present. You can then restore that backup or manually flash the wimax.img.
Are you 100% positive that you lost them? It's kinda hard to do unless you specifically chose to format your wimax partition.
If you don't have a backup (I'm going to emphasize again the importance of making a backup) and your RSA keys are gone, you're pretty much SOL. You broke it, you should have to buy it.
Sent from my Evo + MIUI using Tapatalk!

I made a backup a while ago with cwm but I think its gone, I read something about using hex editor and getting a clone file but I was looking for an easier way out. So far I've tried to go back to an original Rom and flash a few things but so far no good. I'm hoping this hex editor guide works.
Sent from my PC36100 using Tapatalk

Sorry but you're out of luck. Your 4G keys are tied to your phones serial number. The keys are nontransferable. New phone time for you.
Sent from my PC36100 using Tapatalk

nattiboy2326 said:
I made a backup a while ago with cwm but I think its gone, I read something about using hex editor and getting a clone file but I was looking for an easier way out. So far I've tried to go back to an original Rom and flash a few things but so far no good. I'm hoping this hex editor guide works.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
You are way up the creek and no paddle my friend. The keys are tied to your serial number [like plainjane already said] so you're just out of luck. Check your pc / cwm folder. if its in the folder you can put in in another folder then flash it.

Related

Restore RSA Keys from backup

So here goes. I lost my RSA keys while flashing to a new rom and updating my radio, wimax, pri, etc. I didn't use the newest version of Clockwork, but instead 2.5.0.01 or something similar. I tried to update beforehand with Rom Manager, but it errored a few times. I did however backup my RSA keys to a text file using this method http://forum.xda-developers.com/showthread.php?t=887900
How can I restore them? I've searched and searched and read and searched and read. Tons of information on backing them up, ZERO information on using that backup that was said to be so important.
From what I understand, I should've backed up my wimax.img as well, but I don't think my old version of clockwork did that. Can that be replaced? Do the RSA keys just get added into the wimax.img somehow?
Any help would be greatly appreciated... especially since this is for a friends Evo, not mine!
jirafabo said:
So here goes. I lost my RSA keys while flashing to a new rom and updating my radio, wimax, pri, etc. I didn't use the newest version of Clockwork, but instead 2.5.0.01 or something similar. I tried to update beforehand with Rom Manager, but it errored a few times. I did however backup my RSA keys to a text file using this method http://forum.xda-developers.com/showthread.php?t=887900
How can I restore them? I've searched and searched and read and searched and read. Tons of information on backing them up, ZERO information on using that backup that was said to be so important.
From what I understand, I should've backed up my wimax.img as well, but I don't think my old version of clockwork did that. Can that be replaced? Do the RSA keys just get added into the wimax.img somehow?
Any help would be greatly appreciated... especially since this is for a friends Evo, not mine!
Click to expand...
Click to collapse
I still don't understand why anyone would backup RSA Keys, use your own brains...
If you were wanting to test the WiMax feature for Cyanogen Mod ROM, I think you would backup your RSA Keys in case a trouble or problem occurs and it seems like most of the new players here on the EVO 4g phones are backing up their RSA Keys for no reason whatsoever... *Hence I have not backup my RSA Keys or done anything yet, and I still have a good phone thank god.
Ouch, maybe. I hope your issue gets resolved someway somehow, good luck, all I can say for you. ;/
alekosy said:
I still don't understand why anyone would backup RSA Keys, use your own brains...
If you were wanting to test the WiMax feature for Cyanogen Mod ROM, I think you would backup your RSA Keys in case a trouble or problem occurs and it seems like most of the new players here on the EVO 4g phones are backing up their RSA Keys for no reason whatsoever... *Hence I have not backup my RSA Keys or done anything yet, and I still have a good phone thank god.
Ouch, maybe. I hope your issue gets resolved someway somehow, good luck, all I can say for you. ;/
Click to expand...
Click to collapse
I backed up my RSA keys because thats what i was told to do. Funny that on that entire RSA page it didn't say a word about backing up your wimax.img. Not to mention the OP has no clue how to restore the backups. Pretty much gave me a false sense of security. But I understand it's at my own risk.
jirafabo said:
I backed up my RSA keys because thats what i was told to do. Funny that on that entire RSA page it didn't say a word about backing up your wimax.img. Not to mention the OP has no clue how to restore the backups. Pretty much gave me a false sense of security. But I understand it's at my own risk.
Click to expand...
Click to collapse
+1 for that thought, most players of the EVO 4g playing around with the WiMax or RSA Keys should be extra careful.
alekosy said:
+1 for that thought, most players of the EVO 4g playing around with the WiMax or RSA Keys should be extra careful.
Click to expand...
Click to collapse
Problem is, all I did was update his root with unrevoked3, wipe, flash a new rom, and update via the all in one radio/wimax/pri zip. Next thing I know 4g was gone and my rsa didn't check out correctly via adb. Been rooting/flashing evo's and epic's since day one and now all of a sudden we have this new problem? where was that problem before? i dont get it.
Why would anyone want to do a backup? To have it just incase something happens.
Too many people have lost their RSA keys from flashing. Why would you not want to have a backup? Once you lose your RSA keys, the only way (short of actually restoring the backup you made which no one has any idea how to do) is to return it to Sprint for a new phone.
And yes. I do agree it is pretty dumb that there is no restore method for the RSA backup.
So basically those RSA keys are useless?
Unrevoked has had a reputation for wiping 4g since the beginning. Did you ever do a backup with amon ra? If so you can use the wimax.img from that to restore the entire partition.
Sent from my PC36100 using XDA App
xHausx said:
Unrevoked has had a reputation for wiping 4g since the beginning. Did you ever do a backup with amon ra? If so you can use the wimax.img from that to restore the entire partition.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Never did an amon ra backup. Only a clockwork, and it was the older version of clockwork. The wimax.img would be it's own item inside the nandroid backup folder correct? It's not there.
Now, I know the RSA keys are matched with each phone, but how bout the WiMax image? Can I use another WiMax.img and just replace with the correct RSA keys?
jirafabo said:
Never did an amon ra backup. Only a clockwork, and it was the older version of clockwork. The wimax.img would be it's own item inside the nandroid backup folder correct? It's not there.
Now, I know the RSA keys are matched with each phone, but how bout the WiMax image? Can I use another WiMax.img and just replace with the correct RSA keys?
Click to expand...
Click to collapse
I'm pretty sure there is much more to 4g then just the keys. You'll need your own certificates and everything. Toast our shinzul would be the ones to ask though, I'm not that familiar with the internal workings of 4g.
Sent from my PC36100 using XDA App
xHausx said:
I'm pretty sure there is much more to 4g then just the keys. You'll need your own certificates and everything. Toast our shinzul would be the ones to ask though, I'm not that familiar with the internal workings of 4g.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Kinda what I was afraid of. Not sure why people are pushing the backup of RSA keys if they're useless on their own. It's the wimax.img that is needed.
I'd like to complain and point fingers but I understand it's at my own risk.

nandroid restore to new phone without losing rsa keys?

if I get a new phone hardware and I do a nandroid restore using clockwork mod from my old phone I shouldn't lose rsa keys because clockwork doesn't touch these, correct?
I dont think it does but you can check your nandroid file for a wimax.img
You should not restore a Nandroid between phones for a number of reasons, including the fact that some software's license binds it to a phone's serial number.
Just use Titanium Backup to restore apps and their data, and manually restore settings. Don't Nandroid between phones.
Would you trust an image of one windows system restored on another system - image of a dell on a hp? If the chipset is similar, it may work, but you will likely run into weird issues. Same thing here.
Set up from scratch is best. Backup along the way so you have some thing to fall back on when your tweaking fails. TB is very useful in this case.
If you do restore a backup from your old device, let us know how well your 4g works..
Don't listen to these people. I've done it and it works fine. Just make sure you remove the wimax.img before. And you'll have to change the htc folder inside of the nandroid to match the new phones serial.
I made the mistake of not removing the wimax.img. am now stuck using a friends
freeza, until they're comfortable with the technology, they really shouldn't nandroid between phones.
creyc, there's a lot of reasons you shouldn't flash nandroids between phones and until you understand and feel comfortable with what freeza said, just don't do it. If you lose those rsa keys you won't get them back. I highly suggest backing them up before you make an attempt at flashing nandroids between phones. There's guides posted that'll help you do that.
If it were me, I would backup the wimax partition from the new phone. I would search how to do that, and then doit.
That would allow a complete nandroid restore including wimax from the old phone-to the new, then a simple #flash wimax /sdcard/newsavedwimax (on the new phone)
Just saying..
freeza said:
Don't listen to these people. I've done it and it works fine. Just make sure you remove the wimax.img before. And you'll have to change the htc folder inside of the nandroid to match the new phones serial.
I made the mistake of not removing the wimax.img. am now stuck using a friends
Click to expand...
Click to collapse
I don't agree with this. There's other settings besides those in wimax.img that may cause conflicts. The kernel is part of the backup too, and depending on the level of tweaking, your new device may not support the settings that worked fine in the old phone. Finally, can you say with utmost certainty there no account related parameters (meid, etc) are stored in the backup?
gpz1100 said:
I don't agree with this. There's other settings besides those in wimax.img that may cause conflicts. The kernel is part of the backup too, and depending on the level of tweaking, your new device may not support the settings that worked fine in the old phone. Finally, can you say with utmost certainty there no account related parameters (meid, etc) are stored in the backup?
Click to expand...
Click to collapse
If you are overclocking, you may want to remove SetCPU before the backup or even after through ADB, other than that, it is completely safe. I've been running on a nandroid from a previous backup since September, with updates to the software obviously, but essentially the same. I didn't feel like starting over, and I had over 200 apps that I would have had to redownload. Not to mention all the settings, tweaks, etc. I gave it a try and it worked out just fine.
I think the only thing besides the wimax partition you have to worry about, is the PRL/profile update. It will no longer work, because those contain the previous MEID/ESN in /data/data/ in a text file. A simple edit would fix it though, or even removing that text file will cause Android to create a new one upon reboot. Other than that, everything works fine. ESN/MEID information are contained somewhere in the radio and is completely different from any of the partitions that nandroid backs up/restores.
Good to know. I'll keep that in mind if I ever have the phone swapped. I may have 10-20 apps on here at best, so setting up from scratch isn't that big of a deal. Still a pain none the less.
Coming from a windows platform, at the end of the day, it's usually better to start over from scratch than to migrate an existing installation onto a new system... From what you describe, that isn't entirely applicable here though.
gpz1100 said:
Good to know. I'll keep that in mind if I ever have the phone swapped. I may have 10-20 apps on here at best, so setting up from scratch isn't that big of a deal. Still a pain none the less.
Coming from a windows platform, at the end of the day, it's usually better to start over from scratch than to migrate an existing installation onto a new system... From what you describe, that isn't entirely applicable here though.
Click to expand...
Click to collapse
Yeah, for the most part I agree. But since Android phones are so simple in comparison to Windows and its registry, I figured "Why not?"
For the most part all you're doing is copying what's in /data to make your phone the way it was before anyway.
Since most, if not all of /system remains unchanged by phone specifics, you could really extract your system.img, make a "ROM" out of it, and have everything you had before, minus settings/etc.
/data is where things get interesting and is comparable to the Windows Registry. However, /data is so small in comparison, that most of the time, it's not a big deal to poke around in there.
Swype FC ring any bells? Why? Since the 3.70 adds Swype and its LIB into /system/lib instead of /data/data/, you get two instances of Swype's LIB, assuming you're installing the beta alongside your already included Swype. This leads to FC. All one would have to do is remove the lib in /system/lib, possibly Swype in /system/app to get their beta Swype working again.
Anyway, if anything were to not function correctly from restoring a nandroid from a different phone, all it would take is a look in /data/data, find the troublesome program, poke around in its folder, possibly clear its cache/cache folder, and maybe edit a text file inside of /data/data and you'd be fine.
Never restore from an old phone two a new phone you may brick it
Sent from my PC36100 using XDA App
So, say hypothetically...one didn't read this thread before he nandroid restored to his replacement EVO today. Well, at first it failed to restore the boot so he went in and individually restored each option besides boot and including wimax. He had no 3G before but 4G would wokr. Now he has no 3G/4G after going through and individually restoring each option, just 1X. He checked his RSA keys using WiMAX RSA Key Checker and the RSA key is present.
Is there still anything he could do to get back his 3G/4G if this hypothetical situation were to be true? RUU work maybe?
So, say hypothetically...one didn't read this thread before he nandroid restored to his replacement EVO today. Well, at first it failed to restore the boot so he went in and individually restored each option besides boot and including wimax. He had no 3G before but 4G would wokr. Now he has no 3G/4G after going through and individually restoring each option, just 1X. He checked his RSA keys using WiMAX RSA Key Checker and the RSA key is present.
Is there still anything he could do to get back his 3G/4G if this hypothetical situation were to be true? RUU work maybe?
UPDATE: I used unrevoked's S-On tool and then did the most current RUU. I then updated PRI/Profile and then made a nandroid since 3G/4G was working. I then flashed CM7nightly23 and now I don't have 3G again. 4G is working and 1X when i cut it off? Any insight on this problem? Thanks
He checked his RSA keys using WiMAX RSA Key Checker and the RSA key is present.
Click to expand...
Click to collapse
Its present, but its the wrong key.
Is there still anything he could do to get back his 3G/4G if this hypothetical situation were to be true? RUU work maybe?
Click to expand...
Click to collapse
You're pretty much out of luck. Call Asurion and pony up the 100 bucks to get a replacement. Lesson learned.
The Wimax keys are you unique to each phone, and can't be recovered or "given" a new one. He'll have to claim it via insurance, pay the deductible, or live without 4G.
Well I thought I updated the post before y'all commented, but I did use unrevoked S-On and then did the latest RUU and booted up and everything was working. I then used unrevoked and I nanroid backup the stock ROM rooted. I wiped/data/cache and flashed CM7 nightly 23 and only have 4G and 1X now?
Under wifi connections, or mobile data is on?
teh roxxorz said:
Under wifi connections, or mobile data is on?
Click to expand...
Click to collapse
Yes, and i have toggled it a few times to check. I have also toggled data sync and stuff like that as well.

[Q] Just got a replacement Evo

After I root can I run a Nandroid restore if they are different hardware versions?
Not smart to do especially since it will over right your wiimax keys. Each key is reserved for one phone and account
Sent from my PC36100 using XDA App
Good point
Yes dont restore nandroid from a different phone. You will overwrite your wimax keys, and may not even be able to make calls or use 3g.
You can certainly restore your apps via Titanium, but just dont use nandroid.
Start from scratch man. You flash that nandroid you might as well kiss 4G goodbye. I learned that the hard way. New phone new beginning.
Sent from my PC36100 using Tapatalk
doesnt amon it ask you if you want to back those up?
See I didn't read anything prior to this but I just got a replacement evo two days ago and rooted it and just did a restore of everything. I've been using MIUI, but I didn't have any problems what so ever with anything, but maybe I was lucky....
ftwaynejuggalo16 said:
See I didn't read anything prior to this but I just got a replacement evo two days ago and rooted it and just did a restore of everything. I've been using MIUI, but I didn't have any problems what so ever with anything, but maybe I was lucky....
Click to expand...
Click to collapse
If you did a full restore, then you definitely did overwrite your wimax keys.
I thought nandroid only backed up Wimax keys if it was specified? I'm using Clockwork (I know, i know) and it has a check box for wimax.

backups corrupt wimax keys missing.. question.

So I have about 3 backups that look to be in tact but are corrupt. I have 5 backups that work fine.. yet none contain my working wimax key.. I don't suppose that hidden inside one of the corrupt img files would contain the wimax key? That is if it was backed up.. I used to use clockworkmod 3.0.0.5 I believe but i don't know if it ever backed up wimax.. I just hit backup.. With AMon I selected backup wimax one time by checking it yet my keys were already gone by then.. but seems you have to backup wimax manually with Amon.. First question I guess is does clockworkmod auto backup your wimax.. and 2nd.. can I extract the system.img or data.img .. one of those backup files to see if it's in there or is it just a lost cause? Thanks for any input.. Granted I don't live in 4g area, I've been pretty stubborn about getting the key back for those times I am in 4g area. Still can't believe I flubbed this up.. Thanks for any help at all on this..
Did you happen to rename the 3 backups that appear to be corrupted? If so, make sure there are no spaces or special characters in its name. Also, CWM used to auto backup wimax, but I haven't used it in quite a while so I can't say if it still does or not. Were all of your nandroids made with version 3.x.x.x? You can try flashing version 2.5.0.x and then attempt to restore the nandroids. The worst that could happen is a failed restore and you're already experiencing that. Give it a shot.
posting & replying via the XDA Premium app
Yeah i know about the naming issue so I know it's not that.. In any of those backups there is no wimax.img either so I assumed it wasn't backed up. The only wimax.img I have is one that I've tried flashing several times and still produces no keys.. Thanks for the reply though

[Q] 4g broke and cant unroot HELP

Need help fixing 4g. Dont know when it stopped working but I have tried other roms and no luck. I have updated the radio then the profile and then the prl, I rebooted and then did the wimax and profile and prl and deleted some wimax file like one of the post said to do. No luck at all
I then tried to unroot to see if sprint would swap it out. When I try to unroot it tells me my battery is less then 30% and the other ruus say they dont see my phone. I dont know how I rooted it but I think it was with unrevoked not sure.
4g says scanning then connecting and back to scanning thats it. I use mikrom 4.61 right now
Did you try restoring a backup that had wimax working?
This epic reply brought to you by none other than my roxx'd out Evo.
go here
http://forum.xda-developers.com/showthread.php?t=829045&page=60 this is the site it may help scroll all the way down i lost my 4g i had to send my phone back to htc and wait a week it was horrible
rhconcepts said:
Need help fixing 4g. Dont know when it stopped working but I have tried other roms and no luck. I have updated the radio then the profile and then the prl, I rebooted and then did the wimax and profile and prl and deleted some wimax file like one of the post said to do. No luck at all
I then tried to unroot to see if sprint would swap it out. When I try to unroot it tells me my battery is less then 30% and the other ruus say they dont see my phone. I dont know how I rooted it but I think it was with unrevoked not sure.
4g says scanning then connecting and back to scanning thats it. I use mikrom 4.61 right now
Click to expand...
Click to collapse
Did you check your RSA keys with the app from the Market?
Is your battery less than 30%? If it is, plug it in. If you want to unroot, just dl the s-on zip, flash that, then place the PC36IMG.zip on the root of your SD Card and go to hboot and let it update.
I got it unrooted. I did the unrevoke on patch and tried like 5 zip files and one of them worked. So its stock but I don't think 4g is working yet ill know tomorrow when I goto work.
Now what is this thing from the market for? Never mind I looked it up. So if my key is lost what do I do then? Send it in?
And no I didn't have any backups
Sent from my PC36100 using XDA Premium App
You should have to buy a new phone for being a moron. This is why every post about rooting reminds you to make a backup. You messed up live with the consequences. Sorry that is harsh, but this is preventable and all to common. People are way to over their heads messing with their phones like this. Now you will try to get your phone replaced and because of people like yourself replacement warrenties get more strict and costs go up. Sorry for the rant it just really annoys me that people keep ruining their phones because they are clueless.
Sent from my PC36100 using XDA App
Rem3Dy said:
You should have to buy a new phone for being a moron. This is why every post about rooting reminds you to make a backup. You messed up live with the consequences. Sorry that is harsh, but this is preventable and all to common. People are way to over their heads messing with their phones like this. Now you will try to get your phone replaced and because of people like yourself replacement warrenties get more strict and costs go up. Sorry for the rant it just really annoys me that people keep ruining their phones because they are clueless.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Your not being harsh at all... YOUR BEING A DINK,, And what would a backup do for me because I dont know crap right.. I did find my very first backup from when I first rooted the phone and that didnt help at all. So I unrooted it and its still not working. And thanks to the rest of you guys for the help and info, Im thinking the wimax key is gone but I didnt want to root the phone to find out. Sprint is doing a swap right now so Im all good..
rhconcepts said:
Your not being harsh at all... YOUR BEING A DINK,, And what would a backup do for me because I dont know crap right.. I did find my very first backup from when I first rooted the phone and that didnt help at all. So I unrooted it and its still not working. And thanks to the rest of you guys for the help and info, Im thinking the wimax key is gone but I didnt want to root the phone to find out. Sprint is doing a swap right now so Im all good..
Click to expand...
Click to collapse
Good for you, hope you learned your lesson.
Sent from my PC36100 using Tapatalk
Me? No I didn't. Everyone says to do a backup but when I found my backup it didn't help. Even the stock Rom didn't help. So if someone can tell me how to backup the wimax key that may help next time. But what I see is once its gone its gone, not even a backup will help. One thing I did learn is that I'm staying with mik's Rom lol.
I rooted my evo and now I see a wimax backup in the recovery. I have never seen that in the backup of the recovery before. But many things have changed so could it be something they added in down the road? I rooted the phone when it first came out. But now I see what you are talking about the backup. Maybe next time someone can fill me in on that and not be such a ass.
Sent from my PC36100 using XDA Premium App
i agree man chill out
rhconcepts said:
Me? No I didn't. Everyone says to do a backup but when I found my backup it didn't help. Even the stock Rom didn't help. So if someone can tell me how to backup the wimax key that may help next time. But what I see is once its gone its gone, not even a backup will help. One thing I did learn is that I'm staying with mik's Rom lol.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
It's easiest to do with Amon-Ra recovery, which you can find out about installing if you do a search for Amon-Ra 2.3. When using Ra, go to backup, and just check "Wimax." It'll backup just your wimax. Now, just go into your nandroid folder on your sd and add a "-wimax_key"to the end of the file name so you can remember it, and then put that backup in multiple safe places.
Are you sure it's your phone that is having the issue? Sprint could just have an outage. I've had some janky 4g coverage lately.
If it is your phone, what recovery and version are you running? All the new recoveries backup the Wimax keys. It's not true that "once it is gone, it's gone." I imagine you ran Unrevoked to root it which installs Clockworkmod recovery, so your original nandroid backup should have the keys backedup already. In that case you'd just need to wipe and then restore the nandroid. Upon doing that, it will also restore your Wimax key. DL the Wimax key checker from the market as previously mentioned and verify your RSA (Wimax) key is present. You are good to go if so.
eventer289 said:
It's easiest to do with Amon-Ra recovery, which you can find out about installing if you do a search for Amon-Ra 2.3. When using Ra, go to backup, and just check "Wimax." It'll backup just your wimax. Now, just go into your nandroid folder on your sd and add a "-wimax_key"to the end of the file name so you can remember it, and then put that backup in multiple safe places.
Are you sure it's your phone that is having the issue? Sprint could just have an outage. I've had some janky 4g coverage lately.
If it is your phone, what recovery and version are you running? All the new recoveries backup the Wimax keys. It's not true that "once it is gone, it's gone." I imagine you ran Unrevoked to root it which installs Clockworkmod recovery, so your original nandroid backup should have the keys backedup already. In that case you'd just need to wipe and then restore the nandroid. Upon doing that, it will also restore your Wimax key. DL the Wimax key checker from the market as previously mentioned and verify your RSA (Wimax) key is present. You are good to go if so.
Click to expand...
Click to collapse
Thanks for the info. It was the phone for sure and I must have had the very first recovery version because I never seen the wimax backup before. Now on my new phone I see the wimax and other things I can backup. So on this one I checked them all and did my backup So that must be why the backup I found didnt help me. I never thought about checking to see if the recovery had updates.

Categories

Resources