srlabs / extractor Goto Github PK
View Code? Open in Web Editor NEWExtractor: The Android firmware image extraction tool
License: Apache License 2.0
Extractor: The Android firmware image extraction tool
License: Apache License 2.0
Today I tried to extract a EROFS image, but I got stuck since EROFS_INODE_FLAT_COMPRESSION is not implemented. I know you're probably already aware of it, I just wanted to open this issue as a reminder and ask if there's an ETA.
erofs_tool.py extract system_dlkm.img out
0x00000400-0x00000480: SUPER
root_nid=38
Traceback (most recent call last):
File "/home/yu/Downloads/erofs_tool.py", line 655, in <module>
main()
File "/home/yu/Downloads/erofs_tool.py", line 62, in main
args.target(args)
File "/home/yu/Downloads/erofs_tool.py", line 77, in command_extract
erofs = Erofs(args.erofs_image)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yu/Downloads/erofs_tool.py", line 237, in __init__
self.root_inode = self.get_inode(self.super.root_nid, FileType.EROFS_FT_DIR)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yu/Downloads/erofs_tool.py", line 244, in get_inode
return DirInode(self, nid)
^^^^^^^^^^^^^^^^^^^
File "/home/yu/Downloads/erofs_tool.py", line 454, in __init__
super(DirInode, self).__init__(erofs, nid)
File "/home/yu/Downloads/erofs_tool.py", line 295, in __init__
assert self.inode_header.i_advise & 0x01 == 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Can this issue be resolved?
mmap cannot run in wun
does it support running in docker ?
At the moment extractor lacks support for system_ext and product partition extraction.
it is convenient when is use scripts, and if fs not support symlink it will create file with text to link, or something like this
When running extractor
on a vendor.img image, it returns the error message
Traceback (most recent call last):
File "./extractor.py", line 2363, in <module>
main()
File "./extractor.py", line 65, in main
extractor.extract(output_system_tar=args.tar_output, output_system_dir=args.system_dir_output, output_boot_img_path=output_boot_img_path, output_recovery_img_path=output_recovery_img_path, allow_missing_vendor=args.allow_missing_vendor)
File "./extractor.py", line 2126, in extract
next_handler = handler.get_next_handler()
File "./extractor.py", line 2061, in get_next_handler
check_result = handler.check()
File "./extractor.py", line 1616, in check
raise ValueError("ErofsHandler: Detected EROFS filesystem but self.image_type is not ImageType.SYSTEM or ImageType.VENDOR")
ValueError: ErofsHandler: Detected EROFS filesystem but self.image_type is not ImageType.SYSTEM or ImageType.VENDOR
Is this an issue similar to #3?
When compiling extractor
on Ubuntu 22.04, it does not run due to the error in the subject line.
It appears to be a common error with other projects as well. A workaround is to compile extractor
in a different version of Linux (like Ubuntu 20.04). The error appears in Ubuntu 22.04.
(venv) krystian@Lenovo-X240:~$ sudo ./extractor.py 8227L-8.bin --system-dir-output wyp
Traceback (most recent call last):
File "./extractor.py", line 29, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.