Skip to content

How to repack after extracting system.img? #9

@fulalas

Description

@fulalas

Sorry to ask such a silly question, but I love the project and just wanted to included hosts file and remove a few apks, however, after extracting system.img using simg2img and mounting, I'm failing to repack to a valid img file using make_ext4fs and finally img2simg, which gives the following output:

img2simg: sparse.cpp:131: int write_all_blocks(sparse_file*, output_file*): Assertion ``pad >= 0' failed.
Aborted

I read some tutorials saying that I should have file_contexts (when running make_ext4fs), but I couldn't find it anywhere. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions