[Q] Mount/extract .img in Linux - GT540 Optimus General

Hello people,
My purpose is not to create a custom rom but I just want to take a look into a rom to see how a rom is build and which files are located where.
So I have Ubuntu 10.10. I tried some iso/img mounters from the Software Center but didn't work. I asume most of the Android developers have Linux so I wanted to know how you guys mount or extract .img files, like the system.img and boot.img.
Joost

unyaffs is the tool your looking for and it also runs on windows.
i have the exe for windows and also if yo want to extract kdz just pm me.

pashinator said:
unyaffs is the tool your looking for and it also runs on windows.
i have the exe for windows and also if yo want to extract kdz just pm me.
Click to expand...
Click to collapse
Thanks, but I came to this site . there are 3 downloads. I download them all but I don't know how to open them. I tried 'Monodevelop', autorun prompt but it doesn't work...
Can you send me the exe for windows?
Joost

joostvhoek said:
Thanks, but I came to this site . there are 3 downloads. I download them all but I don't know how to open them. I tried 'Monodevelop', autorun prompt but it doesn't work...
Can you send me the exe for windows?
Joost
Click to expand...
Click to collapse
I use this one with Ubuntu:
http://www.mediafire.com/?6dcc4bz98lgs2gn

here your lucky i uploaded yesterday
http://pashinator.juniorwebdevs.co.uk/downloads/Crap<</unyaffs.exe
all you need to do is make a directory anywhere and put system.img file in there
also put unyaffs .exe in that folder
drag system.img ontop of unyaffs.exe and let go, a cmd screen will popup and go.
you will see folders next to the img

Thanks pashinator
fishears said:
I use this one with Ubuntu:
http://www.mediafire.com/?6dcc4bz98lgs2gn
Click to expand...
Click to collapse
I downloaded this file but when I double click it, it doesn't open... The 'task bar' at the bottem shows 'opening unyaffs' but after a few seconds it desapears.
Joost

Hi joost using cmd CD to the unyaffs folder and copy the .img files into that folder, now in cmd type unyaffs system.img Hope this helps.
Sent from my GT540 using XDA Premium App

eoghan2t7 said:
Hi joost using cmd CD to the unyaffs folder and copy the .img files into that folder, now in cmd type unyaffs system.img Hopper this helps.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
This worked for you in ubuntu?
Joost
Sent from my GT540 using XDA App

eoghan2t7 said:
Hi joost using cmd CD to the unyaffs folder and copy the .img files into that folder, now in cmd type unyaffs system.img Hopper this helps.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Working for me in Windows XP, thanks!

Its works in windows that way but I'm sure the same command will work in Ubuntu.
Sent from my GT540 using XDA Premium App

joostvhoek said:
Thanks pashinator
I downloaded this file but when I double click it, it doesn't open... The 'task bar' at the bottem shows 'opening unyaffs' but after a few seconds it desapears.
Joost
Click to expand...
Click to collapse
It isn't an app as such, it's a terminal binary.
So to use it you need to either copy it to /usr/bin/ and in a terminal type "unyaffs path_to_and_name_of_img_file" or launch it in a terminal from where the binary is located with "./unyaffs path_to_and_name_of_img_file"
I think it should also work if you copy it to /usr/bin/ and set the "open with" property for .img files to use unyaffs....
Just let me know if you're still stuck.

