today we will learn how to calculate network lock by imei in sprd phones
network lock Algorithm Explained
The algorithm transforms an IMEI numberΒ into network lock by following these steps:
- 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 β β Keep 8
- 40 β β Keep 4
- 65 β β Last digit = 1
- 36 β β Keep 9
- 98 β β Last digit = 7
- 74 β β 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 β β Keep 8
- 40 β β Keep 4
- 12 β β Keep 3
- 36 β β Keep 9
- 58 β β Last digit = 3
- 97 β β 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 hisense infinix tecno itel and rest spd models