We're hiring! Apply Now

Hovatek Forum DEVELOPMENT Android [Tutorial] How to unpack contents of super.img in EROFS format

[Tutorial] How to unpack contents of super.img in EROFS format

[Tutorial] How to unpack contents of super.img in EROFS format

hovatek
hovatek
hovatek
Administrator
49,832
11-03-2024, 04:21 AM
#1



EROFS stands for Enhanced Read-Only File System. It is a read-only filesystem introduced in Linux 4.19. It supports compression and deduplication, and is optimized for read performance.

This guide will explain how to unpack super.img to get system, vendor, product and odm. We'll also show how to extract these if they're in EROFS format e.g system

Requirements


How to unpack images in EROFS format


  1. Extract the binaries and super.img into the same folder.  Your folder should contain lpunpack, erofsUnpackRust, simg2img and super.img
  2. Run this command to unsparse the super.img

    Code:

    ./simg2img super.img super.raw

  3. Unpack super.raw using the command below

    Code:

    ./lpunpack super.raw

  4. Extract system (mine is system_a.img) using the command below

    Code:

    ./erofsUnpackRust_x64linux system_a.img
This post was last modified: 11-03-2024, 04:23 AM 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