Download all this files http://code.google.com/p/unyaffs/downloads/list
Run terminal
Go to downloaded unyaffs catalog by 'cd' eg. cd /home/user/download
Write gcc -o unyaffs unyaffs.c to compile unyaffs
Then paste your system.img file to unyaffs folder
And write ./unyaffs system.img
(don't use sudo because this lock your extracted files)

patryk95juve said:
Download all this files http://code.google.com/p/unyaffs/downloads/list
Run terminal
Go to downloaded unyaffs catalog by 'cd' eg. cd /home/user/download
Write gcc -o unyaffs unyaffs.c to compile unyaffs
Then paste your system.img file to unyaffs folder
And write ./unyaffs system.img
(don't use sudo because this lock your extracted files)
Click to expand...
Click to collapse
Oke, thanks!!
Joost

When I try it with the unyaffs.exe, it says 'broken img file'.... That's when I try to open a boot.img
Someone knows how I can open boot.img?
when I try to open a boot.img on linux, I get the same response...
Joost

are you sure its not corrupt
and are you using my one?

joostvhoek said:
When I try it with the unyaffs.exe, it says 'broken img file'.... That's when I try to open a boot.img
Someone knows how I can open boot.img?
when I try to open a boot.img on linux, I get the same response...
Joost
Click to expand...
Click to collapse
You can't unyaffs a boot.img
I've got a tool to pack & unpack them (a couple of perl scripts) but not at home now...
Sent from my GT540 using XDA Premium App

fishears said:
You can't unyaffs a boot.img
I've got a tool to pack & unpack them (a couple of perl scripts) but not at home now...
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Can you send it when you're home?
Joost

joostvhoek said:
Can you send it when you're home?
Joost
Click to expand...
Click to collapse
Yes. Might not be today though.
EDIT: here you go, sooner than I thought:
unpack boot.img:
http://www.mediafire.com/?pnx2tj2k6dvzpja
repack boot.img
http://www.mediafire.com/?l6qrbgdcckc37q3
You'll need an archive tool capable of handling CPIO packed files - use "cpio" in Linux, not sure about win or mac... but you can get at the ramdisk without it.
Sent from my GT540 using XDA Premium App

joostvhoek said:
When I try it with the unyaffs.exe, it says 'broken img file'.... That's when I try to open a boot.img
Someone knows how I can open boot.img?
when I try to open a boot.img on linux, I get the same response...
Joost
Click to expand...
Click to collapse
Easiest way its use dsixda's HTC Android Kitchen (fully working on swift) this is advanced operation...
by this kitchen you can add to your kernel more functions eg. tethering etc
Another way is there http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

Related

[Q] Making those NAND System.img files

Howdy all,
Just wondering, how are the system.img files made? I have read that if it's a YAFFS image file, that the maximum filesize cannot exceed 128MB. However, I've seen on some NAND HD2 Android builds, the system.img filesize is >128MB.
My question is, what method are you guys using for making the NAND system.img files to flash within MAGLDR? (ie. is it like a ZIP archive with a .img extension on it)
I'm currently working on a remix of a ROM that I use (a hint is in my Sig), and I know that the update.zip method that was used on "true-Android" devices to change ROMs doesn't apply to our MAGLDR method now.
Cheers and I'm sure you'll see another ROM for the HD2 in the coming weeks!
IcedCube.
IcedCube said:
Howdy all,
Just wondering, how are the system.img files made? I have read that if it's a YAFFS image file, that the maximum filesize cannot exceed 128MB. However, I've seen on some NAND HD2 Android builds, the system.img filesize is >128MB.
My question is, what method are you guys using for making the NAND system.img files to flash within MAGLDR? (ie. is it like a ZIP archive with a .img extension on it)
I'm currently working on a remix of a ROM that I use (a hint is in my Sig), and I know that the update.zip method that was used on "true-Android" devices to change ROMs doesn't apply to our MAGLDR method now.
Cheers and I'm sure you'll see another ROM for the HD2 in the coming weeks!
IcedCube.
Click to expand...
Click to collapse
The system.img is a yaffs2image. Google 'compiled windows unyaffs' use that program to take a peak inside the .img. When you're completely ready to make your own .img your gonna need a linux distro or cygwin w/mkyaff2image compiled. However I recomend compiling the mkfs.yaffs2 command if you are using linux. Alternatively you can place the /system/ directory you are trying to make an image on your SD and run that command in the terminal emulator in Android. It should look like this #mkyaffs2image /sdcard/system/ System.img
Hope that helps.
KillaHurtz said:
The system.img is a yaffs2image. Google 'compiled windows unyaffs' use that program to take a peak inside the .img.
Click to expand...
Click to collapse
Does this give you write abilities so that files can be changed out pre-flash?
dharvey4651 said:
Does this give you write abilities so that files can be changed out pre-flash?
Click to expand...
Click to collapse
I think you have to dump them to a folder, then you can change what you want. Then do the yaffs2 cmd and it will package it back up to .img for flashing...
Chris
noellenchris said:
I think you have to dump them to a folder, then you can change what you want. Then do the yaffs2 cmd and it will package it back up to .img for flashing...
Chris
Click to expand...
Click to collapse
I think that a tutorial is in order. Someone who knows how to extract and replace files in a system.img needs to write a short tutorial on how to do it. - A simple step by step on how to decompile a system.img and re-compile it.
I for one would be extremely grateful because I finally worked out a perfect MMS patch and I'd like to be able to easily modify the builds pre-flash.
dharvey4651 said:
I think that a tutorial is in order. Someone who knows how to extract and replace files in a system.img needs to write a short tutorial on how to do it.
I for one would be extremely grateful because I finally worked out a perfect MMS patch and I'd like to be able to easily modify the builds pre-flash.
Click to expand...
Click to collapse
I have been trying to do that all night. I can unpack them but haven't got around to repacking them. For now all I do is install the build and push the patched file that I have and do a AD hardrest in MAGLDR. MMS 300-1024k and all TMO US app works.
dharvey4651 said:
I think that a tutorial is in order. Someone who knows how to extract and replace files in a system.img needs to write a short tutorial on how to do it. - A simple step by step on how to decompile a system.img and re-compile it.
I for one would be extremely grateful because I finally worked out a perfect MMS patch and I'd like to be able to easily modify the builds pre-flash.
Click to expand...
Click to collapse
yeah, it would be very nice if smb can write some tutorial on modifying system.img files
i have been trying to figure this out too!
IcedCube said:
This is IcedCube, the Developer of GingerHD2, a Android 2.3 ROM for your HD2.
Click to expand...
Click to collapse
Thought I should point out that you could really confuse things by using that name...
http://forum.xda-developers.com/showthread.php?t=871387
That's not actually a Gingerbread build - it's just themed to look like one, but still got the same name
hnamanh said:
I have been trying to do that all night. I can unpack them but haven't got around to repacking them. For now all I do is install the build and push the patched file that I have and do a AD hardrest in MAGLDR. MMS 300-1024k and all TMO US app works.
Click to expand...
Click to collapse
Another option is to connect to ADB or Android Commander before going through the initial setup(when it asks you to choose your language) and change the files then - use the PC to reboot the phone, not the phone's built-in reboot. This should take you right back to the setup screen where this time, should show United States localization.
Still a bit too much work. I'd like to be able to patch the build, flash it, and be good to go.
found this but too educated for me
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
sorry i think this one is normal data img.not sure.
well i did say it was too educated for me
Turorial
KillaHurtz said:
The system.img is a yaffs2image. Google 'compiled windows unyaffs' use that program to take a peak inside the .img. When you're completely ready to make your own .img your gonna need a linux distro or cygwin w/mkyaff2image compiled. However I recomend compiling the mkfs.yaffs2 command if you are using linux. Alternatively you can place the /system/ directory you are trying to make an image on your SD and run that command in the terminal emulator in Android. It should look like this #mkyaffs2image /sdcard/system/ System.img
Hope that helps.
Click to expand...
Click to collapse
Windows
-----------------------------------------------------------------------------
Ok, let's start again. If you are using windows, google the said phrase above and you will find the precompiled utility 'unyaffs'.
Place the System.img you want to extract in a new directory with unyaffs.exe & drag the .img onto unyaffs. A command window will open and start extracting the files in the image to that same folder. You can now explore & edit/pull whatever you need to get things going. Once you have it the way you want copt it to your SD/root/ & make a folder for it with an obvious name like "Project" or "Test". Now to get it back into a bootable .img open Terminal Emulator in Android & enter the following
#mkyaffs2image /sdcard/NAMEofFOLDERuCHOSE/ System.img
**alternatively you can do this in windows itself if u have the utility compiled under cygwin or simular.
Linux
-----------------------------------------------------------------------------
Ok, you will need the unyaffs & mkfs.yaffs2 utilities compiled and working 1st off.
mkyaffs2image works to make the image however it fails upon flash with DFT Android Flasher. So I recomend mkfs.yaffs2 & have included it, you will need to place it in /usr/sbin/. If you have trouble copying it open a terminal and run "gksudo nautilus" then copy to the above mentioned directory.
**Now that those utilities are working let's get to work.
open a terminal and run 'unyaffs /home/yourusername/Desktop/targetdirectory/targetimage.img
copy/edit/pull the files you want. When your ready to build the image you are happy with open a terminal and run 'mkfs.yaffs2 /home/yourusername/Desktop/targetdirectory/ System.img'
Now your ready to flash !
System.img & Boot.img Contents
============================================================
System.img contains the entire root/system/ directory in Android
System/
app
bin
etc
fonts
framework
lib
lost+found
media
usr
xbin
build.prop
dmesg.txt
Boot.img contains
Boot/
initrd.gz
zImage
lost+found
============================================================
Hope that helps guys, It's my first tut on XDA
**EDIT: I included an archive for windows users that has unyaffs2.exe & cygwin1.dll
The Linux archive contains mkfs.yaffs2.x86, once moved to /usr/sbin/ rename to mkfs.yaffs2
The process works exactly the same for Boot.img
you need linux and run command by terminal
put them in /bin
http://www23.zippyshare.com/v/13814384/file.html
then you can yaffs or unyaffs
example
unyaffs /home/rafpigna/folder_with_img_you_wann_unpack/system.img
or
mkyaffs2image /home/rafpigna/folder_with_stuff_you_wanna_pack/ system.img
strange thing...when I open with unyaffs and then close with mkfs.yaffs2 or mkyaffs2image I get init: untracked pid 250 exited (where 250 varies) in a loop :S
some light for me?
michyprima said:
strange thing...when I open with unyaffs and then close with mkfs.yaffs2 or mkyaffs2image I get init: untracked pid 250 exited (where 250 varies) in a loop :S
some light for me?
Click to expand...
Click to collapse
What platform are you using? Have u tried copying your target directory to your sdcard and running the command in android's terminal?
Reguards
KillaHurtz said:
What platform are you using? Have u tried copying your target directory to your sdcard and running the command in android's terminal?
Reguards
Click to expand...
Click to collapse
linux x64.
btw no I didn't, because I want to make a rom (I'm not new to android development but that makes me think that I'm probably stupid )
Everything I do doesn't work.
Already tried something like:
- opened a premade working rom, exchanged just app and framework: no way
- exchanged everything but not bin/xbin/lib: no way
- exchanged just what was different between a stock and a premade leo rom: still no way
mmmh...
yaffs2
There is actually a way to modify files in a yaffs2 image but I've not done it my self yet. I'm 100% sure it's possible cuz everything is possible.... under Linux of course.
You need:
Linux, compiling skills, mounting skills, etc.
Basically for any other filesystems you can mount them as loop devices but not yaffs2. For yaffs2 you actually need a virtual mtd block device. once you have the mtd device you can mount the yaffs image on it.
For details google for: mounting yaffs image
and focus on virtual mtd block device.
michyprima said:
linux x64.
btw no I didn't, because I want to make a rom (I'm not new to android development but that makes me think that I'm probably stupid )
Everything I do doesn't work.
Already tried something like:
- opened a premade working rom, exchanged just app and framework: no way
- exchanged everything but not bin/xbin/lib: no way
- exchanged just what was different between a stock and a premade leo rom: still no way
mmmh...
Click to expand...
Click to collapse
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
This has a list of files to be pulled. Hope this helps. BTW michy I need help with a kernel, know anyone?
I'm Having a problem using on Linix, when i use the unyaffs trough the terminal it extracts the rom but not the squashed contents, which in the main apps and frame work are at on thoughs roms. I do get a file that says squashed but empty. I tried on cyanogens 6.1 rom and everything extracted fine.but that rom does not have a squashed folder, am i doing something wrong?
1. If i unyaffs System.img and manually remove some programs/aplications then create System.img with yaffs, does it programs will appear in apps and does my rom will be caused a more memory for other programs for installation?
2. Is it possible to unyaffs Boot.img then replace zimage with newest kernel like MDJ or hastarin then yaffs to new Boot.img, After that i suppose then this Android OS will be on new kernel???
3. And... If i remove zimage and initrd.gz from Boot.img, create new Boot.img without these two files and these two files copy to SD card and define that two files in flash.cfg for find on SD. Does it works?
Sorry for bad English.

[OUTDATED GUIDE]Make Custom Rom Easier Than Cycling

Things you need:
Base firmware (i'm use Gingerbread S5830SERKPH 2.3.4)
Windows (I'm use windows 7 X64 service pack 1)
Linux (Ubuntu recommended)
And the last thing is, You need enough experience in android world
step-step :
Flash your phone with your desired base firmware.
Make required modifications at your phone.
After that, do hard reset to your phone.
Next back up system.rfs .
put system.rfs with boot.img, data.rfs, recovery.img from PDA base firmware in one folder.
After that, repack your custom rom.
what should we do to modify it :
Remove useless widgets
Add more apps
Change theme
How to back up System.rfs :
Download at market "terminal emulator"
next run this code:
Code:
su
dd if=/dev/stl12 of=/sdcard/system.rfs
How to hard reset your phone :
Move by root explorer your modification apps to system/app then change permission like this :
Code:
User:Read, Write
group:Read
Others:Read
Next change the owner to "root" by root explorer
At least boot into recovery mode "HOME+POWER" and choose "wipe data/factory reset" be sure your contact data already backup
How to repack your custom rom :
PDA by running this code via terminal at linux:
Code:
tar -H ustar -c boot.img recovery.img data.rfs system.rfs >> ROMNAME.tar
md5sum -t ROMNAME.tar >> ROMNAME.tar
mv ROMNAME.tar ROMNAME.tar.md5
change ROMNAME to your desired, of course, ROM name.
If you want to build One-Package ROM, just use 1st and 2nd command and don't forget to include all files on all *.tar.md5 (such as modem, csc, apboot) like this :
Code:
tar -H ustar -c *.* >> ROMNAME.tar
md5sum -t ROMNAME.tar >> ROMNAME.tar
How to change your rom name :
At root explorer you see at folder system "build.prop"
Open it in text editor edit "ro.build.display.id=GINGERBREAD.XXKPH" with your rom name
Another Handy Modification Guide:
How to edit system.rfs on your Pc :
importan : if you want to edit system.rfs at windows, DON'T use Magic Iso, why? because i was use it, then my system.rfs corrupt.
you must have linux (ubuntu recommended)
run it from terminal :
Code:
sudo mount -o loop system.rfs /some_dir
make required modification
then Unmount it
How to Unpacking & repacking the image :
Note: below I give you the details for unpacking and repacking manually, but I have attached two perl scripts that do most of this for you
If you are good with a hex editor, you can open up any of these images and strip off the first 2k of data. Then, look for a bunch of zeroes followed by the hex 1F 8B (which is the magic number of a gzip file). Copy everything from the first line of the file, through the zeroes, and stopping at the 1F 8B. That is the kernel. Everything from the 1F 8B through the end is the ramdisk. You could save each of these files separately. In order to see the contents of the ramdisk, you need to un-gzip it and then un-cpio it. You could use a command like this (ideally after creating a new directory and cd'ing into it):
Code:
gunzip -c ../your-ramdisk-file | cpio -i
That will place all of the files from the ramdisk in your working directory. You can now edit them.
In order to re-create the ramdisk, you need to re-cpio them and re-gzip those files, with a command like the following (remember, cpio will include everything in the current working directory, so you probably want to remove any other cruft you might have in there):
Code:
find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
The final step is to combine the kernel and your new ramdisk into the full image, using the mkbootimg program (which you should download and compile from the git repository):
Code:
mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel your-kernel-file --ramdisk newramdisk.cpio.gz -o mynewimage.img
Now, there's a lot of hassle in pulling apart files in hex editors and remembering all of these commands, so I wrote unpack and repack perl scripts for you (attached). Hooray.
How to Manually deodex your phone :
What you'll need:
xUltimate v2.2
Unzip xUltimate v2.2, and launch "Main.exe"
If everything goes well xUlt should recognize the phone and make a connection. You now should see a list of options.
Run option 1. After option 1 is done, run option 2.
Now these well take a while. Run option 3.
IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
Now run option 4, and wait.
Exit xUltimate, and put the phone in USB mass storage.
Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
Put the phone in PC mode
Open a command prompt, and do the following:
Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot
Your phone should now be deodexed!
You may notice an increase in speed, and you now have the ability to edit certain files with greater effects.
How to change bootanimation :
using a Root explorer goto the /system/media directory.
Copy bootanimation.zip to your SD Card.
Connect your droid to your computer with usb and mount the SD Card
Copy bootanimation.zip to your computer.
extract bootanimation.zip to a folder
Inside you will find 2 folders with all the individual PNG files in them.
With photoshop or paint modify the png files to add your custom graphics, OR make/download your own pictures. (Make sure they are match with your phone device)
Highlight the two folders and the desc file.
Right click the highlighted files.
Select add files to archive.
Select Zip check box
In the compression method drop down box select Store. (this is key if you dont do this it wont play the animation)
save the archive as bootanimation.zip
copy the new bootanimation.zip to your SD Card
Select the bootanimation.zip file from your SD Card and move it... system>media>paste
________________
i'm just 12 years old if i can do it, why you can't
Advantages of this way is :
More efficient
Reduce your internet usage (dont need kitchen, apk manager, etc)
Easy to modification (You can see the direct result)
Reduce your time (only 2 hours i can do this way)
More soon
You steal my IDEAS Univos! No, just kidding, there are incorrect guide on "how to hard reset" lol. Anyway, try to build a ROM before creating this guide, my friend.
Wow Kids!
are doing development now a days
fla.sh said:
You steal my IDEAS Univos! No, just kidding, there are incorrect guide on "how to hard reset" lol. Anyway, try to build a ROM before creating this guide, my friend.
Click to expand...
Click to collapse
im not steal it.
Where is incorrect guide i'm try to fix it?
Sent from my GT-S5830 using XDA App
GadgetCheck said:
Wow Kids!
are doing development now a days
Click to expand...
Click to collapse
Thanks
Sent from my GT-S5830 using XDA App
This guide tested by me, and i have get result from this.
Sent from my GT-S5830 using XDA App
If you have question just ask me!
Sent from my GT-S5830 using XDA App
I think this guide is the same with fla.sh's guide.
devilsking said:
I think this guide is the same with fla.sh's guide.
Click to expand...
Click to collapse
Different, Fla.sh make guide for cooking his rom.
in this thread i tell you how to make your own custom rom.
with Phone device Samsung Galaxy Ace.
Univos said:
Different, Fla.sh make guide for cooking his rom.
in this thread i tell you how to make your own custom rom.
with Phone device Samsung Galaxy Ace.
Click to expand...
Click to collapse
ya ya. I see tks for your guide
devilsking said:
ya ya. I see tks for your guide
Click to expand...
Click to collapse
Please press thanks button, if i helped you
Sent from my GT-S5830 using XDA App
Univos said:
This guide tested by me, and i have get result from this.
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
Now that you're awesome like fla.sh , I'll be quietly tucking in a corner thinking how young teenagers get their knowledge . XD jkjk
EmoBoiix3 said:
Now that you're awesome like fla.sh , I'll be quietly tucking in a corner thinking how young teenagers get their knowledge . XD jkjk
Click to expand...
Click to collapse
Just kept reading, ask people, don't feel has a lot of knowledge, kept countinue to learn
Sent from my GT-S5830 using XDA App
EmoBoiix3 said:
Now that you're awesome like fla.sh , I'll be quietly tucking in a corner thinking how young teenagers get their knowledge . XD jkjk
Click to expand...
Click to collapse
Maybe this holiday i will developt a simple custom rom.
Sent from my GT-S5830 using XDA App
Univos said:
Maybe this holiday i will developt a simple custom rom.
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
I am thinking about a kid with two or more different XDA ID.
ketut.kumajaya said:
I am thinking about a kid with two or more different XDA ID.
Click to expand...
Click to collapse
No, the real name Fla.sh is "Aver..." my real name is "iz..." we are student of junior high school at surabaya. I'm "Aver..." friend.
Sent from my GT-S5830 using XDA App
Univos said:
No, the real name Fla.sh is "Aver..." my real name is "iz..." we are student of junior high school at surabaya. I'm "Aver..." friend.
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
I'm swear.
Sent from my GT-S5830 using XDA App
ketut.kumajaya said:
I am thinking about a kid with two or more different XDA ID.
Click to expand...
Click to collapse
ROFLAMO
Jukirdolly said:
ROFLAMO
Click to expand...
Click to collapse
??????
Sent from my GT-S5830 using XDA App

.rc files

can anyone send me the names of the init.devicename.rc and the unvented.device.rc? they are located in the kernel ramdisk
alex1301 said:
can anyone send me the names of the init.devicename.rc and the unvented.device.rc? they are located in the kernel ramdisk
Click to expand...
Click to collapse
Hi, here are the contents of the folder:
http://i.imgur.com/bxbK3.png
And attached is latest boot.img (kernel 3.0.8 from dzo's Aurora ICS) and the decompressed files if you need that...
i am quite ready with the rom. only thing is i have this problem.
[email protected]:~/Desktop/BootScripts$ sudo perl repack-bootimg.pl /home/ubuntu/Desktop/BootScripts /home/ubuntu/ramdisk /home/ubuntu/Desktop
1891 blocks
sh: mkbootimg: not found
repacked boot image written at /home/ubuntu/ramdisk-repack.img
but there is no file when i repack the kernel
alex1301 said:
i am quite ready with the rom. only thing is i have this problem.
[email protected]:~/Desktop/BootScripts$ sudo perl repack-bootimg.pl /home/ubuntu/Desktop/BootScripts /home/ubuntu/ramdisk /home/ubuntu/Desktop
1891 blocks
sh: mkbootimg: not found
repacked boot image written at /home/ubuntu/ramdisk-repack.img
but there is no file when i repack the kernel
Click to expand...
Click to collapse
Can you post the un packed files? I could try to repack them
I think I know what the problem is, you need to have mkbootimg... Here it is, put it in /bin and then rerun the repack script
EDIT: for some reason, attachments are always corrupt... but here it is:
http://forum.xda-developers.com/attachment.php?attachmentid=475249&d=1293574570
http://www.mediafire.com/?y5ur5lc4q7d5148
http://www.mediafire.com/?vl44nay131u8ofz
sent them please repacked back
alex1301 said:
http://www.mediafire.com/?y5ur5lc4q7d5148
http://www.mediafire.com/?vl44nay131u8ofz
sent them please repacked back
Click to expand...
Click to collapse
Here it is.
But your error was because you probably didn't have mkbootimg on your system
are you ready?
alex1301 said:
are you ready?
Click to expand...
Click to collapse
I've posted the boot.img right now
I hope there's nothing wrong with it... to repacked the files, I put all the files from your both zip files in one folder, then run repack-bootimg.pl script over boot.img-kernel as argument, is this correct?
yes man thanks. i will give you credits in the rom section.
do you know if i can use the updater script form aurora?
alex1301 said:
do you know if i can use the updater script form aurora?
Click to expand...
Click to collapse
I guess yes, the script, if I'm not wrong, only formats partitions and copies the ROM files to the appropriate locations and sets permissions... try using it, or post the ROM here and I'm sure someone can work it out if it doesn't work...
Cheers
Sent from my U8800
i will release it in a couple of minutes. so when the script is not working, someone other can fix it
have i also to replace the updater-binary?
I don't think that's needed, the binary I assume is the same for different ROMs, only the script changes... but I would to be sure good luck!
Sent from my U8800
i can't sign this bull**** apk
alex1301 said:
i can't sign this bull**** apk
Click to expand...
Click to collapse
What do you mean? I was hoping for a release today :-( good luck man...
Tomorrow I'll try posting from desire z... can you post a link for a guide? Thank you...
Sent from my U8800

[GUIDE] Noobs guide to extract Galaxy S3 stock firmware(.img) !!

Hi all !!
We now have the stock I9300XXALE8 firmware of Samsung Galaxy S III.
Download here - thread
So, if you had downloaded it and wanted to view stock the apps & something like that, you need to extract the system.img.
Pre-requisites:
* 7-zip
PROCEDURE:
--When you extract the ROM .zip , you'll find 3 .md5 files. With help of 7-zip, extract each of the .md5 file. When extracting the .md5 file, 7-zip may show some error, but you can neglect that and continue extracting.
Click to expand...
Click to collapse
--When you have completed extracting all of them, you'll find many files including many .img files. For Apps you need to extract system.img. Unlike normal nandroid backup's system.img file which in yaffs, this stock one in different. So, unyaffs tool can't unpack the system.img
Click to expand...
Click to collapse
--To extract the system.img, download this tool: sgs2toext4 (created by drphrozen). On extracting it you'll have sgs2toext4.jar file.
Click to expand...
Click to collapse
--Open a command window and set the directory where you have .jar file.
Click to expand...
Click to collapse
--Now type sgs2toext4.jar and press enter.
Click to expand...
Click to collapse
--The .jar will run in a new window & will ask you to drag & drop the system.img file there. Do the same and wait till the process completes.
Click to expand...
Click to collapse
--When the process completes, you'll find a file named system.ext4.img in the same folder where you had the system.img file.
Click to expand...
Click to collapse
--Now download Diskinternals Linux Reader and install it. Then open the program --->> Drives --> Mount Image --> select system.ext4.img > Mount
Click to expand...
Click to collapse
--It will show you all its contents. Now select all the things displayed --> right click --> save and select a folder to save them. There you'll find the extracted system.img !!!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
You can try extracting cache,data,boot.img with the same method.
If you want to de-odex the rom, try using AutoDeoTool(created by xavierjohn22 - thread)
Credits: (don't forget to thank them!)
efrant - post's link
drphrozen - post's link
---Information gathered from this post & things in blue text under How to Flash).
Try n reply !!
Hit THANKS if you find this useful !!
Thanks for your contribution .
is this one among the various forums?
http://forum.xda-developers.com/showthread.php?t=1662184
bala_gamer said:
is this one among the various forums?
http://forum.xda-developers.com/showthread.php?t=1662184
Click to expand...
Click to collapse
Not at all !!
This thread (especially the How to Flash in blue text): http://forum.xda-developers.com/showpost.php?p=20843237&postcount=1
Thank You Very Much ,, It was very useful for me
Guys, here's a simple tool to extract cache.img file from any Samsung rom without conversions and mounting!
http://forum.xda-developers.com/showthread.php?p=27219721#post27219721
Enjoy!
PS: OP, please update first post!
really helpful..thanks!
thank for your guide
hello i follow your guide i done with unpack and i can edit it, but m a new and i wonder if i can make it back to tar or md5 for odin flash thank you guys...for your reply
iihito702 said:
hello i follow your guide i done with unpack and i can edit it, but m a new and i wonder if i can make it back to tar or md5 for odin flash thank you guys...for your reply
Click to expand...
Click to collapse
I dont have any idea.........try creating ashable zip.....it will be easy!
Sent from my GT-I9300 using xda app-developers app
Thanks for the guide -- it helped me out.
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
wajiman said:
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
Click to expand...
Click to collapse
Don't mean to make you look noobish but have you set the directory in command prompt to where the .jar file is saved before executing sgs2toext4.jar?
Sent from my GT-I9300 using xda app-developers app
wajiman said:
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
Click to expand...
Click to collapse
Java runtime is missing, you need to install it first.
Drag & Drop sgs2toext4.jar
Hi! Has someone try it out sgs2toext4.jar in linux? I'm using Ubuntu 12.04 and the step of drag & drop doesn't work...
Thanks mate really helpfull
how long does sgs2toext4.jar it take to convert a file?
t3project said:
how long does sgs2toext4.jar it take to convert a file?
Click to expand...
Click to collapse
It depends on the size of the file.....normally takes 3 mins if your computer is not the latest...
Sent from my Micromax A110 using xda app-developers app
balamu96m said:
It depends on the size of the file.....normally takes 3 mins if your computer is not the latest...
Sent from my Micromax A110 using xda app-developers app
Click to expand...
Click to collapse
then it obviously isnt working for me. i get this after dragging an img into sgs2toext4
Code:
drop a samsung ".img" file here
output will be <inputname>.ext4.img
Added: C:\stock_ma5_img\system.img
system.img 32 B 32 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
any ideas? what's the deal here?
same here right the same
wrong topic sorry

extract system.img?

how to open it?
Try free arc from freearc.com ( not sure )
yes i m Flasholic
---------- Post added at 10:54 PM ---------- Previous post was at 10:53 PM ----------
Not sure about link
yes i m Flasholic
Code:
mkdir system
sudo mount -o loop system.img system
MarcoToo said:
Code:
mkdir system
sudo mount -o loop system.img system
Click to expand...
Click to collapse
You sure about it? Will it work?
Sent from my GT-S5360 using XDA
hell_lock said:
You sure about it? Will it work?
Click to expand...
Click to collapse
I do it every day on my Linux box. Considering you developed that kernel I think you know how to handle the command line ;P
MarcoToo said:
I do it every day on my Linux box. Considering you developed that kernel I think you know how to handle the command line ;P
Click to expand...
Click to collapse
Yes sure! Thanks
Sent from my GT-S5360 using XDA
or just use archive handling softwares.. like izarc, 7zip will open them.. both are free too..
7zip dont opened me on win8
JustInsAne aka CALIBAN666 said:
7zip dont opened me on win8
Click to expand...
Click to collapse
well it does open.. intead try extracting it...
or try izarc.. it shows each file and folder under .img files
or try winimage
Sent from my Nexus 4 using Tapatalk 2
winimage say me error on all kernel ive test,but ive only the test version for 30 days.
winimage doesnt work on kernels
...
if i remember hell lock said once a kernel is compiled (boot. img)
u cant open it?
i dont remember
but winimage works on system.img
Sent from my Nexus 4 using Tapatalk 2
jasonxD said:
winimage doesnt work on kernels
...
if i remember hell lock said once a kernel is compiled (boot. img)
u cant open it?
i dont remember
but winimage works on system.img
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Boot.img is not kernel.. its usually said like that.. but its a file containing kernel+ramdisk.. so you can extract boot.img using a perl script file or by other methods like kitchens, etc... zImage is actually kernel which can't be opened after compilation afaik..
____________________________________
Falling Doesn’t Make You a Failure, Staying Down Does
Deadly. said:
Boot.img is not kernel.. its usually said like that.. but its a file containing kernel+ramdisk.. so you can extract boot.img using a perl script file or by other methods like kitchens, etc... zImage is actually kernel which can't be opened after compilation afaik..
____________________________________
Falling Doesn’t Make You a Failure, Staying Down Does
Click to expand...
Click to collapse
I usually use a hex editor to chop them apart manually
via XDApp
MarcoToo said:
I usually use a hex editor to chop them apart manually
via XDApp
Click to expand...
Click to collapse
You are a monster!!
Sent from my GT-S5360 using XDA

Categories

Resources