Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datatypevoid/430fb65f482815695bf300c9408cde35 to your computer and use it in GitHub Desktop.
Save datatypevoid/430fb65f482815695bf300c9408cde35 to your computer and use it in GitHub Desktop.

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 explanations in xda-developers.

PREREQUISITE

This assumes:

  • you already know a bit about flashing you android device and you already installed TWRP.
  • 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

In case link is broken find it yourself:

2- Check checksum is f5d53a67662d1b4c2b2325813d823fc49ad9fb4a5b5361e91c3aff00157c1ddf

In terminal, check downloaded zip checksum:

`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:

cd bullhead-n2g47f

4- unzip bullhead-n2g47f/image-bullhead-n2g47f.zip

Then enter extracted directory:

cd image-bullhead-n2g47f

5- copy vendor.img into your device

You can copy it to sdcard

6- reboot to bootloader

  • Manually
    • by holding buttons: power + volume down,
  • by adb:
    adb reboot bootloader

7- restart recovery

In TWRP:

install image: vendor.img as vendor partition (check vendor when asked)

Now reboot system and see it is fixed, no more alert.

Wait... what about bootloader and radio?

We just fixed the origin of the error message but your android is not fully updated.

Next steps will just take less than a minute.

For radio and bootloader we will use fastboot (as suggested in xda-developers).

8- reboot to bootloader

  • Manually
    • by holding buttons: power + volume up + volume down,
  • by adb:
    adb reboot bootloader

9- On you computer, cd within image-bullhead-n2g47f — extracted directory in step 3 — directory:

cd image-bullhead-n2g47f

10- flash bootloader

You may be in the bootloader here before going on.

fastboot flash bootloader bootloader-bullhead-bhz11l.img

11- flash radio

fastboot flash radio radio-bullhead-m8994f-2.6.37.2.21.img

Now you are done, your Nexus 5x is fully updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment