[Honor 7X  Guides, News, & Discussion] XeoNoX:
[GUIDE] [ HOW TO ] Treble ROM on the Honor 7X From Stock Guide by Christopher Lamb

Today I decided to embark on the journey of installing something to rid myself of EMUI. I was tired of looking at it. Switching between my Pixel 2 and 7X was a jarring experience to say the least. Along my journey I came to find out that the unlock code hosted on some EMUI subdomained website by honor directly was down and seems to have been for months so I needed another solution. I tried contacting Huawei on Twitter to get it reset like many have suggested, but never heard back from them so here I was now with a problem. I looked for other guides and dug through XDA. Eventually I found a guide that was almost correct enough but had a lot of un needed info and I just wanted to cut to the chase. So here is my guide to do just that for the rest of you.

My Phone:​

United States Model BND-L24

Running stock Oreo or newer (This is Required for treble partitions). The update that came through the other day.

Unlocking the Bootloader​

This was actually a rather painless process once I realized what was involved. The method I used consisted of a small payment $4.94 USD. Which as far as I could see is the cheapest, and is required. I should also say I hate paying for things online that look kinda shady. I used bitcoin and did so in a VM. Call me paranoid, but….

You are going to need to download a few things:

https://www.dc-unlocker.com/buy (not a download but buy 4 coins, and save the login info it gives you then validate your email with them or your account will show as blocked in HCU)

https://hcu-client.com/

http://consumer.huawei.com/minisite/HiSuite_en/index.html

Some treble rom of your choice off XDA or something. I ended up going LineageOS. The 7x is partition type A only and arm64.

Now for the fun part where we set everything up on your phone:

Go to Settings > Security & Privacy then select Allow HiSuite to use HDB.

Go to Settings > System > About Phone and tap Build Number about 5 times until you are developer.

Press back and go into the newly created developer options menu item then select Android Debugging.

Type *#*#2846579#*#* into your dialer app. A menu will pop up and follow Background Setting > USB Ports Setting then select Manufacture Mode.

Plug in your phone to your computer and setup your phone with HiSuite let it do its thing and install drivers.

Run HCU and login with the credentials they sent you after purchasing your credits. On login success make sure in the top right corner phone connectivity is set to Autodetect and click on Read Phone Info. Once this has succeeded go to the Unlock tab and click Read Bootloader Code. This will take a minute.

Save the resulting code just in case your computer crashes or something.

Completely shutdown your 7X. Hold volume down, and plug into your computer while still holding volume down to get it to boot into fastboot.

Go back to file explorer and open your HCU folder that was extracted before installing it. Press Win Key + D type in CMD and then Enter. Then enter the following command: fastboot oem unlock {enter your unlock code from earlier without the curly brackets} Then press enter. It will say some things about wiping your data. It didn't for me but it will if you go any farther.

Installing the ROM​

Turn off the phone once it is done and then put it back in fastboot (hold the volume down button, and plug the USB cable into your phone from the computer). Back in command prompt enter fastboot flash system {full path to the .img you downloaded for treble} press enter and let it copy over. Shouldnt take too long.

Once completed enter fastboot reboot and be ready to hold volume up when prompted or you will bootloop forever. This will open a new menu and just select to factory reset the device. Then boot as normal once this is done.

Done!

original source: https://medium.com/@chris.lamb/treble-on-the-honor-7x-from-stock-df1d091d3206