Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
thesssfactor
Old
(Last edited by thesssfactor; 29th November 2012 at 06:18 PM.)
#1  
Senior Member - OP
Thanks Meter 7
Posts: 123
Join Date: Jun 2011
Location: Li
Default MEID and ESN Calculation CDMA

MEID and ESN Calculation (AKA cdma phones only)

(If you learned anything please thank below, it will warm my heart lol

Here is a guide on how your MEID and ESN are generated. This is for educational purposes only. I am creating it as away to say thanks to all the xda devs that helped me in updating my phone with the newest htc sense updates and putting up with my noobness.

Ok again I repeat this is for educational process, I will not teach you how to edit your esn or meid’s. (Again don't anyone to use it for wrong)

Ok your ESN generates from your MEID, so once you have your meid you can derive your ESN.

Example MEID I will be using is completely random and made up (A10000999AAAAA)

You want work with you Hex MEID aka the one that starts off with A1 xxxxxxxxxxx
(The x’s follows the hex format meaning 0-9 and A-F in the lettering the numbers should be 14 digits)

You will have to transcribe this number into Binary-
(Easiest way to do it - open up Microsoft calculator that is installed on every computer – click view and go to scientific)
Click HEX in the Calculater Type in the everything (A10000999AAAAA)
After everything is typed in click BIN (should yield a 56 bit string 1010 000 100 000 000 000 000 001 001 100 110 011 010 101 010 101 010 1010)

The first 8 bytes are reserved by the government or some committee (TIA) 1010 000 100 000 000 000 000 001 001 100 110 011 010 101 010 101 010 1010

The following 24 bytes are the manufacturer bit code 1010 000 100 000 000 000 000 001 001 100 110 011 010 101 010 101 010 1010

The Last 24 bytes are the serial number for your device 1010 000 100 000 000 000 000 001 001 100 110 011 010 101 010 101 010 1010

Now if your smart you can figure out what I just wrote

Now to figure out your MEID: In the back of your phone the 14 digit number is really suppose to be converted into an 18 digit number .

First take the first 8 digits of the MEID: A10000999AAAAA paste it into your calculator and make sure that it is set under HEX then click DEC (should yield 2701131929)

Next take the last 6 digits A10000999AAAAA, 9AAAAA and add an zero to the front of it and repeat – Type on 09AAAAA in calc Hex clicked then click dec (should yield 10136234)

Finally – combine them all 270113192910136234 and wham your MEID that your phone company uses to program you phone.

For the ESN you will have to use an Hash Calc –
(I will not go into detail on how to come up with your ESN, but I will get you the steps)
1. Take MEID A10000999AAAAA paste it into you SHA-1 Hash Calculator
2. Calculate the Hash
3. Take the last 6 numbers and place and 80 in front of them
4. And wham you ESN should be 0x80(what ever your last 6 digits are)


So in Conclusion, you MEID is the most important part of your phone and everything is derived from it. Again only for information use only. I can help if you need help flashing your phone, but I am really lazy…

PS Screw PIPA and other government agencies trying to limit our educational process, they want us to pay the rich that owns colleges and other learning sources on how to educate the human race, well thank xda and internet for educating me on phone services for free.
HTC EVO Sprint
HTV EVO View Tablet (htc flyer)
A stripper Pole

Check out how your MEID and ESN is generated by your CDMA carrier (Sprint Verizon)
The Following 3 Users Say Thank You to thesssfactor For This Useful Post: [ Click to Expand ]
 
thesssfactor
Old
(Last edited by thesssfactor; 21st February 2012 at 07:17 PM.)
#2  
Senior Member - OP
Thanks Meter 7
Posts: 123
Join Date: Jun 2011
Location: Li
Please not that AA and HA keys are needed too, But I don't know how to companies designs these keys. The only thing that I know the AA and HA keys are defined from algo on some number system in the phone.

Meaning that it might be formed by the MEID... (<-- All my theory)
HTC EVO Sprint
HTV EVO View Tablet (htc flyer)
A stripper Pole

Check out how your MEID and ESN is generated by your CDMA carrier (Sprint Verizon)
 
thesssfactor
Old
#3  
Senior Member - OP
Thanks Meter 7
Posts: 123
Join Date: Jun 2011
Location: Li
I want the reserve another spot too
HTC EVO Sprint
HTV EVO View Tablet (htc flyer)
A stripper Pole

Check out how your MEID and ESN is generated by your CDMA carrier (Sprint Verizon)
The Following User Says Thank You to thesssfactor For This Useful Post: [ Click to Expand ]
 
rla2680
Old
#4  
Member
Thanks Meter 4
Posts: 90
Join Date: Sep 2011
Location: Boston
great article ty
 
willgand
Old
#5  
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Mar 2013
i wanna ask you guyz, i only get BSN not ESN.
is it same BSN and ESN??
if those are direfent can BSN convert to MEID or to ESN??
 
damastah
Old
#6  
damastah's Avatar
Senior Member
Thanks Meter 45
Posts: 274
Join Date: Jun 2009
Location: Desert Hot Springs

 
DONATE TO ME
Can an MEID be generated? Like can I just make one up and it be a valid meid for activation on BYOD companies?
Current Phone AT&T Samsung Galaxy Note - Paranoid Android CM10 JellyBean
Traded/Sold:
HTC One S - Zer0 one$ ROM
Samsung Galaxy S II T989 Hurcules - Infamous ROM
HTC Sensation:Virtuous Inquisition
LG G2x - Hellfire Phoenix
HTC MyTouch 4G -MIUI
HTC G2 [3 Days (Hated it)] - Stock
HTC MyTouch 4G - Stock (x2)

I'm an ex- addict
Currently addicted to
 
MrObvious
Old
#7  
MrObvious's Avatar
Senior Member
Thanks Meter 193
Posts: 1,528
Join Date: Mar 2008
Location: Wichita KS
Quote:
Originally Posted by damastah View Post
Can an MEID be generated? Like can I just make one up and it be a valid meid for activation on BYOD companies?
It's tied into the system of the phone like the ESN. ESNs are just older versions of MEIDs. Changing them is illegal.
 
damastah
Old
#8  
damastah's Avatar
Senior Member
Thanks Meter 45
Posts: 274
Join Date: Jun 2009
Location: Desert Hot Springs

 
DONATE TO ME
Quote:
Originally Posted by MrObvious View Post
It's tied into the system of the phone like the ESN. ESNs are just older versions of MEIDs. Changing them is illegal.
I was asking if they can be generated or are all MEIDs valid. That's all I had a question about. Know anything about that?
Current Phone AT&T Samsung Galaxy Note - Paranoid Android CM10 JellyBean
Traded/Sold:
HTC One S - Zer0 one$ ROM
Samsung Galaxy S II T989 Hurcules - Infamous ROM
HTC Sensation:Virtuous Inquisition
LG G2x - Hellfire Phoenix
HTC MyTouch 4G -MIUI
HTC G2 [3 Days (Hated it)] - Stock
HTC MyTouch 4G - Stock (x2)

I'm an ex- addict
Currently addicted to
 
MrObvious
Old
#9  
MrObvious's Avatar
Senior Member
Thanks Meter 193
Posts: 1,528
Join Date: Mar 2008
Location: Wichita KS
Quote:
Originally Posted by damastah View Post
I was asking if they can be generated or are all MEIDs valid. That's all I had a question about. Know anything about that?
Like if you have an ESN you want to know if it's possible to calculate the MEID from it? I have no idea on that but I'd imagine it's similar to above. But if you're asking if you can just simply create a MEID out of thin air, no. MEIDs are serial numbers mandated by the government to not be changed per law (same with ESNs) and are tied to the phone's motherboard/ROM.

I hope this helps some.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more