MEID and ESN Calculation CDMA

Search This thread

thesssfactor

Senior Member
Jun 22, 2011
127
9
Li
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:

thesssfactor

Senior Member
Jun 22, 2011
127
9
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)
 
Last edited:

willgand

Member
Mar 25, 2013
10
0
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??
 

MrObvious

Senior Member
Mar 1, 2008
2,291
330
Wichita KS
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.
 

kidFromBigD

Senior Member
Oct 3, 2008
51
8
Dallas, TX
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 !! :angel:
 

juryrigger

Senior Member
Nov 4, 2010
68
1
ESN from MEID

Old thread, but hoping someone can still help. My phone's ESN is zeroed out, and I don't know what it is. The MEID is fine though. I want to repair it to the factory ESN. How do I do this with a Sprint LG G2?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    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.
    1
    I want the reserve another spot too