Help for repack system.img.ext4 unpacked in windows as sparse - Android General

Hi guys
I need help to repack ext4fs as sparse in windows (SAMSUNG). And make a flashable system file for odin.
Thanks

Related

[Q] [RECOVERY] How to unpack P6200 official recovery.img

hi, I want build a costom recovery.img to boot ubuntu armhf.
I have to edit ramdisk image from recovery.img.
but i can not unpack recovery.img.
my recovery.img from P6200OZHLPM_P6200ZCLPM_HOME.tar
i use split_bootimg.pl
output:
[email protected]:~$ ./split_bootimg.pl recovery.img
Android Magic not found in recovery.img. Giving up.
i use unpack-bootimg.pl
[email protected]:~$ ./unpack-bootimg.pl recovery.img
Could not find any embedded ramdisk images. Are you sure this is a full boot image?
how to costom recovery.img like p6200-clockworkmod-6.0.1.9.img?
could you help me? thanks.

[Q] extracting ramdisk from boot.img keeps failing using unpacking tools (Pomp C6)

Hello
I'm trying to make a custom rom (for a Pomp C6) and need to adapt the bootclasspath.
Plenty of tutorials etc, so thats not the problem.
The problem i have is that none of the tools are able to correctly extract the ramdisk from my boot.img
I get errors like:
Code:
./unpack-bootimg.pl boot.img
Could not find any embedded ramdisk images. Are you sure this is a full boot image?
splitboot.pl apparently can extract at least something, but the resulting ramdisk image is not a gz
Code:
./split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 4376464 (0x0042c790)
Ramdisk size: 636685 (0x0009b70d)
Second size: 0 (0x00000000)
Board name: Release.V2.03
Command line:
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
gzip -dc ../boot.img-ramdisk.gz | cpio -i
gzip: ../boot.img-ramdisk.gz: not in gzip format
cpio: premature end of archive
I already searched for a solution but cannot find any (All tutorials seem to have no problem extracting the ramdisk)
Am i overlooking something?

[DEV][Tools] simg2img for Windows

Hello, although I'm working in Linux (VM too) I rewrote the SIMG2IMG so far for Windows (PE32, x86)
Usage: simg2img.exe -i <chunked Image file name> -o <outputname>
Optional: -d for debugging messages, listing all chunks of the image (.ext4.img) files to stdout (in case there are partial image files )
MD5: e5fc02b2f27756c1de270d31e29447e6 *simg2img.zip
cant unpack system.img (3.48GB) Samsung G928P . After Unpacking image size 164MB.
Error calling ftruncate() to set the image size
simg2img.exe -i system.img -o system.ext4
packed img filename: system.img
output img filename: system.ext4
Error calling ftruncate() to set the image size
Note: system.img is 1.9G.
Victor_Hsu said:
simg2img.exe -i system.img -o system.ext4
packed img filename: system.img
output img filename: system.ext4
Error calling ftruncate() to set the image size
Note: system.img is 1.9G.
Click to expand...
Click to collapse
I got the same problem when I ran this on system.img.ext4 from the Samsung Galaxy S5 Lollipop firmware. However, the output file still looked like it was the right size, and EXT2Read opened and extracted it without a problem.
MAXIMATOR said:
cant unpack system.img (3.48GB) Samsung G928P . After Unpacking image size 164MB.
Click to expand...
Click to collapse
same here output is only 104mb while system.img is 3.55 gb
Same problem here:
packed img filename: system.img
output img filename: system.img2
Error calling ftruncate() to set the image size
Output file was 2.8GB, input file 2.4GB wich looked OK, so I tried opening the output file with ext4_unpacker_exe wich failed, then I tried opening it with ext2explore-2.2.71 and it was able to open it !!!!
Thanks
your tool not working, Error calling ftruncate() to set the image size
https://github.com/KinglyWayne/simg2img_win
this work better
G:\vbox_share\simg2img>simg2img.exe -i userdata.img -o new-userdata.img
packed img filename: userdata.img
output img filename: new-userdata.img
Wrote "new-userdata.img"
The userdata.img only 21.4MB , but the new-userdata.img is 1.19 GB . Is right ?
I couldn't get this version to work, but I did find another version that did. I then created this thread with complete instructions: [GUIDE]How to extract /system from Samsung S7 OTA/FW in Windows without a Phone Hope it helps. Thanks!
kevin71246 said:
I couldn't get this version to work, but I did find another version that did. I then created this thread with complete instructions: [GUIDE]How to extract /system from Samsung S7 OTA/FW in Windows without a Phone Hope it helps. Thanks!
Click to expand...
Click to collapse
does anyone know why it would say bad magic?

How to repack cache.img file (after changing )

How to repack cache.img file (after changing ) please tell me anybody
I have same problem

how to convert super.img to raw?

hello
i try with simg2img method but its not working get this error
simg2img.exe super.img super.raw
Invalid sparse file format at header magic
Failed to read sparse file
my device partitions is super os12
its kinda eros etc i don,t know much about it
so is there any way to convert it to raw?
Have you found any solution?

Categories

Resources