Home

Awesome

<img src="./assets/header.png" width="100%" height="auto" alt="PotatoNV">

GitHub release (latest by date including pre-releases) GitHub GitHub All Releases


Download

πŸ‘‰ Click here to download the latest version.

Get binaries for Windows in the releases section. For Linux or macOS consider using the PotatoNV-crossplatform.

User manual

Follow the video guide or read the manual below.

Make sure your device is compatible

  1. Are you sure you're actually using a Huawei/Honor device?
  2. Open the Settings β†’ About phone. Check the CPU: it should be HiSilicon Kirin ***. If it is not your case (MediaTek, Qualcomm), then alas, your device is not supported. :(
  3. Okay, now you know CPU model. It should be one of these modification:
    • Kirin 620
    • Kirin 650
    • Kirin 655
    • Kirin 658
    • Kirin 659
    • Kirin 925
    • Kirin 935
    • Kirin 950
    • Kirin 960
  4. 100% incompatible CPUs with PotatoNV: Kirin 710, 710A, 710F, 810, 970, 980, 985, 990 & newer.
  5. As for Kirin 710, 710F, 970 & 980, there is an alternative paid option β€” see the "Alternatives" section below.

Getting inside

The first step is the most difficult thing to do. You need to disassemble your device: this is necessary in order to access the contacts on the motherboard.

If you're not sure that you have enough experience to disassemble the device, then consider using paid software, that supports "software testpoint".

Warning

I strongly recommend watching video manuals for disassembling your device.

Warning

Be extremely careful with planar cables!

These cables are used in tablets, as well as in phones with a fingerprint scanner on the back cover.

You will need: a hair dryer, a guitar pick or a plastic card, conductive tweezers and maybe a screwdriver.

  1. Turn off the device.
  2. Heat the back cover evenly with a hair dryer.
  3. After a couple of minutes, try to stick the plastic card into the corner between case and lid, try to lift the edge and then deepen the card.
  4. Move around the perimeter of the back cover, peeling off glue.
  5. Now you can remove the back cover.

Entering download mode

It's time to Google. You need to find the location of a special point on the motherboard – testpoint.

Note

If you are wondering why you need to do something with the unfortunate testpoint, then read the contents of the spoiler below.

To search, use the model name before the hyphen + "testpoint". For example for Honor 9 Lite (LLD-L31) you should Google "lld testpoint".

<details> <summary>An example how a typical testpoint photo looks like.</summary>

Honor 9 Lite Testpoint location

</details>

The marks may vary:

  1. Only one point is marked in the photo.
  2. In the photo, a line is drawn between the point and the metal shield.
  3. In the photo, a line is drawn between two points.

Here you will need sleight of hand: try to short-circuit the point and the metal shield (in option 1 and 2), or short-circuit both points (option 3) with tweezers. Without removing the tweezers, connect the USB cable to the computer.

After 3 seconds, the tweezers can be removed.

Open the "Device Manager" – you should see an unknown device named USB SER, or Serial Port HUAWEI USB COM 1.0.

If the device has not been detected, make sure you are using a good cable, the tweezers are not a dielectric, and you are shorting the desired point.

Unlocking the bootloader

Note

All bootloaders are flashing to RAM, so an incorrect bootloader cannot harm the device.

Note

Disable FBLOCK checkbox disables a special securtiy check. That modification allows you to flash/erase secure partitions or execute oem commands, that are not available with normal unlocking by unlock code [USERLOCK].

Warning

FBLOCK unlocking works correctly only on devices with Kirin 960 or Kirin 65x. Disabling this option can cause serious problems on legacy devices.

Okay, now refer to this table and select the appropriate bootloader.

Press the Start button. πŸͺ„

The procedure will take no more than a minute. The program should write a new unlock code, keep it in a safe place.

Reboot your device to fastboot mode and execute following command on the host machine:

fastboot oem unlock YOUR_CODE_HERE

have fun.

<!-- right, anti? :) -->

How it works

<details>

Even before creating PotatoNV, @TishSerg discovered that unlock key can be rewritten with the SHA256 hash of the desired key to the USRKEY property. However, to access NVME (a raw partition that stores stuff like serial number, device traits, etc.), a user should flash custom recovery or gain temporary root privileges. But both methods are complex and are not guaranteed to work. After researching the legacy bootloader of some Huawei devices, I've found a nve command, which allows to read or write any property in the NVME partition. Of course, this command requires an unlocked bootloader. So it remains to find a way to quickly unlock the bootloader. The way out is quite simple - use the bootloader from the board software.

The program uploads a special "USB bootloader" (exported from the board software) through the DOWNLOAD_VCOM mode. VCOM is smth like EDL on Qualcomm devices: it can be triggered by a system failure or by shorting testpoint. After uploading the bootloader, the device should switch to the fastboot mode. The "USB bootloader" has an important trait: it's unlocked out-of-the-box, so it allows to execute any command.

So, we're just going to send a command through the USB bulk interface to write SHA256 hash to USRKEY and reboot the device.

That's it.

</details>

Tested devices

DeviceModelBootloader
Huawei P8 Lite (2015)ALEKirin 620
Huawei Y6IICAMKirin 620
Honor 5C / 7 LiteNEMKirin 65x (A)
Honor 6XBLNKirin 65x (A)
Honor 7XBNDKirin 65x (A)
Honor 9 LiteLLDKirin 65x (A)
Huawei MediaPad T5AGS2Kirin 65x (A)
Huawei Nova 2PICKirin 65x (A)
Huawei P10 LiteWASKirin 65x (A)
Huawei P20 Lite / Nova 3eANEKirin 65x (A)
Huawei P8 Lite (2017)PRAKirin 65x (A)
Huawei P9 LiteVNSKirin 65x (A)
Huawei Y9 (2018)FLAKirin 65x (A)
Huawei MediaPad M5 LiteBAH2Kirin 65x (B)
Huawei Nova 2i / Mate 10 LiteRNEKirin 65x (B)
Huawei P Smart 2018FIGKirin 65x (B)
Honor 6 PlusPEKirin 925
Honor 7PLKKirin 935
Huawei P8GRAKirin 935
Honor 8 Pro / V9DUKKirin 950
Honor 8FRDKirin 950
Huawei P9 StandartEVAKirin 950
Honor 9STFKirin 960
Huawei Mate 9 ProLONKirin 960
Huawei Mate 9MHAKirin 960
Huawei MediaPad M5CMRKirin 960
Huawei Nova 2sHWIKirin 960
Huawei P10VTRKirin 960

Alternatives

HCU Client

As far as I know, there is currently only one tool that can deal with newer CPUs β€” HCU Client.

This software requires a license, the most affordable plan is 3 days of access for €19.

See supported models by HCU Client here.

Note

Timed licenses locked to first used PC for two days. Therefore, it would be problematic to use such a license on more than one phone.

Disclaimer: I am not affiliated, associated, authorized, endorsed by, or in any way officially connected with UAB Digiteka, or any of its subsidiaries or its affiliates, including DC-Phoenix and HCU Client.

License

Logo by Icons8.

All bootloaders are Huawei Technologies Co., Ltd. property.

This project is not affiliated with Huawei.


Bootloader unlock tool for Huawei devices on Kirin SoC. Copyright (C) 2019-2020 mashed-potatoes

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


Thank you, Martin, MoisΓ©s, Tibor, Emanuele & all those I've forgotten (sorry!).

Sponsored by JetBrains

<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg" alt="JetBrains logo." width="120">