How to extract stock ROM to retrieve certain files - Galaxy Note II Q&A, Help & Troubleshooting

Hello all,
I sold off my note 2 but i miss the ringtones that it had. I want to extract them from the stock ROM and use it in my current device.
I extracted the .tar.md5 file and a few .img files appeared. I tried to extract / view the system.img file but I couldn't. These programs couldn't read the .img files.
What should i do?

You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium

dr.ketan said:
You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Thank you for pointing me into the right direction.
I used this Wonderful tool and avoided opening the file in Linux
http://sourceforge.net/projects/androidicsjbext/

Related

[GUIDE] Noob Friendly RFS Browsing/Extracting Guide

Ok guys,
So after having seen a million and one questions on how to extract RFS files and all the complex answers we keep getting on mounting rfs files in linux and blah blah blah (all a waste of time if all you need is to view/extract files from an RFS file from some firmware)... and now there is no excuse for those few requesting other members to extract stuff for them.. you can do it yourself!
Here is the easy/fast way to do it without having to go through all the trouble
NOTE: This, mind you is mainly for extracting/viewing. Not for editing RFS files.
Go to:
-http://www.magiciso.com/
-Download MagicISO (its free trial but that don't matter for viewing/extracting)
-Install
-Open MagicISO
-Hit File->Open
-In the section "Files of type:" - Click the drop down and select "All Files (*.*)"
-Select RFS file of your choosing (For example: factoryfs.rfs where all firmware apps are located)
and..
VIOLA!
Browse/Extract anything you need... No hassles.
To extract you can simply click and drag to another folder/desktop as needed
Cheers!
TY for this guide. Unlike htc hd2 forums I really have hard time getting answers to my questions in tab forums so this kind of guides helps me very much. Again TY.
You sir, are very welcome!
Glad it helped. Thats what we're here for!
Make it a sticky !
add it to the wiki rather than making this post sticky. http://modadroid.com/index.php/Main_Page
Just tried it with UltraISO. It seems to work, too.
Thanks
tovarish said:
add it to the wiki rather than making this post sticky. http://modadroid.com/index.php/Main_Page
Click to expand...
Click to collapse
Its locked for editting
MagicISO didn't work for me. I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Sent from my SCH-I800 using XDA App
chuckbeasley said:
MagicISO didn't work for me. I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Sent from my SCH-I800 using XDA App
Click to expand...
Click to collapse
This guide is only for browsing and extracting RFS files hence the name. It is not for modification.
I'm aware of what the original post was explaining. I tried that solution and it failed. That's why I suggested another method. MagicISO didn't work for me. If others try it and it doesn't work for them either, at least they have another solution that will always work and the option to modify the file system, if they so choose.
Sent from my SCH-I800 using XDA App
chuckbeasley said:
I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Click to expand...
Click to collapse
That's the Linux command line, right ?
#mount -o loop factoryfs.rfs /mnt/rfs
Otherwise on Mac OS X, you can use this:
#sudo mkdir /Volumes/RFS
#sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ARCHIVE.rfs
#sudo mount_msdos /dev/disk{n} /Volumes/RFS
daniel.weck said:
That's the Linux command line, right ?
#mount -o loop factoryfs.rfs /mnt/rfs
Otherwise on Mac OS X, you can use this:
#sudo mkdir /Volumes/RFS
#sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ARCHIVE.rfs
#sudo mount_msdos /dev/disk{n} /Volumes/RFS
Click to expand...
Click to collapse
Please don't forget when you finished on OSX to run:
sudo umount /Volumes/RFS/
hdiutil detach /dev/disk{n}
i can't open the factoryfs.rfs of a samsung galaxy s. can anyone send me the /lib folder from galaxy s and the flash apk in the app folder...thanks
seven2099 said:
Ok guys,
-In the section "Files of type:" - Click the drop down and select "All Files (*.*)"
-Select RFS file of your choosing (For example: factoryfs.rfs where all firmware apps are located)
and.. VIOLA!
Browse/Extract anything you need... No hassles.
Click to expand...
Click to collapse
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Robin M said:
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Click to expand...
Click to collapse
you could look up the long way of mounting and extracting RFS.. Its a major pain though, why dont you make a post asking for those missing files in the forum.
Better bet.
Robin M said:
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Click to expand...
Click to collapse
I used Root Uninstaller and got rid of a vcastmusic.apk file. It's 4.46mb. Is this what you need?
Where is the thanks button!! It worked for me..!! I needed it!!
one question: I am unable to extract one particular factoryfs.rf of one rom, MagicISO says it is not an image file. Can you help me there?
Use linux disk reader to open ext4 files (even .rfs files can be ext4)
@neo yea magiciso says so on ext4 archives
cdesai said:
Use linux disk reader to open ext4 files (even .rfs files can be ext4)
@neo yea magiciso says so on ext4 archives
Click to expand...
Click to collapse
@cd if i select factoryfs.rfs from linux reader i only get the same single file as the output!! No use yaar
Works for Galaxy Ace's firmwares. Thanks. I'm trying to cook my first ROM for Galaxy Ace (cooper). Wish me luck!

nandroid emulator?

Is there an nandroid rom emulator for PC so I can view and mess with my backups without having to flash them? Or even just view them..
Sent from my HTC Vision using XDA App
Bump
Sent from my HTC Vision using XDA App
Just open them on your pc.... what else do you want to do?
Sent from my HTC Vision using XDA App
shortlived said:
Just open them on your pc.... what else do you want to do?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
They aren't the kind of files that you can just double click.
The boot and recovery images can be split with splitboot or a hex editor for the mischevious. You can use unyaffs on the system image to extract it.
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images
http://forum.xda-developers.com/showpost.php?p=4474956
I haven't tried to extract userdata.img, but my guess that it's similar to the system.img, but with slightly different headers.
In short, I don't think there is an easy way to check what is on a backup, but that also depends on your idea of easy. As much as I like flashing my NAND, I'd rather unpack an image than flash a backup just see what the tooth fairy left inside.
Going forward, the OP could make a manifest of all the files and save that with the backup. this might do the trick?
Code:
ls -aR /* > manifest2010-12-31.txt
Thanks a bunch. There was once an emulator made that showcased android 1.5 as if you had a phone screen on your desktop. You could even install apks on it and some worked.
It would be neat if someone took it a few steps further to load even custom test roms so you try.. say a sense rom to see if you even liked sense before flashing your phone.
That's the official Android emulator, it's included in the SDK. You can try running your own images on it, but I could never get them to boot properly.
To open the .img files found in a nandroid backup you have to unyaffs them. It pretty much extracts the files out of the .img
I've attached a copy of the tool, just extract it, put the .img file in the unyaffs folder, and drag and drop the .img file onto unyaffs.exe.
Hope that helps
EDIT: Make sure it's a copy of the .img so you should NOT remove the file itself from the backup folder.

[REQUEST] Stock files

Hi guys!
Can someone provide me, with an unzipped bin file?
I can't find any program, that can unzip binary image files...(.img)
IF you could, thanks
familyguy59 said:
Hi guys!
Can someone provide me, with an unzipped bin file?
I can't find any program, that can unzip binary image files...(.img)
IF you could, thanks
Click to expand...
Click to collapse
What are you looking for? The contents of the system.img file?
Yes I am I need some stock files, to compare them
Thanks for the quick answer, efrant
Sent from my Galaxy Nexus using XDA
familyguy59 said:
Yes I am I need some stock files, to compare them
Thanks for the quick answer, efrant
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
You need to convert the .img file to an .ext4.img file. Then you can mount it if you are using linux or, if you are using Windows, use some program to mount it. I've mentioned how to do this in this post. See the last two sentences in the blue "How to flash" section.
efrant said:
You need to convert the .img file to an .ext4.img file. Then you can mount it if you are using linux or, if you are using Windows, use some program to mount it. I've mentioned how to do this in this post. See the last two sentences in the blue "How to flash" section.
Click to expand...
Click to collapse
Oh. Cool

Mod roms using 7zip but on the phone?

My laptop broke,i usually mod my roms using 7zip,i remove or add apk files and more.
Is there any way to do this on the phone?I dont know of any compression apps in the market that will let me add or delete files while leaving the rom intact.
If i just unzip the rom,mod it and rezip it,will it work?Or it needs to be a certain zip format?
Use any file explorer that allows you to unzip/rezip
As long as you navigate back to the original file structure (usually /system, META-INF folders and boot.img) and zip up those three you'll be fine and be able to flash your modified zip in a custom recovery
I'm not familiar with any program able to properly decompile an apk or jar by using JUST the phone but if your just adding/deleting apk's you'll be good with just about any file explorer
Sent from my SPH-L710 using Tapatalk 2
fergie716 said:
Use any file explorer that allows you to unzip/rezip
As long as you navigate back to the original file structure (usually /system, META-INF folders and boot.img) and zip up those three you'll be fine and be able to flash your modified zip in a custom recovery
I'm not familiar with any program able to properly decompile an apk or jar by using JUST the phone but if your just adding/deleting apk's you'll be good with just about any file explorer
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
What about the compression method?Should i choose High,Low or Medium?
And are you sure it doesnt have to have some special zip method?Dont want to brick,lol.
Thats what i was thinking just to use ES File Explore because it has built in zipl.
lviv73 said:
What about the compression method?Should i choose High,Low or Medium?
And are you sure it doesnt have to have some special zip method?Dont want to brick,lol.
Thats what i was thinking just to use ES File Explore because it has built in zipl.
Click to expand...
Click to collapse
I use this
https://play.google.com/store/apps/details?id=nextapp.fx
Download the added root apk from the developers website. Extract the ROM you wanna modify, navigate to the extracted ROM and do whatever, then navigate to the original file structure and zip up those contents to flash in recovery
If there are different options for zip just use the defaults
Sent from my SPH-L710 using Tapatalk 2
fergie716 said:
I use this
https://play.google.com/store/apps/details?id=nextapp.fx
Download the added root apk from the developers website. Extract the ROM you wanna modify, navigate to the extracted ROM and do whatever, then navigate to the original file structure and zip up those contents to flash in recovery
If there are different options for zip just use the defaults
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Thanx a lot man,it worked!ES Explorer can only compress folders but FX Explorer can compress saperate files.I used higest compression.
Now i feel like i dont need windows or osx anymore,i can do just about everything on android.Oh and FX Explorer is definetly nice,i might use it instead of ES now,to bad they make you pay for it.

I guess I give up

Well, I have have the zip file for CM10 on phone (download folder) and pc and explored it to find the boot.img file to extract to find out it is not there, not only that but I cannot seem to find a way via either my pc or file mgr apps (i.e. root file manager) to move both the cm10 zipfile and gapps zipfile to the root folder on my phone, so I am at my wits end and guess I am stuck with ICS which I really am not at all impressed with.
So basically I am beginning to believe that it is not really possible to do this
qzone23 said:
Well, I have have the zip file for CM10 on phone (download folder) and pc and explored it to find the boot.img file to extract to find out it is not there, not only that but I cannot seem to find a way via either my pc or file mgr apps (i.e. root file manager) to move both the cm10 zipfile and gapps zipfile to the root folder on my phone, so I am at my wits end and guess I am stuck with ICS which I really am not at all impressed with.
So basically I am beginning to believe that it is not really possible to do this
Click to expand...
Click to collapse
There are some stock kernels with recovery in the development section. Find them and read the OP. Flash them and then flash the zip via recovery. The zip can be anywhere, doesnt have to be the root folder.
Sent from my LT26i using XDA Free mobile app
Thanks so much for a little direction, found the recovery file that I need so that I can actually get into recovery mode. But, the one step I didn't see posted was do I unzip it on PC or phone before executing install.bat?
Sent from my LT28at using XDA Free mobile app
qzone23 said:
Thanks so much for a little direction, found the recovery file that I need so that I can actually get into recovery mode. But, the one step I didn't see posted was do I unzip it on PC or phone before executing install.bat?
Sent from my LT28at using XDA Free mobile app
Click to expand...
Click to collapse
Install.bat? Could you redirect me to the post you used to download the recovery?
http://forum.xda-developers.com/showthread.php?t=2055043
I simply clicked on the link to install cwm
Sent from my LT28at using XDA Free mobile app

Categories

Resources