[Honor 9 Lite  Guides, News, & Discussion] hackintosh5:
--- Please don't quote this entire post ---

I have, with the help of two people who's XDA I don't know, just unlocked an Honor 9 Lite without an unlock code!:angel: The method follows:

Initial revision

0. Prepare adb and fastboot. On windows, change all

fastboot

commands to

.\fastboot

and similarly for

adb

(skip to step 2 if you have the June 2018 patch or earlier)

1a. Downgrade firmware to 8.0.0.xxx (June patch) via androidhost.ru - search for your device, get a C432 version.

1b. Downgrade, instructions are in the 'ReleaseDoc' folder. Use the forced install method

(do not reboot the phone until step 3a is complete)

2a. Enter

fastboot

2b. Enter powershell or terminal and type:

fastboot oem hwdog certify begin;fastboot oem get-product-model

2c. Send the result to [MENTION=2021504]huawei[/MENTION]hax telegram group or in this thread (telegram will have faster response times)

2d. We will send you your slock when we gets a chance. Please be patient, we have real lives. Download it on the same pc as you have fastboot on.

2e. Copy the slock to your working directory

2f. Type in your shell:

fastboot flash slock <slock_filename>

(Download twrp on the pc that has fastboot, copy to working directory)

3a.

fastboot flash erecovery_ramdisk <twrp filename>

3b. Read step 3c and 3d

3c.

fastboot reboot

3d. Hold volume up AFTER the phone vibrates

3e. Twrp should boot up. If not, reboot it and try 3d again

(Each reboot until step 4 is complete, you will restart step 4)

4a. Connect usb

4b.

adb shell dd if=/dev/block/bootdevice/by-name/nvme of=/tmp/nvme

4c.

adb pull /tmp/nvme

You may now reboot the device, if you want.

5a. Open the nvme file in a hex editor. Find 'FBLOCK' in the file. There should be '8' shortly before the fblock. Move down exactly one line from '8' and you will see 01. Change that to 00 and repeat for all instances of fblock in the file. Save the file.

5c.

adb push nvme /tmp/nvme

5d.

adb shell dd if=/tmp/nvme of=/dev/block/bootdevice/by-name/nvme

6. Reboot!

CONGRATS! YOUR DEVICE IS NOW UNLOCKED!

Latest revision:

0. Prepare adb and fastboot. On windows, change all fastboot commands to ./fastboot and similarly for adb

Skip to step 2 if you have the June 2018 patch or earlier

1a. Downgrade firmware to June patch via androidhost.ru - search for your device, any C number should work.

1b. Downgrade, instructions are in the 'ReleaseDoc' folder. Use the forced install method

2a. Enter fastboot

2b. DO NOT REBOOT THE PHONE UNTIL STEP 3a is complete!!! Failing to follow this will result in anger!

2c. Enter powershell or terminal and type:

fastboot oem hwdog certify begin;fastboot oem get-product-model;fastboot oem get-build-number

2c. Send the result in the telegram group [MENTION=2021504]huawei[/MENTION]Hax (link to the public group is at the start of the channel), or, if that's entirely impossible, PM [MENTION=4960686]OldDroid[/MENTION] on XDA.

2d. A nice guy will send you your slock. Please be patient, they have real lives. Download it on the same pc as you have fastboot on.

2e. Copy the slock to your working directory

2f.

fastboot flash slock <slock_filename>

(Download twrp on the pc that has fastboot, copy to working directory)

3a.

fastboot flash erecovery_ramdisk <twrp filename>

3b. Read step 3c and 3d

3c.

fastboot reboot

3d. Hold volume up AFTER the phone vibrates

3e. Twrp should boot up. If not, reboot it and try 3d again

4a. Connect usb

4b.

adb shell dd if=/dev/block/bootdevice/by-name/nvme of=/tmp/nvme

4c.

adb pull /tmp/nvme

WARNING: FOLLOW THESE STEPS VERY CAREFULLY AND DOUBLE-CHECK EVERYTHING!

5a. Open the nvme file with a hex editor. Repeat step 5b until you have done all the instances of FBLOCK.

5b. Search the file for FBLOCK. For each instance, you should see the character 8 shortly before. Go down exactly one line from the 8. Select the .. You should see 01 become highlighted in the hex area. Change the 01 to 00 and repeat 6 more times (7 in total). Save the file as nvmepatched

5c.

adb push nvmepatched /tmp/nvme

5d.

adb shell dd if=/tmp/nvme of=/dev/block/bootdevice/by-name/nvme

6. Reboot!

CONGRATS! YOUR DEVICE IS NOW UNLOCKED!

----------------------------------------------------------------

Files you might find useful:

nvme.zip: a twrp flashable zip that automates step 5 of the instructions. I have tested it and it works fine for me. If TWRP crashes and restarts, that's fine, but idk why it happens. If it happens to you, please send /tmp/recovery.log to me in pm or here, or in telegram

autoroot.zip: a zip file containing a python script and related files to automatically unlock Huawei's. To use it, put a twrp file called 'twrp-kirin.img' in the 'files' subfolder. I cannot upload that file due to XDA file size restrictions.

https://www.androidfilehost.com/?w=files&flid=285583: thanks to [MENTION=5312578]mrmazak[/MENTION], this is a windows batch tool version of autoroot.zip