RogerBW's Blog

Fixing "Vendor Image Mismatch" on LineageOS 17 August 2018

Every so often, after a LineageOS upgrade, the device starts to complain on reboot about a "Vendor Image Mismatch": the underlying Android code has become outdated. LineageOS doesn't fix this itself; this is firmware which the operating system can't change. Less forgivably, the LineageOS documentation doesn't appear to mention the problem. Here's a step-by-step guide to dealing with it, using the Linux command line.

You will need a USB cable to link computer and device, and fastboot installed on the computer; you probably used both of these to get LineageOS onto the device in the first place.

Check the Google Android Factory Images page, and find the images for your device. (These will have the same short name as the LineageOS build, e.g. "angler" for a Nexus 6P.) Download to the computer the file that matches the version number that LineageOS has been asking for, probably the latest one; as I write, having just done such an update, this is "8.1.0 (OPM6.171019.030.H1, Aug 2018)", and "OPM6.171019.030.H1" is what the warning message on the device specified.

Extract from that zip file three files (where "(something)" is more version information, that will change with each update):


From the image-(something).zip you just extracted, extract vendor.img. Those three img files are all you'll need.

Next, on your Android device, select Settings, System and Developer Options. You've probably already enabled Developer Options to get LineageOS onto the device, but if you don't already have it, find the device's build number (Settings, System, About device, though this varies between devices) and tap on it seven times.

In Developer Options, make sure Advanced Restart is turned on, then under Debugging turn on "Android debugging".

Reboot the device to the bootloader (on mine, that's a matter of holding down the power button then selecting "Restart" and "Bootloader" from the menus). Wait until you see the bootloader screen (an image of the Android logo with an open hatch).

Connect the USB cable from computer to device.

On the computer, run fastboot devices. The device may ask you to authorise the debugging connection if you haven't done it with this computer before. Make sure that you see a serial number in response; that tells you that the connection is working.

Now for the actual flashing process (in no particular order), using the img files you extracted earlier:

fastboot flash radio radio-(something).img
fastboot flash bootloader bootloader-(something).img
fastboot flash vendor vendor.img

Disconnect the USB cable, and allow the bootloader to start the device. No more vendor image mismatch warning.

ADB may have been disabled automatically, but check anyway: Settings, System, Developer Options, Debugging, Android Debugging should now be off.

Comments on this post are now closed. If you have particular grounds for adding a late comment, comment on a more recent post quoting the URL of this one.

Tags 1920s 1930s 1940s 1950s 1960s 1970s 1980s 1990s 2000s 2010s 3d printing action advent of code aeronautics aikakirja anecdote animation anime army astronomy audio audio tech aviation base commerce battletech beer boardgaming book of the week bookmonth chain of command children chris chronicle church of no redeeming virtues cold war comedy computing contemporary cornish smuggler cosmic encounter coup covid-19 crime crystal cthulhu eternal cycling dead of winter doctor who documentary drama driving drone ecchi economics en garde espionage essen 2015 essen 2016 essen 2017 essen 2018 essen 2019 essen 2022 essen 2023 existential risk falklands war fandom fanfic fantasy feminism film firefly first world war flash point flight simulation food garmin drive gazebo genesys geocaching geodata gin gkp gurps gurps 101 gus harpoon historical history horror hugo 2014 hugo 2015 hugo 2016 hugo 2017 hugo 2018 hugo 2019 hugo 2020 hugo 2021 hugo 2022 hugo 2023 hugo 2024 hugo-nebula reread in brief avoid instrumented life javascript julian simpson julie enfield kickstarter kotlin learn to play leaving earth linux liquor lovecraftiana lua mecha men with beards mpd museum music mystery naval noir non-fiction one for the brow opera parody paul temple perl perl weekly challenge photography podcast politics postscript powers prediction privacy project woolsack pyracantha python quantum rail raku ranting raspberry pi reading reading boardgames social real life restaurant reviews romance rpg a day rpgs ruby rust scala science fiction scythe second world war security shipwreck simutrans smartphone south atlantic war squaddies stationery steampunk stuarts suburbia superheroes suspense television the resistance the weekly challenge thirsty meeples thriller tin soldier torg toys trailers travel type 26 type 31 type 45 vietnam war war wargaming weather wives and sweethearts writing about writing x-wing young adult
Special All book reviews, All film reviews
Produced by aikakirja v0.1