• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Getting bootloader unlock code from Huawei

Search This thread

omaga

Senior Member
Jul 22, 2007
1,014
27
Thx for this?I got my bootloader code from Huawei web site, after some stuggelin. I have had the tablet for one day M5 8.4 LTE and I just love it
 
Last edited:

Ronin9876

Member
Jul 20, 2018
11
5
Please Help ...... Hi I am in Australia and have a WiFi only Mediapad M5 10.8 model CMR_W09_V4. I believe its a Chinese version from Hong Kong but it has been preloaded as a non-Chinese device with google etc pre-installed.

I am having trouble getting the Bootloader Unlock code for this device.

I have followed holi0317's (thanks holi0317) procedure using the resend request feature in a Firefox Browser on a PC. Everything seems to go to plan until the very last part.

After editing the "Request Body" I press send but I get the same message back saying "SN and IMEI are mismatched".

When I examine the response there is no unlock code , just this ... {"msg":"imei_sn_mismatch"}

I inspected the Request Body and its clear that it is a repeat of the original unedited script. In other words the version of the script I edited seemed to be lost and the resend function sent the unedited version. So for some reason it seems my edited script is not saving and therefore the unedited response is being re-sent resulting in no unlock codes :(

I am guessing that there is a setting or two in the debugger which I may need to toggle. .. Since I am unfamiliar with this stuff I really need some help please.

I would very much appreciated it if anyone who is familiar with this stuff could give me some directions...

Thank you in advance :)
.
 

vibecatalin

Senior Member
Jul 6, 2008
1,023
97
I've tried yesterday too and I'm stuck at : ``Inspect the request to check route and click Edit and Resend Button.``
Not planning to root my tablet anytime soon but it will be nice to have an bootloader unlock code :)
 

Ronin9876

Member
Jul 20, 2018
11
5
I've tried yesterday too and I'm stuck at : ``Inspect the request to check route and click Edit and Resend Button.``
Not planning to root my tablet anytime soon but it will be nice to have an bootloader unlock code :)

Hi vibecatalin, I can tell you what I did to get past the place you are stuck at.

1. Before you press "Commit" on Huawei's web page you hit F12 on your keyboard which opens the Web Debugger on Firefox Browser. (I guess you past that point).

2. Next set the Web Debugger to "NETWORK" from the TABS that appear across the top of the Debugger window (towards the right side).

3. Now press "Commit" after the fields are filled as per
holi0317's instructions ... (Dont forget to imput the 4 character verification code).

4. Next you will notice at the bottom of the Debugger window is a few enteries (in my case 2) . Click on the top entry and details will open to the right of the Window with the button ""Edit and Resend" somewhere towards the bottom.

5. Click on "Edit and Resend" button. This opens the "New Request Window".

6. Scroll to the bottom of the "New Request Window" and you will see the "Request Body" which is what I believe must be edited according to holi0317's instructions. Dont forget to update the 4 character verification code in the script because it changes after you pressed"Commit" earlier .

7. After you edit the script as per holi0317s instructions scroll to the top of the Debugger window and on the top right side is the New Request "Send" button. Click it !

