FORUMS
Post Reply Subscribe to Thread Email Thread

MEID and ESN Calculation CDMA

24th January 2012, 05:34 PM |#1  
OP Senior Member
Flag Li
Thanks Meter: 7
 
More
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.
Last edited by thesssfactor; 29th November 2012 at 06:18 PM.
The Following 3 Users Say Thank You to thesssfactor For This Useful Post: [ View ]
 
 
24th January 2012, 05:34 PM |#2  
OP Senior Member
Flag Li
Thanks Meter: 7
 
More
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)
Last edited by thesssfactor; 21st February 2012 at 07:17 PM.
24th January 2012, 05:35 PM |#3  
OP Senior Member
Flag Li
Thanks Meter: 7
 
More
I want the reserve another spot too
The Following User Says Thank You to thesssfactor For This Useful Post: [ View ]
25th January 2012, 10:55 AM |#4  
Member
Flag Boston
Thanks Meter: 4
 
More
great article ty
1st April 2013, 08:24 AM |#5  
Junior Member
Thanks Meter: 0
 
More
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??
9th May 2013, 05:47 PM |#6  
damastah's Avatar
Senior Member
Flag Desert Hot Springs
Thanks Meter: 56
 
More
Can an MEID be generated? Like can I just make one up and it be a valid meid for activation on BYOD companies?
9th May 2013, 07:35 PM |#7  
MrObvious's Avatar
Senior Member
Flag Wichita KS
Thanks Meter: 309
 
More
Quote:
Originally Posted by damastah

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.
9th May 2013, 07:42 PM |#8  
damastah's Avatar
Senior Member
Flag Desert Hot Springs
Thanks Meter: 56
 
More
Quote:
Originally Posted by MrObvious

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?
9th May 2013, 10:37 PM |#9  
MrObvious's Avatar
Senior Member
Flag Wichita KS
Thanks Meter: 309
 
More
Quote:
Originally Posted by damastah

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.
26th July 2013, 05:46 PM |#10  
kidFromBigD's Avatar
Member
Dallas, TX
Thanks Meter: 7
 
More
Quote:
Originally Posted by MrObvious

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.

Yep, good explanation here. Note that you cannot calculate a MEID from just the ESN. MEIDs were introduced years ago because they realized the ESN address space would run out, kinda like IPv4 ran out, and now we have IPv6, blah blah. Think of the MEID address space as a "superset" of ESN's.

Also, MEID pools are assigned to device manufacturers. So an HTC MEID will not collide with the Samsung range, will not collide with LG, fruity phone, etc, etc, etc.

Oh one last thing: The MEID is defintely NOT tied to the ROM of a device - No MEID change from flashing a ROM !!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes