[Honor 5X Guides, News, & Discussion] djibe89:
[GUIDE/TUTORIAL/HOWTO] Huawei Honor 5X from Stock to Android 10

[GUIDE/TUTORIAL/HOWTO] Huawei Honor 5X (kiwi) from Stock to Android 10 / LineageOS 17.1 in 2023

Complete guide to install Android 10 on your Huawei Honor 5X.

This tutorial only applies to this model, to check the correct version:

in Android, go to Settings > About phone > Model number, make sure it is one of these models:

- KIW-L24

- KIW-L22

- KIW-L21 (Qualcomm Snapdragon)

Not 100% sure for following models:

- KIW-L23

- KIW-AL10

- KIW-AL20

- KIW-CL00

- KIW-UL00

- KIW-TL00

- KIW-TL00H

- KII-L05

- KII-L22

- KII-L21

I wrote tis tutorial with KIW-L21.

See all my tutorials at https://github.com/djibe/Android-tutorials

Netflix and Disney+ are working.

CHANGELOG

v1. Initial release

1) WHAT YOU NEED

- djibe Honor 5X pack: https://mega.nz/file/NKETmZAB#XFCXfMCUWYKuoxsDXCsY2akVFYu68IsD-k1hTRzkgmc

(Contains TWRP Recovery 3.4.0-0 + Magisk root + Huawei USB drivers x32/64 + fastboot + cited files for root)

+ ROM LineageOS Unofficial 17.1: https://forum.xda-developers.com/t/rom-10-0-lineageos-17-1-unofficial-for-honor-5x.4212671/

Download latest build here: https://mega.nz/file/tbUliQ7Q#7f7Byu1QuuYNkojPnu5MDevPyCx6oMxXxQsjgjciCsE

+ BitGApps ARM64 10 CORE: https://github.com/BiTGApps/BiTGApps-Release/releases

+/- extra apps: https://bitgapps.github.io/addon/ARM64.html

+ a microSD card formatted in FAT32: copy ROM, GApps (+ Magisk). Insert it in phone

+ Charge phone to 100%

2) INSTALL DRIVERS

Install Huawei USB drivers.

Then plug phone to PC and let the install go on.

3) BACKUP YOUR DATA

When your phone is connected to Windows, search for all .jpg, .mp3, .mp4 files on your phone and make copies on your PC.

Then, with your Google Account (Whatsapp and co) or an app like Backupyourmobile, backup all your SMS, MMS, contacts.

Make sure the backup is located on microSD card.

4) UNLOCK BOOTLOADER

Update your Honor 5X to the latest official Android 6 Marshmallow (MM).

In Android, go to Settings > Updater. Make sure you have latest version.

Go to Settings > About phone.

Tap 7 times on Build number to unlock Developer options.

Go to Settings > Developer options.

Switch ON "Enable OEM unlock" and "USB debugging".

You must pay to unlock bootloader as Huawei closed the official website.

List of services offering unlock codes for money:

- DC Unlocker ($4 + VAT): https://www.dc-unlocker.com/supported_models_1/huawei_phones

- MinistryOfSolutions ($4): https://ministryofsolutions.com/huawei-bootloader-unlock-paid-service-html

Follow steps to get a paid unlock code. Here are the steps for DC Unlocker.

Go to DC Unlocker website: https://www.dc-unlocker.com/supported_models_1/huawei_phones

Download latest Client for Windows and install it.

On phone, launch Dial pad and type: *#*#2846579#*#*

ProjectMenu opens.

Go to Background Settings > USB Port Settings > select Manufacture Mode and Close.

### If you restart phone before the end of the process, you have to do this again.

Connect Honor 5X to PC.

Go to Windows Device Manager.

In the Modems section, Android Adapter Modem is listed.

In the Ports section, Android Adapter PCUI (COMn) is listed.

### If not, you must check USB drivers installation again.

Launch DC Unlocker.

- Select manufacturer: Huawei phones

- Select model: Auto detect (or Huawei Qualcomm Android phone)

Click magnyfying glass button.

DC Unlocker returns:

Found Applications port COM3
Found Diagnostics port COM5

Found Phone : HUAWEIKIW-L21
Model : Huawei Qualcomm Android phone
IMEI : xxx
Serial NR. : xxx
Firmware : xxx
Hardware ver. : HL3KIWMAD

Now go to DC Unlocker shop: https://www.dc-unlocker.com/buy

You need 4 credits ($4) for operation 24: Huawei Qualcomm Read Bootloader Code (up to Android 8)

Set subscription as:

Item: New user account

User name: YOUR CHOICE

Credits: 4

I used Credit card.

Note down purchase informations, we will need these in DC Unlocker.

Back to DC Unlocker.

Go to Server panel.

Fill User name and Password with data from your receipt.

Click Check login.

Go to Unlocking section and click Read bootloader code button.

DC Unlocker returns:

Reading bootloader code...
Bootloader code : xxx

Note down Bootloader code carefuly.

On phone, launch Dial pad again and type: *#*#2846579#*#*

ProjectMenu opens.

Go to Background Settings > USB Port Settings > select Google Mode and Close.

Go to my djibe/flash folder.

In the address bar, type cmd and confirm with keyboard Enter key.

Enter command:

adb devices

Authorize USB debugging from phone.

Enter command again (use arrow up key to print last command):

adb devices

Command returns

List of devices attached
W6HDU16325009900 device

Then:

adb reboot bootloader

Phone switches to white screen in FASTBOOT&RESCUE MODE.

To check that fastboot USB drivers are OK, type:

fastboot devices

### If command doesn't print a line like: 516b3414 fastboot, you have to fix USB drivers.

Now enter THE command:

fastboot oem unlock FILL_WITH_YOUR_UNLOCK_CODE

Confirm with enter and wait a moment ... till success is confirmed :

"(bootloader) Unlock success , the device will reboot and factory reset

OKAY [ 0.046s]

Finished. Total time: 0.046s".

Keep Windows command opened and let phone reset Android.

4) FLASH RECOVERY

Configure Android rapidly.

Unplug phone and replug USB.

Go to Settings > About phone.

Tap 7 times on Build number to unlock Developer options.

Go to Settings > Developer options.

Switch ON "Enable OEM unlock" and "USB debugging".

Back to Windows command, type:

adb reboot bootloader

Twice to authorize USB debugging from phone again.

Now that you are back to bootloader, enter:

fastboot flash recovery twrp-3.4.0-0-kiwi.img

Confirm with Enter.

Terminal confirms : "Finished. Total time: 2.711s".

And now:

fastboot boot twrp-3.4.0-0-kiwi.img

### If phone goes in a bootloop, disconnect phone and force shutdown holding Power button.

Welcome to TWRP 3.4 recovery.

TWRP asks for Keep System Read Only ? Swipe to Allow Modifications.

### You don't see this warning screen? Then you'll get "TWRP unable to mount storage" while trying to wipe partitions.

### > in TWRP, go to Reboot > Recovery so Recovery will refresh and popup the partition writing privilege.

In TWRP home screen, go to Wipe > Format data.

This will remove encryption.

Type yes and confirm to format partition.

Go to Reboot > Recovery.

Back to TWRP, go straight to Backup menu.

Select Boot, Data, System, Custom, OEMinfo, EFS and Firmware partitions.

Tap on Select Storage and set Micro SD card.

Swipe to Backup and wait during backup.

### If MicroSD card is too small. Backup on data partition and after backup has ended, go to Mount and connect phone to PC to retrieve TWRP backup folder.

### Store this backup (aka nandroid backup) somewhere safe before going further.

5) WIPE PARTITIONS

Go to Wipe > Advanced Wipe and check Cache, Data, Internal Storage, System and Swipe to Wipe.

6) FLASH ROM, BITGAPPS +/- MAGISK

Back to TWRP Home menu. Then tap on Install > select Storage MicroSD > choose lineage*.zip,

(if you don't see the files, tap on Select Storage and make sure Micro SDCard is active).

then Add more Zips > BiTGApps*.zip,

Optional: Add Magisk*.zip

then Swipe to confirm Flash.

Wait for operation to end.

Then tap Wipe cache/dalvik, swipe to confirm,

then Reboot System.

Android 10 is installed !

Wait for the phone to boot during 10 minutes.

7) ROOT WITH MAGISK (OPTIONAL)

### Only if you flashed Magisk via TWRP recovery

Do not connect to Android account.

Magisk root starts with Android.

You can manage permissions and extra modules with Magisk Manager app.

Open Files app > Install Magisk.apk.

Then in Magisk goto Settings > Hide magisk app and give it a name, switch Zygisk option ON.

Go to Modules Tab > Install from Storage: MagiskHidePropsConfig and safetynet.

Go to Developer options to disable Android debugging (ADB).

Reboot phone.

You can use yasnac app to check Safetynet passes.

Then with Files App: install netflix and disney+ if needed.

10) OTHER APPS

- You can use GPS Status & Toolbox for faster GPS fix.

- Developer options

Settings > About phone.

Tap 7 times on build number.

Back to Settings > System > Advanced > Developer options

Select USB Configuration > set MTP

Set Windows animation scale, Transition animation scale and Animator duration scale to .5x

That's it.

Enjoy ;-)

djibe

Thanks: @BadDaemon, LineageOS team, TWRP team, BitGapps team, TopJohnWu (Magisk)