nlitsme/extfstools

segfault on Pixel 3a Android 9 image

pandasauce opened this issue · 2 comments

Firmware: https://dl.google.com/dl/android/aosp/sargo-pq3b.190801.002-factory-56817dc2.zip

Running ext2rd system.img system/build.prop:build.prop causes a segfault:

➜  sargo-pq3b.190801.002  ext2rd system.img system/build.prop:build.prop
sparse: v00000001 h:001c c:000c b:00001000 nblk:000c2c00 ncnk:00000017,  cksum:00000000
end of sparse: c2c00000
 23 entries in sparse map
first: 0-8002000: copy from 28
last:  c2bff000-c2c00000: copy from 8e78c130
ehmagic=6818 -  18 68 0c 38 f7 f2 a8 e0 20 46 ea f2
[1]    145861 segmentation fault (core dumped)  ext2rd system.img system/build.prop:build.prop

I still have to implement support for ext4. I think this is why this fails.

Same problem

  inflating: /build/host/../factory/system.img  
+ /build/host/../host/ext2rd /build/host/../factory/system.img system/build.prop:/build/host/../factory/taimen.9-build.prop
sparse: v00000001 h:001c c:000c b:00001000 nblk:000a0000 ncnk:00000017,  cksum:00000000
end of sparse: a0000000
 23 entries in sparse map
first: 0-8002000: copy from 28
last:  9ffff000-a0000000: copy from 8b2bc130
EXCEPTION: blocknr too large