How to Create your own recovery.img - G1 Q&A, Help & Troubleshooting

So I was wondering... How can I extract a Recovery.img to edit, and repack it?
What software do I need? Also, What OS is better for this (I have all 3) Vista, Linux or Mac?
Regular IMG/ISO programs won't open the recovery IMG files... what can i use? any help would be appreciated...thanks.

unyaffs? 10char

This is explained in the stickies in the development section, I think its titled something like "how to edit boot and recovery images" posted by JF. Its pretty simple, you'll need linux. Not sure about a mac.

Related

Open a .img from bart backup?

I want to open up a system.img from an older bart backup to extract a couple apps. How can I do this? Seems like any archive program doesn't want me to open it.
Yeah you can't actually extract apps like that. You would have to flash the system.img, let it load up, and back up your .apks from there.
Another method that I have never tried for myself is to mount the system.img in the sdk emulator and see if that gets you anywhere.
If you are on linux, you can use the unyaffs to extract the contents of .img files.
peshal said:
If you are on linux, you can use the unyaffs to extract the contents of .img files.
Click to expand...
Click to collapse
a month and a half later, but thank you! This will be useful in the future.
Ooh yes that will be useful for me as well, thanks!

(Is it possible to) edit boot.img under Windows?

The title says it all... I need to change that boot.rc script... and maybe replace the kernel.
Do I need windows for that?
somebody said something about cygwin... or anything...
Will that do the trick? and how?
Or can I use the shell on my phone for unpacking and creating boot.img files? (via adb for example)
Thanks in advance
check out the link in my sig.
it's a kitchen that can be run in windows under cygwin.
it allows you to extract the kernel from your rom and repack it, among other things.
not sure if that's quite what you need, but it might be worth looking at.

[Q] (Q) How to collect smart flash flashable file from kdz?

