How to solve simg2img error "Invalid sparse file format at header magi"?

I installed android-tools-fsutils using the terminal on Ubuntu 16.04 LTS and ran simg2img to extract RemixOS's system.img file but each time I get the same error - "Invalid sparse file format at header magi."

Can someone tell me how to fix it?

1 Answer

Okay, so I figured out what the problem was. Turns out simg2img converts system.img to raw img, but RemixOS's system.img is already a raw image. So, I just had to mount the image as a loop device.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like