8. Next, in the same Debugger window (Sligtly Above) you will see the TAB Button... "Response" ... click it and scroll down to see the Response Payload... This is where I believe our unlock code should be if it works... (someone please correct me if I'm wrong).

This is were I am stuck... I get this message {"msg":imei_sn_mismatch"} . When I go to "Edit and Resend" again I see the original script was sent .... not my edited version..... If you can get past this point please let me know how to do it.

I am currently also trying to get the unlock code by paying 4 Euro and using the application DC-Unlocker. Apparently others have had success with this and its cheap enough to try.

Good Luck... :)
.
 
Last edited:

Ronin9876

Member
Jul 20, 2018
11
5
Just tried and I don't know if I got it right...

Under "response" tab I got this: {"msg":"xxxxxxxxxxxxxxxx"} the X's are 16 capital letters and numbers in a random sequence. Could that be the unlock code?

Hi Lord Vader... it sounds very promising. .. We retrieved a unlock code from the site a few days ago for Huawei GR5 phone and it was only random numbers no characters. Maybe someone who has succeeded for an M5 Tablet may be able to confirm.

Did you do anything different to me to get your result... if so please share ?
 

The Lord Vader

Senior Member
Aug 22, 2011
169
23
Xiaomi Mi 11 Ultra
Hi Lord Vader... it sounds very promising. .. We retrieved a unlock code from the site a few days ago for Huawei GR5 phone and it was only random numbers no characters. Maybe someone who has succeeded for an M5 Tablet may be able to confirm.

Did you do anything different to me to get your result... if so please share ?
Hi!
Nope, I followed your eminent guide with help of the post above mine.

I certainly hopes that it is the code I got, and that someone with a M5 will post and answer.

Many thanks ?
 

Ronin9876

Member
Jul 20, 2018
11
5
Unfortunately it still hasn't worked for me even though I'm pretty sure that I have the process right. Iam now getting the following response message back after resending the edited script:- {"msg":"imei_notbound_account"}

It seems my only other option is using DC-Unlocker (application). Hopefully this will work or I'm out of luck for now.

Good to hear at least some people succeeded.
 

The Lord Vader

Senior Member
Aug 22, 2011
169
23
Xiaomi Mi 11 Ultra
Unfortunately it still hasn't worked for me even though I'm pretty sure that I have the process right. Iam now getting the following response message back after resending the edited script:- {"msg":"imei_notbound_account"}

It seems my only other option is using DC-Unlocker (application). Hopefully this will work or I'm out of luck for now.

Good to hear at least some people succeeded.

That's too bad. I put in IMEI "123456789012345" because IMEI contains 15 numbers. Don't know if that helps at all, but worth trying...
 
  • Like
Reactions: Ronin9876

omaga

Senior Member
Jul 22, 2007
1,014
27
What was the last day Huawei give bootloader codes? Was it today? Dont remember what date it was? there where when I got my unlock code, but there was a statement.
 

Tomaxda

Senior Member
Jan 6, 2012
87
18
I just followed the procedure outlined in the first post of this thread and it worked for me. I'm in Canada but I'm using the ID info from a US model of the M5 8.4.
 

Ronin9876

Member
Jul 20, 2018
11
5
That's too bad. I put in IMEI "123456789012345" because IMEI contains 15 numbers. Don't know if that helps at all, but worth trying...

Thanks Lord Vader for your suggestion. I didn't end up trying it because I managed to get the Bootloader Code using the DC - Unlocker application. .. it only cost 4 Euro but was easy to do and worth it to save further hassles.

For anyone who may be having trouble getting the Bootloader Unlock Code for an M5 Tablet I can report that DC-UNLOCKER worked for me for my Huawei M5 10.8 wifi Tablet model CMR-W09. I cannot yet confirm if this code will work because I haven't tried to use it yet. Please note some people have claimed the codes retrieved by DC -Unlocker didn't work for them while others claim to have had complete success. I will post my final results after I try and unlock my device.

Thanks again Lord Vader
.
 
Last edited:
  • Like
Reactions: The Lord Vader

geeksmurf

Senior Member
Nov 9, 2007
147
55
Tulsa, OK
Not sure if it's mentioned elsewhere, but here's a WAY easier way to force the unlock form to work correctly.

Select "Since EMUI5.0", then in the url bar type:

Code:
javascript:$('#model').val(unpt.wifiModel)

and it should force it to switch to WiFi tablet and work correctly. Just ignore the IMEI field and it'll submit and return the correct code.

Had to use Chrome but worked like a charm. Well it gave me a code. Haven't tested that yet
 

Ronin9876

Member
Jul 20, 2018
11
5
Thanks Lord Vader for your suggestion. I didn't end up trying it because I managed to get the Bootloader Code using the DC - Unlocker application. .. it only cost 4 Euro but was easy to do and worth it to save further hassles.

For anyone who may be having trouble getting the Bootloader Unlock Code for an M5 Tablet I can report that DC-UNLOCKER worked for me for my Huawei M5 10.8 wifi Tablet model CMR-W09. I cannot yet confirm if this code will work because I haven't tried to use it yet. Please note some people have claimed the codes retrieved by DC -Unlocker didn't work for them while others claim to have had complete success. I will post my final results after I try and unlock my device.

Thanks again Lord Vader
.

I have had a further confusing development:-

IMPORTANT DEVELOPMENT

I was able to retrieve a Bootloader Unlock code from the Huawei Website yesterday using the script method before it was shut down.

But unfortunately the Unlock Code I got from the Huawei Website is completely different from the Unlock Code which I retrieved from DC-Unlocker.

The code retrieved from DC Unlocker is all Digits while the code from the Huawei Website is Digits and Characters.

This causes me a little concern.. I haven't tried either Unlock Code yet so I can't tell for sure which, if any, are correct.

On the XDA Developer website I have noticed some people have reported unlocking bootloaders with codes extracted with DC Unlocker and others claim the codes didn't work for them...

In my case I won't know for sure until I try and unlock the Bootloader on my M5. At present I am taking my time to collect and verify the needed components to root the device...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    I've successfully got a working bootloader code for my M5 and it worked. I am now running generic system image and it is working beautifully.
    For the record, I am owning a 10 inch M5 (not pro), 64 GB wifi-only version. Bought from official Huawei online store in China. I don't know if this would work on other versions but it is worth a try.

    Note: The unlock service from Huawei will terminate on 23 July. It is highly recommended to get a bootloader code if you plan to use custom rom in the future.

    Edit: Seems that images are missing. Here is the imgur album link: imgur.com/a/FaaGNkL
    I'll try to fix the images. Sorry for any inconvenience!

    Requirements for getting the code
    1. A Huawei M5 tablet of cause. 3G or wifi version
    2. A desktop computer
    3. The tablet must login into Huawei cloud for at least 2 weeks

    The final requirement is not listed in English version. I am not sure if that need to be fulfilled in English version or not.

    Link to unlock form: emui.huawei.com/en/plugin/unlock/index
    (Sorry but XDA disallow me to post outside link. I would update this post once I got the permission)

    ================

    1. Go to the link and login with the same account on your tablet
    2. Accept the terms
    3. Select "Since EMUI 5.0"
    4. The "smartphone" cannot be changed. It is by design (or a bug)

    For 3G version owners, follow the instruction and fill in the form. I am not owning 3G version and therefore I could not proof if the form is working or not.

    ================
    For Wifi version, the process would be quite tricky.
    Seems that Huawei did not plan to make a new wifi-only tablet when designing this unlock web page. We could not skip IMEI field in this form.
    ...Unless we do some tricks.

    This tutorial uses Firefox browser. Chrome does not have resend request feature which is required for our purpose.

    Enter the following sequence in offical calculator App
    Code:
    ()()1357946()()

    The displayed window should give you all information needed except the IMEI.

    It is time for some tricks. Press F12 on your keyboard to bring up developer tools and navigate to Network panel.
    A7pFJTR


    Enter some random number in IMEI field and submit the form. The submission should fail (no surprise) with reason "SN and IMEI are mismatched." and a request entry would be logged in the developer tools.

    Inspect the request to check route and click Edit and Resend Button.
    zGYLvEK


    Edit the Request body:
    1. Change needimei from 1 to 0
    2. Remove imei field (Remove imei=......&), rember to remove & symbol or the request would be invalid
    3. Update veri to new verification code in the window

    The reuslt sould request body should look like this
    Code:
    before5=0&sn=YOUR_SERIAL_NUMBER&checkCode=SOME_NUMBER&veri=VERIFICATION_CODE&needimei=0&_form_key=c934efde48a3

    kSusbkC


    Click send and a new check request should show up in the developer tools panel. Inspect it and check the Response tab.
    The blacken part is the bootloader unlock code for your device.
    JwgPGv0


    ================
    I used this code for unlocking my device and it workes.
    XRkSE2u


    Hope this guide helps!
    4
    Not sure if it's mentioned elsewhere, but here's a WAY easier way to force the unlock form to work correctly.

    Select "Since EMUI5.0", then in the url bar type:

    Code:
    javascript:$('#model').val(unpt.wifiModel)

    and it should force it to switch to WiFi tablet and work correctly. Just ignore the IMEI field and it'll submit and return the correct code.
    2
    @pmj_pedro

    look this : https://forum.xda-developers.com/mediapad-m5/how-to/huawei-mediapad-m5-install-magisk-t3795753

    this work on all my huawei-devices
    and on all my huawei-devices in-comming huawei-ota-updates
    Important : only if stock-recovery installed you can install huawei-ota-updates
    if TWRP installed the Update stop in TWRP !
    (flash stock-recovery and re-run update)
    OR download Update with HFF and install with noCheckRecovery ( or with HuRUpdater : https://forum.xda-developers.com/honor-9/development/tool-flash-official-firmware-recovery-t3769279 )
    2
    I've tried yesterday too and I'm stuck at : ``Inspect the request to check route and click Edit and Resend Button.``
    Not planning to root my tablet anytime soon but it will be nice to have an bootloader unlock code :)

    Hi vibecatalin, I can tell you what I did to get past the place you are stuck at.

    1. Before you press "Commit" on Huawei's web page you hit F12 on your keyboard which opens the Web Debugger on Firefox Browser. (I guess you past that point).

    2. Next set the Web Debugger to "NETWORK" from the TABS that appear across the top of the Debugger window (towards the right side).

    3. Now press "Commit" after the fields are filled as per
    holi0317's instructions ... (Dont forget to imput the 4 character verification code).

    4. Next you will notice at the bottom of the Debugger window is a few enteries (in my case 2) . Click on the top entry and details will open to the right of the Window with the button ""Edit and Resend" somewhere towards the bottom.

    5. Click on "Edit and Resend" button. This opens the "New Request Window".

    6. Scroll to the bottom of the "New Request Window" and you will see the "Request Body" which is what I believe must be edited according to holi0317's instructions. Dont forget to update the 4 character verification code in the script because it changes after you pressed"Commit" earlier .

    7. After you edit the script as per holi0317s instructions scroll to the top of the Debugger window and on the top right side is the New Request "Send" button. Click it !

    8. Next, in the same Debugger window (Sligtly Above) you will see the TAB Button... "Response" ... click it and scroll down to see the Response Payload... This is where I believe our unlock code should be if it works... (someone please correct me if I'm wrong).

    This is were I am stuck... I get this message {"msg":imei_sn_mismatch"} . When I go to "Edit and Resend" again I see the original script was sent .... not my edited version..... If you can get past this point please let me know how to do it.

    I am currently also trying to get the unlock code by paying 4 Euro and using the application DC-Unlocker. Apparently others have had success with this and its cheap enough to try.

    Good Luck... :)
    .
    1
    I unlocked my tablet immediately after unboxing and it worked.