1

I'm trying to unpack Android 13/14 ROMs from a set of different vendors but it seems that all images using Android 13+ have some changes in how the filesystem images are built. Using simg2img (simg2img ./system.img ./system.raw) I'm capable of converting the sparse system.img file of a ROM correctly into some unknown image format.

Inspecting the converted image shows that it no partition is detected. For Android version below 12 usually it was an ext4 partition.

file ./system.raw ./system.raw: data 

However, the file command shows that it is recognized as a data partition. So I guessed that we need to identify some offset to be able to mount or convert this image correctly. I tried to identify if the partition is a F2FS image (following this tutorial) but wasn't successful in identifying the magic bytes for F2FS.

Does anyone know how to mount or convert Android 13+ ROMs? Are there any good script out there to automate it?

1 Answer 1

1

if it's of the dynamic partition type, I had success using parse-android-dynparts.

Make sure to be root when running dmsetup. And interestingly I couldn't mount when using losetup read-only.

simg2img super.img super.raw losetup /dev/loop0 super.raw dmsetup create --concise "$(parse-android-dynparts /dev/loop0)" 

example partition and fs (f2fs for you)

mkdir -p inspect mount -t ext4 /dev/mapper/dynpart-system_a inspect/ 

there's also this answer.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.