Join us on Tl   Wh

Hovatek Forum DEVELOPMENT Android [Tutorial] How to extract proprietary vendor blob files from Android firmware

[Tutorial] How to extract proprietary vendor blob files from Android firmware

[Tutorial] How to extract proprietary vendor blob files from Android firmware

hovatek
hovatek
hovatek
Administrator
49,778
11-05-2024, 10:02 AM
#1



This guide will explain the procedure to extract proprietary vendor blobs from an Android device's firmware. You'll need this along with your kernel and device tree to build Lineage and AOSP-based ROMs from source.

Requirements

  • Device tree for your device (created using dumpyara and aospdtgen)
  • system.img extracted into a folder named system. For devices with a super partition, ensure to copy the contents of partitions like odm, product, vendor, etc into their corresponding folders in the root of the system folder.
  • Extract-utils @ [ Login to download]
  • A Linux-based PC. Windows users can use VMWare on Windows

How to extract vendor blobs from Android firmware


Follow the steps below to extract proprietary vendor blobs

  • Create a folder where other files will be extracted (let's call it Hovatek)
  • Extract extract-utils.zip into the Hovatek folder and you should have a tools folder
  • Copy your device tree into the Hovatek with the folder structure device > vendor_name > code_name e.g device > xiaomi > marble. The marble folder will contain the device tree files.
  • Create empty folders with the structure vendor > vendor_name > code_name e.g vendor > xiaomi > marble
  • Copy the system folder into the Hovatek folder
  • Your Hovatek folder should now contain four folders i.e tools, device, vendor and system
  • Navigate into the device tree folder (marble in this example) in Linux and run the following commands
    Code:

    chmod +x setup-makefiles.sh
    ./extract-files.sh ../../../system
  • Wait till it's done done.

Important Notice
  • If you encounter  $'\r': command not found on extract_utils.sh then run the command below
    Code:

    sed -i 's/\r$//' extract_utils.sh
  • If you encounter a not found error then check the affected file(s) and copy them over.
This post was last modified: 18-05-2024, 02:16 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
Join us
WhTlYt