Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to repack after extracting system.img? #9

Open
fulalas opened this issue Mar 12, 2021 · 0 comments
Open

How to repack after extracting system.img? #9

fulalas opened this issue Mar 12, 2021 · 0 comments

Comments

@fulalas
Copy link

fulalas commented Mar 12, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant