Extract *.img files on Windows - Xperia Play General

I've been wandering and wondering about my failed first ROM, and while I was looking for ressources, I found this:
http://android.modaco.com/content/a...es-inside-the-nandroid-img-file/#entry1745667
Unyaffs is used to extract *.img files, but it seems that it only works on Linux. So I searched and found this windows port. I think it can be useful: the 5 "similar threads" I am seeing right above this topic are questions on how to extract .img files

I menage to past that dbus error but after loading some modules i got cant init bnep module ...i give up for now

I think "yaffey" pretty much cover that dont u think??
Sent from my R800i using xda premium

are you also able to extract and repack kernel images with this tool? ??

Related

system.img from ROM zip files?

Hi,
I was wondering if there was a way to convert .zip files of ROMs/themes into system.img files so that they can be booted up via the android sdk emulator?
I've seen that it's possible to launch system.img files in the sdk emulator, but after searching for quite some time I wasn't able to pinpoint a method for creating system.img from update-cm-4.2.12.2-signed.zip (for example).
Thanks.
DT
i made a post about those system.img files earlier here: http://forum.xda-developers.com/showthread.php?t=609090
in theory it's possible using the mkfs.yaffs2 tool, but i'm not sure whether the emulator supports danger SPL roms, because the system image file size is limited in the emulator as well...
http://www.dotphone.org/attachment.php?aid=6
it's the mkfs.yaffs2 tool
see usage here:
http://www.dotphone.org/viewthread.php?tid=32
Hi,
Thanks for the link, but I'm quite a newbie in these things, so could someone please walk me through process? I've downloaded the archive in the link.
How many times do I unzip it (I can unzip it up to three times and then I get 5 files numbered 1 through 5)? Where do I paste it? How do I use it? The explanation in the other thread was slightly too complicated for me sorry
Thanks
DT
/push
Anyone willing to help out a newbie?
bump
I am looking to do the same thing
Get someone to Nandroid backup the ROM.
It creates a system.img, recovery.img, data.img, cache.img and boot.img.
Not the easiest method but it works

SBF Extraction

Anyone know how to extract an sbf file to a computer? Been searching everywhere can't find an answer.
Sent from my DROIDX using Tapatalk
Are you trying to extract apks etc? I can get you started but I don't know all of it (yet) myself.
First you need to unpack the sbf. I've been working with Skrilax_CZ's Motorola Android Firmware depacker (google to find this). Hand it the sbf file and it will unpack the various filesystems into a folder. The good stuff (/system) is in CG39.smg. I believe that it is a cramfs filesystem but with an offset. Technically, one should be able to mount it if one knows the offset then bingo, everything in /system would be seen/able to be copied. This is the first, important part of ROM creation btw since the tool above can also repack the smg files...
However, I've not researched this any further atm. It may be that CG39.smg is also encrypted on a DX. Soon...

[Q] How to load system.img?

I've compiled and installed a modded kernel. I'm trying to figure out how to load AOSP compiled binaries. I've tried using adb flash_image system /sdcard/system.img, but I get "failed with error: 6." Does anyone know what this means or how to load system.img on a Galaxy Tab from VZW? I'm working on reactivating the phone dialer...
the galaxy tab has nothing like fastboot, so its pretty hard to flash it! but u can try to overwrite a stock factory.rfs with the files from ur system.img and flash via odin!
That sounds like a great idea. However, I'm trying to figure out how to put the vendor specific drivers in the system.img, which is mountable and editable. If I could get my hands on an original stock system.img, that'd be awesome.
Sent from my SCH-I800 using XDA App
As far as I know, the Tab doesn't use mtd file system, so I don't think it uses .img extensions.
Not positive though. Somebody correct me if I'm wrong.
I know for a fact that img files are created as the output of an Android system build. This img can be broken apart with standard Linux tools. I've already done this. I've also mounted factoryfs.rfs to a local directory, which allows me to move apps to and from the file system.
Sent from my SCH-I800 using XDA App
If you have a md5 of it too, you should be able to flash it via an advanced restore in CWM recovery. That is if it is only the data that is flashed to /system. otherwise I would suggest converting it to a .fs or .tar and flash via heimdall or Odin (respectively).
What PC tools can I use to open .img files in a nandroid/CWM backup set?
Must I set up an Android ROM cooking kitchen using Virtual Box + Ubuntu, or is there another way?
zyborg said:
What PC tools can I use to open .img files in a nandroid/CWM backup set?
Must I set up an Android ROM cooking kitchen using Virtual Box + Ubuntu, or is there another way?
Click to expand...
Click to collapse
use the attached unyaffs.exe to extract a system.img! simply drag the created system.img onto unyaffs.exe and it will extract alle the files in the same directory!
to rebuild, i think it might be able to create a image file in magic disk maker but im not sure
zyborg said:
What PC tools can I use to open .img files in a nandroid/CWM backup set?
Must I set up an Android ROM cooking kitchen using Virtual Box + Ubuntu, or is there another way?
Click to expand...
Click to collapse
http://android-dls.com/wiki/index.p...cking.2C_Editing.2C_and_Re-Packing_the_images
Landroid said:
use the attached unyaffs.exe to extract a system.img! simply drag the created system.img onto unyaffs.exe and it will extract alle the files in the same directory!
to rebuild, i think it might be able to create a image file in magic disk maker but im not sure
Click to expand...
Click to collapse
thanks! this was very easy to use

how to open(unpack) android update.app

????????????
That should be under general...
Sent from my Huawei Ideos X5 1.12.9(ret4rt)
boss_y said:
That should be under general...
Sent from my Huawei Ideos X5 1.12.9(ret4rt)
Click to expand...
Click to collapse
It should indeed.
Moved to General
I believe flibblesan used a tool to unpack it, cant remember what it was called. Ask him
edit. or dzo.. cant remember
i'd like to know the name of the tool....
Google is your friend
http://android.modaco.com/topic/298436-perl-script-for-unpacking-the-updataapp-files/
demolition23 said:
Google is your friend
http://android.modaco.com/topic/298436-perl-script-for-unpacking-the-updataapp-files/
Click to expand...
Click to collapse
that script is already included in dsixda kitchen....the problem is that the kitchen extracts the updata.app and a "out" folder (where there are some files, among them system.img).
the most important problem is that i can't extract system.img with dsixda.
matteof93 said:
the most important problem is that i can't extract system.img with dsixda.
Click to expand...
Click to collapse
It should be (I haven't checked it myself) an ext3 image, which you can just mount under Linux anyway.
qwerty12 said:
It should (I haven't checked it myself) an ext3 image, which you can just mount under Linux anyway.
Click to expand...
Click to collapse
ok, i will try later....now i am on windows
EDIT: mounting the system.img on ubuntu the file seems to be empty.....is there any tool to extract it?
http://forum.xda-developers.com/showthread.php?t=1036147
This should work
Sent from my U8800 using Tapatalk
No, doesn't work either. The link is for unyaffs, which is the same app dsxda kitchen uses for extraction
dancer_69 said:
No, doesn't work either. The link is for unyaffs, which is the same app dsxda kitchen uses for extraction
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=18905974&postcount=6
dont working.
andreasha said:
http://forum.xda-developers.com/showpost.php?p=18905974&postcount=6
Click to expand...
Click to collapse
just tested on ubuntu. i have obtained the system.img but i had some issues extracting updata.app and i don't have the boot.img
I not open please video or photo
ı'm using ubuntu latest version
I am trying to sort this out now, but not getting so far. Looks to me that the hash locations found in the script are wrong so it is not finding boot.img and other files and is breaking the script.
http://www.zebadger.com/android/scripts/split_updata.txt
Code:
my %fileHash=( "\x00\x00\x00\x10","appsboot.mbn",
"\x00\x00\x00\x20","file25.mbn",
"\x00\x00\x00\x30","boot.img",
"\x00\x00\x00\x40","system.img",
"\x00\x00\x00\x50","userdata.img",
"\x00\x00\x00\x60","recovery.img",
"\x00\x00\x00\xC0","file11.mbn",
"\x00\x00\x00\xD0","file08.mbn",
"\x00\x00\x00\xE0","file05.mbn",
"\x00\x00\x00\xF0","file04.mbn",
"\x00\x00\x00\xF1","file07.mbn",
"\x00\x00\x00\xF2","splash.raw565",
"\x00\x00\x00\xF3","file01.mbn",
"\x00\x00\x00\xF4","file02.mbn",
"\x00\x00\x00\xF5","file14.mbn",
"\x00\x00\x00\xF6","boot_versions.txt",
"\x00\x00\x00\xF7","upgradable_versions.txt",
"\x00\x00\x00\xF8","file09.mbn",
"\x00\x00\x00\xF9","version.txt",
"\x00\x00\x00\xFA","file20.mbn",
"\x00\x00\x00\xFB","appsboothd.mbn",
"\x00\x00\x00\xFC","file23.mbn",
"\x00\x00\x00\xFD","file16.mbn",
"\x00\x00\x00\xFE","file18.mbn",
"\x00\x00\x00\xFF","file21.mbn",
);
Have looked through the update.app with a hex editor, but not seeing anything that correlates to those lines. Can find boot.img etc, but they are referenced differently. Will look at if hex dump is a different thing and see if it references boot.img properly. If we could get this working, we could make a lot more custom roms as it would be easier to make them in the kitchen using official huawei files with mods.
Ok so system.img can be mounted using furius iso in linux on a loop setting, not a fuse one. Now to try and find the boot.img
http://android.modaco.com/topic/311...s-new-version-of-split-updatapl/page__st__180
See last post, unless he is only joking/being sarcastic, looks like we may get some support for our update.app files for the u8800 in zebadgers script. would be great if we could get full support in the android kitchen for our phone
Ok, last one for now, spent whole afternoon combing through scripts and hex editor readouts. Still not much closer. I can find a couple of files in zebadgers script that if you rename them to boot.img (F0, F3 and F4) will let the script do its job, but they are clearly not the boot.img, too small and not right.
There are still four mystery files named unknown_file 0-3 and 2 look to be the correct size for a kernel/boot.img but I dont know where they come from. They are not from the filehashes in my above post.
hi paul....so did you managed to obtain the system.img from update.app?
which script have you used?
about the boot.img: i don't think that it is absolutely necessary....i can copy my boot.img through the pink screen and use it in the dsixda kitchen. is that right?
ps: i think that the boot.img of the B512 is the same of the B540...isn't it?

sysMapFile TWRP Error - Custom ROM

Hi guys!
Ok. so I'm (really) not a developer, I'm just trying to make a flashable ZIP (+ custom recovery and root) from the latest D80230f_00.kdz (told you, not a dev', but, yeah, everyone should starts with something right?). and I got some difficulties at the end of the process: when trying to flash the zip file, I got a big red error (ok, just red) in TWRP: "E: failed to sysMapFIle /sdcard/rom_name.zip".
Have you ever met this error?
Furthermore, I got a question about the update-binary file (maybe it's link to the error?): I've downloaded @somboons KK_template_new.zip, but their was already an update-binary file in it. I've unziped the archive, write everything I need in the updater-script, and re-zip all (see attachments), I don't do anything except ziped all: should I do something else such as sign the archive or thing like this? 'cause I don't find anything accurate about update-binary file: I don't know if we have to take it from other archive, or if it's create during signing the archive.
Oh, yeah, the recovery.img is TWRP 2.8.7.1.
Anyway, all kind of help will be very appreciate.
Thanks in advance guys !
@casual_kikoo
I would ask a mod to move your post to the Q&A where it belongs
I'm not sure if they move them or delete threads when they're not in the right sub forums.
Lawlrus said:
@casual_kikoo
I would ask a mod to move your post to the Q&A where it belongs
I'm not sure if they move them or delete threads when they're not in the right sub forums.
Click to expand...
Click to collapse
Oh ok so I post in wrong place... I was..sure :crying: ...
Thanks!
casual_kikoo said:
Hi guys!
Ok. so I'm (really) not a developer, I'm just trying to make a flashable ZIP (+ custom recovery and root) from the latest D80230f_00.kdz (told you, not a dev', but, yeah, everyone should starts with something right?). and I got some difficulties at the end of the process: when trying to flash the zip file, I got a big red error (ok, just red) in TWRP: "E: failed to sysMapFIle /sdcard/rom_name.zip".
Have you ever met this error?
Furthermore, I got a question about the update-binary file (maybe it's link to the error?): I've downloaded @somboons KK_template_new.zip, but their was already an update-binary file in it. I've unziped the archive, write everything I need in the updater-script, and re-zip all (see attachments), I don't do anything except ziped all: should I do something else such as sign the archive or thing like this? 'cause I don't find anything accurate about update-binary file: I don't know if we have to take it from other archive, or if it's create during signing the archive.
Oh, yeah, the recovery.img is TWRP 2.8.7.1.
Anyway, all kind of help will be very appreciate.
Thanks in advance guys !
Click to expand...
Click to collapse
Whenever u flash a zip for it needs to be signed, I would check or Ayysir's Android Kitchen, that's where I started my development from, I started just like u, only modifying touchwiz roms and repackaging them in flushable zoos format with android kitchen, if u need help let me know
P.S., Windows is NOT the platform to start development on lol, if I were u I'd start dual booting whatever machine ur using with a Linux OS of ur choice, for someone new like urself, I'd go with Ubuntu
Sent from my Nexus 6 using Tapatalk
soupysoup said:
Whenever u flash a zip for it needs to be signed, I would check or Ayysir's Android Kitchen, that's where I started my development from, I started just like u, only modifying touchwiz roms and repackaging them in flushable zoos format with android kitchen, if u need help let me know
P.S., Windows is NOT the platform to start development on lol, if I were u I'd start dual booting whatever machine ur using with a Linux OS of ur choice, for someone new like urself, I'd go with Ubuntu
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
First of all, thanks you so much for your fast answer. Yeah, I know Windows isn't the easiest platform to start development. Well, I've already have Ubuntu installed on VMWare, I just took screenshots on Windows .
Ok, so if I understood well, update-binary file is created during the signing step? That's why it doesn't work right now, 'cause I don't signed my ZIP.... Yeah ok I start to understand !
I'm gonna download Android Kitchen (this one right?) and start cooking !
Again, thanks you so much dude you make me more and more enthusiast about creating ROMs on Android.

Categories

Resources