I can't access my phone after a factory reset, because the Gboard doesn't work! After doing a factory reset on my Huawei p9 lite because it was missing a lot of features like the calculator, alarm, notes and even Bluetooth. After it asks me to log in my linked google account, I can't type my email because the Gboard doesn't work, it shows up the microphone and it doesn't even want to listen to my voice!
install latest platform-tools
download service ROM according to your phone model
connect usb-cable and enter fastboot mode (Vol Dn + Power)
install usb-drivers
flash the common partitions only
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cust cust.img
fastboot flash vendor vendor.img
fastboot flash product product.img
fastboot flash version version.img
fastboot format:ext4 cache
fastboot format:ext4 userdata