Honor 9 Lite (huawei-leland)

Contributors

 * aa13q

How to enter flash mode
With power off, press power und volume-down at the same time, with the usb-cable plugged in.

How to flash
As Huawei changed the partition layout, there is no boot partition anymore. Instead there is a ramdisk and a seperate kernel partition. In order to create the correct images the following steps need to be done:


 * 1) Get mkbootimg and unpackbootimg i.e. from here or from archlinux aur repo.
 * 2) You can extract the kernel-image and ramdisk from the created boot.img with unpackbootimg.
 * Use the extracted files in the following steps.
 * 1) Create ramdisk image:
 * 2) Create kernel image:
 * 3) Flash ramdisk and kernel with fastboot:
 * 4) Flash rootfs to sdcard to boot it
 * 1) Flash ramdisk and kernel with fastboot:
 * 2) Flash rootfs to sdcard to boot it
 * 1) Flash rootfs to sdcard to boot it
 * 1) Flash rootfs to sdcard to boot it

About
OASES stands for Open Adaptive Security Extensions. Its a Tradmark of Baidu and seems to have something todo with adaptive kernel live-patching. For now there were no disadvantages from disabling it.

Location in menu
-> Device Drivers -> Huawei Platform Drivers -> Huawei platform drivers support (HUAWEI_PLATFORM [=y]) In Order to compile the kernel OASES had to be disabled.

Additional Info
The display brightness can be set by writing a value between 0 and 9960 to.

Links

 * JohnBergago's Huawei_Mediapad_M5_pro_(huawei-cameron)
 * penn5 android kernel sources
 * Dil3mm4's labyrinth kernel for huawei p8 lite 2017
 * Initial merge request (not merged)