Hi guys, i searched lot, but did not find any proper solution for getting flashable files of smart flash from kdz..
Plz help guys..
Obviously you haven`t searched enough .
I think that you are looking for LGExtract 0.2.1
Tool is in it`s beginning, but from reading I think that it can extract smartflash files from kdz and it is tested on p990 (I haven`t tested it).
k, i tried that, now i got 13 files.
some are img, some fls etc.
but we need only 2 files for flashing with smartflash tool. bin and fls.
how to get them ?
As I said, I haven`t tried to do this, hence I can`t help you. You will must to read and ask for support in original thread, where the author of the tool is present.
If you are trying to flash kdz and since LG have changed their politics, try to read this thread too... http://forum.xda-developers.com/showthread.php?t=1473781
Hi all,
first, thank you Memhis, the tool is excellent. It works under Linux too in Wine environment.
But I have some observations and some questions
- first decrypt/decompile KDZ file only extract a CAB file - this CAB file can be extracted by cabextract utility
- after CAB file extraction, there is WDB file and machine specific DLL - this DLL file must be used for extraction of WDB, I try the newer one without success
- after performing extraction of WDB using DLL there are number of files which can be useful
AENEAS_FW.fls, psi.fls, R375_SIC.fls, slb.fls - these files are the baseband and can be flashed using smart flash tool - it must be flashed all, not only some
#_Split_Data.img - after joining this file to one, it contains Linux filesystem (now EXT3) with all data of /system partition and you can get lge-ril.so from this
The remaining files I don't identify and only speculate what is it
ext3_flashboot.img - this filesystem is used to boot for flashing???
fastboot.bin - ???
recovery.img - recovery partition - this images is used to replace ClockWorkMod I think
Once again, many thanks. I was searching for this similar tool about six moths ago.
can you tel me,how do you extract the split_data.img??
at this point i have no idea what i must do and find nothing about it.
cojo11 said:
can you tel me,how do you extract the split_data.img??
at this point i have no idea what i must do and find nothing about it.
Click to expand...
Click to collapse
+1
........
There is nothing to "extract" from split_data.img. It is a true EXT3 Linux filesystem. You have to use a Linux box or something to allow mount an Linux image to Windows environment. I can only point you to http://www.ext2fsd.com/ site which is free good ext2/3/4 filesystem driver, but I don't know, if it is usable - it can mount a Linux partition under Windows but don't know it can mount a image file as disk. Hope so.
Thanks for the information, but I can't extract Split_Data.img (it's the joined file of 4 .img files).
How can I extract this .img in Linux (virtual machine)?
Flix123 said:
Thanks for the information, but I can't extract Split_Data.img (it's the joined file of 4 .img files).
How can I extract this .img in Linux (virtual machine)?
Click to expand...
Click to collapse
You have to mount it, like it is a whole filesystem. Google it to find out how to mount img file. Once done, you'll open it like a hard drive.
Edit: Forget my question, it works now!
My last question: Is the file "ext3_flashboot" the same as the boot.img files in CWM roms?
OK, I managed to extract the kdz file and I made a rebuild of V20c without flashing the kdz, just with extracting!
I'll upload it in a few minutes!
For those who wants to extract KDZ I prepare a little manual...
Keltek said:
For those who wants to extract KDZ I prepare a little manual...
Click to expand...
Click to collapse
Hi Keltek, thanks for the manual. but i am getting some error, any ideas? I'm using Win 7 32-Bit. This is the error:
C:\>LGExtract -kdz V20F_00.kdz
Extracting:
KDZ: V20F_00.kdz
Failed to create cab file.
Error code: 00000005
Message: Access is denied.
Failed to extract file.
Please report this error with this file.
thanks
NEVER MIND: cmd.exe should "Run as Administrator", it works now.
The last question I have is how to join the 4 extracted baseband files to one file?
Does that work with copy /b command?
What i got from flashing basebands is that youre supposed to flash them one by one from largest to smallest file. so basically what you should be doing to "compress" the procedure is you unpack those 4 files, put the largest one in place and copy the others onto it, replacing duplicates. Then repackage what you merged, and try that, cant think of anything more logical than that.
That sounds logical, but I don't know how to extract the files.
But it's not very important, because it isn't a problem to flash 4 files instead of one.
Please extract Bb from v20h rohan
Sent from my LG-P990 using Tapatalk
If you give me the link to the kdz, I will extract the baseband for you.
spica1234 said:
Please extract Bb from v20h rohan
Click to expand...
Click to collapse
You should specify from which ROM file, coz there are many version with same identification but different content - I don't understand why LG do this - the V20q for Czech Republic is not the same as V20q for Italy...
I take a look at V20h and it contain 1035.21_20110725 BaseBand.

Extract Boot.img failed

Hello,
I search to unpack the boot.img to change files but impossible, I tested all, no program can unpack ... could you pleased help me ?
Thank you in advance.
The RAZR I one? Look in the development section. It will extract it very easy.
Sent from my XT890 using xda app-developers app
I don't find thé hex dump tool ans didn't understand the tuto..
Search in the dev section for:
Unpacking RAZR I boot.IMG from turl.
Our boot image isn't the same as others. There is no way u can extract things without the needed files. If u can't do anything with the topic about the boot.IMG in the dev section, I can't help u.
Sent from my GT-P5110 using XDA Premium HD app
I have find this.. But i don't understand what is the ''tool'' when you use...
can you give me all the URL of files and tool and... For editing the boot.img please ?
Thank's..
Up...
The only way (as far as i know) to unpack a boot.img from the Razr I is to use an linux powered PC. The tools in the topic that are provided need to be build first. And for it to build u need a linux (ubuntu) operating system. I will upload (when i have the time) my tools to unpack and repack the boot.img with a description on how to use them, but they only work on linux.
p.s. don't bump the post if it isn't answered in 1 day. Sometimes someone that will reply isn't online or is doing other things and didn't noticed it. If it were 3 or more days, oke. Just my opinion
Hazou
Bootimage tools
Here u go. My bootimage extract and pack package. It only works on linux. See the zip, and extract it somewhere in your linux distribution.
Instructions:
1. Put a boot.img in the root of the extracted bootimage packages (where the folders Ramdisk, Bootimage, Kernel, Tools are)
2. Execute the file extract.
3. Kernel can be found under the map kernel
4. Ramdisk can be found under the map Ramdisk/ramdisk
5. Modify your things
6. Pack the files by executing create.
Notes:
In the map Bootimage is a bootstub (bootold.img) needed for rebuilding the boot.img and some old scripts
In the map Kernel will be the extracted kernel. The file bzImage will always be used for rebuilding.
In the map Ramdisk will be the extracted ramdisk in the map ramdisk. The map 'ramdisk' will always be used for rebuilding,
In the map Tools will be the tools needed for extracting and creating.
If u have some questions about this tool, ask!
Credits to Turl1 for the tools
Hazou

How to convert zip updates to mofo or fastboot flashable images

Does such a thing exist? if not i'd be willing to donate to the cause for a tutorial
wrecklesswun said:
Does such a thing exist? if not i'd be willing to donate to the cause for a tutorial
Click to expand...
Click to collapse
It can be done manually, but it's kinda labor intensive.
You mount the old (latest full image without the update) image in Linux, then unzip the update.zip then copy and replace everything in the .zip file to the mounted image.
Just have to make sure you do it for every file and directory and possibly you have to set the file permissions and file owners again...
i am a windows guy so kinda confusing - i start with an img file which i mount using? once mounted, i get the place everything in the zip in the mount commit and unmount. is thi ssimply it? if so what could i use the mount the img? vmware? virtualbox?
wrecklesswun said:
i am a windows guy so kinda confusing - i start with an img file which i mount using? once mounted, i get the place everything in the zip in the mount commit and unmount. is thi ssimply it? if so what could i use the mount the img? vmware? virtualbox?
Click to expand...
Click to collapse
I have both Ubuntu and Windows here at work, and I've been trying to modify Android .img files without much success using Windows.
The problem is that those .img files are in EXT4 filesystem, which Windows doesn't support natively.
There some EXT4 utilities for Windows, but I haven't really had the time to try them yet.
If you have VMWare or Hyper-V on your Windows machine, you could just set a VM with Ubuntu, or you could just use a computer to boot Ubuntu from USB flash drive, without the need to actually install it.
However, because you are not familiar with Linux, it's going to be hard for you...
It basically involves mounting an old .img file, then unziping the .zip and replace everything in the .zip file to the mounted image.
However, you need to pay attention to file permissions and file owenship, when replacing the files.
It's really a lot of work... I'm using my own modified .img files based on ComputerFreek's images but I've never attempted to "patch" an .img with an update.zip... it's just not worth my time..
Here is the link to if you want to learn how to modify an .img file: http://forum.xda-developers.com/droid-turbo/general/tutorial-how-to-modify-turbo-images-t3064595
It's probably easier to just wait for the full .img
how about conveerting a zip to a img?

Categories

Resources