How to mount Android 10 vendor image file

5,504

If you only need to 'READ' the image contents:

sudo mount -o ro v.img somefolder

where "v.img" is your unsparsed ext4 image.

Share:
5,504

Related videos on Youtube

Robin
Author by

Robin

Updated on September 18, 2022

Comments

  • Robin
    Robin over 1 year

    I used to extract Android vendor image via following steps:

    1. Convert sparse image to raw image: simg2img vendor.img v.img

    2. Mount the raw image for copying files: sudo mount v.img somefolder

    However, when I try to do this on Android 10 vendor images (like this one from Google factory images), I always failed at 2nd step:

    mount: wrong fs type, bad option, bad superblock on /dev/loop16, missing codepage or helper program, or other error
    

    And the dmesg shows the following error:

    EXT4-fs (loop16): couldn't mount RDWR because of unsupported optional features (4000)
    

    I searched for these information online and got some potential solution like this one here, but it does not work.

    Does anyone have an idea how can I mount and the new Android vendor image?

  • Robin
    Robin over 4 years
    Thanks a lot for your reminding, I should have thought of it:)
  • Andre Leon Rangel
    Andre Leon Rangel almost 3 years
    what if you need to mount, add files and repack the image?