tina-junold / huawei-bruteforce-unlock-bootloader

8 stars 1 forks source link

Wait! How long ? #1

Open Seblat5ch opened 4 years ago

Seblat5ch commented 4 years ago

I have managed to get this to run.

tina-junold commented 4 years ago

That's the point, I've adopted the original code, but I'm not sure if the code is working.

Seblat5ch commented 4 years ago

So here are my findings.

What I might try is to run the code a few thousand less than what i know works and try it again. Else I will simply try and count rather than use the Lun algo.

tina-junold commented 4 years ago

So here are my findings.

* So my IEMI number was xx xx xx xx xx xx xxx 15 digits long

My IMEIs too, both of it (I'm on Huawei P20 Pro, Chinese version, CLT-AL00)

* Whilst running the script it rolled over to 17 Digits (48273663872255821)

I stopped on 25250623519863410 (also 17 digits).

* I used DC Unlocker, paid the 4 euros and the code I got was 16 digits (xx xx xx xx xx xx xx xx)

That's what I thought.

* This 16 digit code worked. That being said it means that when running the script one of two things happened

  1. It simply rolled over a working code and did nothing

Hard to debug, since the message of "oem unlock code xxxxxxxxxxxx" is alwas the same...

  2. Using the LUN algo it did not match the code at all

That's the reason why I am stuck. The code does not use the LUHN to check if the oem code is an candidate, it's only used to check if the IMEI is valid. The implementation uses a fixed offset (i could optimize the code and move the calculation to the front of the loop) which is based on the IMEI (which IMEI is the correct one if you have more than one...?!?!?)

What I might try is to run the code a few thousand less than what i know works and try it again. Else I will simply try and count rather than use the Lun algo.

so check every code from 100000000000000 to 9999999999999999 are a lot of more tries....

schorlton commented 4 years ago

My IMEIs too, both of it (I'm on Huawei P20 Pro, Chinese version, CLT-AL00)

Does DC Unlocker work on P20 Pro? It's not listed on their formal support list, I ask as I may be getting one

tina-junold commented 4 years ago

@schorlton I did not test it since it's not supported (anymore), but Ministry of Solutions supports rebranding (for $40) to non chinese.