Closed hosiet closed 6 months ago
image conversion "sparse image -> raw ext4 image " is supported. But image mounting and editing aren't supported.
BTW, what's your ideal work flow on vendor_dlkm.img ? As the output will be raw ext4/erofs image file, we can use some linux tools(eg. udisksctl) to mount/view/unmount it. And such operations aren't integrated in the tool.
Thanks for your work. Ideally I am looking for an end-to-end solution on unpacking/editing/repacking an existing vendor_dlkm.img
file, but seems that it is not available yet.
For workflow: the mount/view/umount operations should not be a major problem; I was even using regular mount(8)
on Linux and that works.
Besides, with current git HEAD 68afa1834e677d6a5ded459fa2bd35145c7f14cd the unpack action cannot give any results. After running ./gradlew unpack
, ./build/unzip_boot/
dir is empty. I have set bHackingMode = true
in build.gradle.kts
file.
I am attaching the file sample here as well.
% file vendor_dlkm.img
vendor_dlkm.img: Linux rev 1.0 ext2 filesystem data, UUID=15718fdd-fd35-585a-a26d-2215dc1f0c1b, volume name "vendor_dlkm" (extents) (large files) (huge files)
7z is required to extract ext4.
19:04:54.694 [main] INFO Helper - 7z x build/unzip_boot/vendor_dlkm.img -y -obuild/unzip_boot/vendor_dlkm
I just submited a commit to support the "pack" task. Nicely have a try ~
I am wondering if you would like to add support for
vendor_dlkm
images, which is becoming increasingly common as described in https://source.android.com/devices/bootloader/partitions/vendor-odm-dlkm-partition . You may find such partition image from current Pixel 6 ROMs.