Recently my Huawei P9 somehow got updated to EMUI 5.0, and everything was going well except the updater setting and camera app was gone and the flashlight would not turn on. I decided to backup my data and perform a factory reset. However, the reset failed and when I turned it on the only keyboard installed was Google Voice Typing and I coudn't use it because I'm Asian and it woudn't recognize what I said. I tried skipping all the steps but it seemed to be stuck at "checking info". After countless times of resetting it i found out I could connect to wifi when I reset it from eRecovery. After doing so, I installed a keyboard using the built in SD card. I tried to use ADB but it only managed to connect once and I made a typo and I cound't connect again. I tried rolling it back but I simply coudn't get past the factory reset stage. Any help would be appreciated, thanks in advance.
Edit: I forgot to mention that I unlocked the bootloader and flashed TWRP onto my device(though I'm not sure if the failed reset removed it).