项目作者: BenSartor

项目描述 :
downloads google aosp factory image and extracts vendor.img
高级语言: Shell
项目地址: git://github.com/BenSartor/extract-vendor-image.git
创建时间: 2018-08-29T20:33:46Z
项目社区:https://github.com/BenSartor/extract-vendor-image

开源协议:GNU General Public License v3.0

下载


extract-vendor-image


Screenshot vendor image mismatch

After upgrading my Nexus 5x to a new lineageos version it may sometimes show me a warning complaining about a vendor image mismatch.
In order to fix this, one has to download the right factory aosp image from google, extract the vendor.img file and flash it.
This bash script automates this process.

  1. ./extract-vendor-image.sh opm6.171019.030.h1

Use the vendor image id presented in the warning as parameter.

After succeeding the script will present you the commands to flash the extracted images on your phone.

  1. adb reboot bootloader
  2. fastboot flash radio vendor-image-bullhead-opm6.171019.030.h1/radio-bullhead-m8994f-2.6.41.5.01.img
  3. fastboot flash bootloader vendor-image-bullhead-opm6.171019.030.h1/bootloader-bullhead-bhz31b.img
  4. fastboot flash vendor vendor-image-bullhead-opm6.171019.030.h1/vendor.img

Other devices

Theoretically this script should work with Nexus and Pixel devices, too. E.g. for a Nexus 6p

  1. DEVICE=angler ./extract-vendor-image.sh opm6.171019.030.h1

But as I do not own one, I cannot test it :)

Of course the good old Nexus 5 and other older devices do not need this.