Huawei Honor 8 (huawei-frd)

The Huawei Honor 8 has been updated to Android 8 in some regions, while others are stuck on Android 7.0. Android 8 uses a different partition layout and kernel. This port is based on Android 7.0 kernel and probably won't work on devices updated to Android 8. If you have a device that got the Android 8 update you might need to make a port based on the Android 8 kernel. Take a look at huawei-warsaw for information on dealing with the Android 8 partition layout.

Contributors

 * Sandelinos

Maintainer(s)

 * Sandelinos

Unlocking the bootloader
Huawei has stopped providing unlock codes for their devices so you'll need to pay for a code from a 3rd party or use PotatoNV, which requires removing the back cover with a hairdryer. See Bootloader. PotatoNV overwrites your fastboot with a generic one and causes 'fastboot boot' and flashing the boot partition to not work.

How to enter flash mode
With the device powered off, hold and plug in the USB.

Installation

 * 1) Unlock the bootloader.
 * 2) * See Bootloader
 * 3) Follow the Installation guide to flash rootfs.
 * 4) (optional) install TWRP
 * 5) * TWRP from twrp.me is only compatible with devices updated to Android 8.
 * 6) * Here is a TWRP compatible with Android 7.0 devices
 * 7) Flash TWRP to recovery partition
 * 8) * fastboot flash recovery twrp-3.1.1-1-frd.img
 * 9) Boot into TWRP and install twrp to boot partition (We'll overwrite recovery with postmarketOS kernel later)
 * 10) Flash the kernel to the recovery partition
 * 11) * The boot partition is just 32 MB, while the boot.img we get from pmbootstrap is ~35 MB.
 * 12) * If you unlocked your bootloader with PotatoNV fastboot won't be able to flash to the boot partition even if it fit.
 * 13) * pmbootstrap flasher flash_kernel --partition recovery