Skip to content

About

No description, website, or topics provided.

Resources

Stars

187 stars

Watchers

6 watching

Forks

Repository files navigation

extract.erofs

使用 erofs-utils 实现的提取erofs镜像的工具
提取包含:

  • fs_config
  • files_context

A tool for extracting erofs images implemented using erofs-utils
Extract contains:

  • fs_config
  • files_context
  • mkfs_option

fs_config: /bin/cnd 1000 1000 0755 capabilities=0x1000001400
files_context: /bin/hw/android\.hardware\.bluetooth@1\.0-service-qti u:object_r:hal_bluetooth_default_exec:s0
mkfs_option:

Filesystem created:    Thu Jan  1 08:00:00 2009
Filesystem UUID:       xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
mkfs.erofs options:    -zlz4hc -T 1230768000 -U xxxxx --fs-config-file=/path/to/configdir/x_fs_config --file-contexts=/path/to/configdir/odm_file_contexts x_repack.img /path/to/src/x

cmdline:

$ extract.erofs --help
usage: [options]
  -h, --help              Display this help and exit
  -i, --image=[FILE]      Image file
  --offset=#              skip # bytes at the beginning of IMAGE
  -p                      Print all entrys
  -P, --print=X           Print the target of path X
  -x                      Extract all items
  -X, --extract=X         Extract the target of path X
  -c, --config=[FILE]     Target of config
  -r                      When using config, recurse directories
  -s                      Silent mode, Don't show progress
  -f, --overwrite         [default: skip] overwrite files that already exist
  -T#                     [1-X] Use # threads,  default: -T0, is X/2
  --only-cfg              Only extract fs_config|file_contexts|fs_options
  -o, --outdir=X          Output dir
  -V, --version           Print the version info
$ extract.erofs -V
  erofs-utils:            x.x.x-gxxxxxxxx
  extract.erofs:          x.x.x-000000000
  Available compressors:  lz4, lz4hc, lzma, deflate, zstd
  extract author:         skkk

Contributors

About

No description, website, or topics provided.

Resources

Stars

187 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages