- Sep 16, 2019
- 23
- 1
IMEI to network lock algo
The algorithm transforms an IMEI number into Network lock
- Split into pairs: Take two digits at a time from left to right.
- Add digits in each pair: Keep only the last digit of the sum.
- Use the first digit: Instead of the last digit of the IMEI, add the first digit to the result.
- Combine: Join everything to get the final number.
Example 1: IMEI 354065369874555
- Break into pairs: 35, 40, 65, 36, 98, 74.
- Add digits in each pair:
- 35 → 3+5=83 + 5 = 8 → Keep 8
- 40 → 4+0=44 + 0 = 4 → Keep 4
- 65 → 6+5=116 + 5 = 11 → Last digit = 1
- 36 → 3+6=93 + 6 = 9 → Keep 9
- 98 → 9+8=179 + 8 = 17 → Last digit = 7
- 74 → 7+4=117 + 4 = 11 → Last digit = 1
- Use the first digit: The first digit is 3.
- Combine Results: 8419713
Final Output: 8419713
Example 2: IMEI 354012365897456
- Break into pairs: 35, 40, 12, 36, 58, 97.
- Add digits in each pair:
- 35 → 3+5=83 + 5 = 8 → Keep 8
- 40 → 4+0=44 + 0 = 4 → Keep 4
- 12 → 1+2=31 + 2 = 3 → Keep 3
- 36 → 3+6=93 + 6 = 9 → Keep 9
- 58 → 5+8=135 + 8 = 13 → Last digit = 3
- 97 → 9+7=169 + 7 = 16 → Last digit = 6
- Use the first digit: The first digit is 3.
- Combine Results: 8439363
Final Output: 8439363
Summary
- IMEI 354065369874555 → Output: 8419713
- IMEI 354012365897456 → Output: 8439363
This algo works on sprd devices like hisense tecno itel and other, {note: newer version use diffrent algo}
site: gsmmamu.com
telegram:gsmmamu1