A Python library to extract files from UBI (Unsorted Block Images) and UBIFS (UBI File System) images. Supports UBI headers, volumes, and UBIFS nodes. Latest version 0.8.13 (requires Python >=3.10). Released about once every few months.
pip install ubi-readerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load a UBI image and extract UBIFS volume contents to a directory.
Pre-decompress the image if using other algorithms.
Iterate over ubi.volumes and pass each volume of type 'UBIFS' to extract_files.
Use extract_files from ubireader.ubifs for UBIFS volumes.
Use ubireader.ubifs only for UBIFS volumes inside UBI images.