# NEXUS 5X: Fix lineage 14.1 OS vendor mismatch error (N2G47F) Issue is due to the fact that lineage 14.1 bullhead nightlies are based on the 7.1.2 N2G47F (Apr 2017) monthly update from google. More explations in [xda-developers](https://forum.xda-developers.com/nexus-5x/orig-development/rom-cm14-1-nexus-5x-bullhead-t3496798). ## PREREQUISITE This assumes: - you already know a bit about flashing you android device and you already installed [TWRP](https://twrp.me/devices/lgnexus5x.html). - you already have `adb` / `fastboot` installed and you know a bit about it - you are on macOS (*I give some terminal command from macOS*) ## 1- Download `factory image` from `https://developers.google.com` Download from official [Nexus 5x N2G47F image](https://dl.google.com/dl/android/aosp/bullhead-n2g47f-factory-f5d53a67.zip) In case link is broken find it yourself: - https://developers.google.com/android/images - search `N2G47F` (*CTRL+F - CTRL+V*) ## 2- Check checksum is `f5d53a67662d1b4c2b2325813d823fc49ad9fb4a5b5361e91c3aff00157c1ddf` In terminal, check downloaded zip checksum: ```bash shasum -a 256 bullhead-n2g47f-factory-f5d53a67.zip ``` it should be: `f5d53a67662d1b4c2b2325813d823fc49ad9fb4a5b5361e91c3aff00157c1ddf bullhead-n2g47f-factory-f5d53a67.zip`. ## 3- unzip `bullhead-n2g47f-factory-f5d53a67.zip` Then enter extracted directory: ```bash cd bullhead-n2g47f ``` ## 4- unzip `bullhead-n2g47f/image-bullhead-n2g47f.zip` Then enter extracted directory: ```bash cd image-bullhead-n2g47f ``` ## 5- copy `vendor.img` into your device You can manully copy it to sdcard or by adb: ```bash adb push vendor.img /sdcard ``` ## 6- reboot to bootloader Manually by holding buttons: `power + volume up + volume down`, or by adb: ```bash adb reboot bootloader ``` ## 7- restart recovery In TWRP: - install `vendor.img` as vendor (*check it when asked*) __ # **Now reboot system and see it is fixed, no more alert.** ### Wait... what about booloader and radio? For **radio** and **bootloader** we will use `fastboot` (as suggested in [xda-developers](https://forum.xda-developers.com/nexus-5x/orig-development/rom-cm14-1-nexus-5x-bullhead-t3496798)). ## 8- reboot to booloader Manually by holding buttons: `power + volume up + volume down`, or by adb: ```bash adb reboot bootloader ``` ## 9- cd within `image-bullhead-n2g47f` — extracted directory in *step 3* — directory: ```bash cd image-bullhead-n2g47f ``` Now we will just ## 10- flash bootloader