Originally Posted by JustArchi
ArchiKitchen doesn't support non-simg .img files, that's why you're getting bad magic error.
I'll check zipalign issue when I have some time. Now you told me it happens in barebones mode
Did dsixda kitchen support your .img files? If so I can easily add support for that.
I don't know if it can help, but i'm using this tool to extract non-simg system.img files.I'm using it under windows, but i think is available also for linux
ImgExtractor version 1.3.4 Created by And_PDA Based on sources ext4_unpacker
"Extractor for images in EXT2\EXT3\EXT4\YAFFS2\CRAMFS filesystem formats
support SPARSE\SIN\MOTO structure formats
ImgExtractor.exe <ImageForExtract.img(sin)> [<OutputDir>] [option]
-i for more info in the process of extracting and extract .journal from image
-s for display information about the superblock of EXT image
-conv for convert image from SPARSE\SIN(EXT4) format to EXT4 format
ImgExtractor.exe <ImageForExtract.img> [<OutputDir>] [-i],
ImgExtractor.exe <ImageForExtract.SIN> [<OutputDir>] [-i],
ImgExtractor.exe <ImageSPARSE.img> <ImageEXT4.img> -conv,
ImgExtractor.exe <ImageForConvert.SIN> <Image.EXT4> -conv
ImgExtractor.exe <ImageForExtract>.img -s,
ImgExtractor.exe <ImageForExtract>.sin -s,
Press Enter to continue..."
I used to extract system.img for moto.x and it is easy to use and works fine.