[Request] rawprogram0.xml and it's patch for QFIL - LG V40 Questions & Answers

I accidentally deleted the partition for the phone thus not being able to boot is a problem. I found some website regarding on how to make one but all of them have GTPrimary while mine doesn't. Has anyone tried to unbrick using this method?

ultoramansaga said:
I accidentally deleted the partition for the phone thus not being able to boot is a problem. I found some website regarding on how to make one but all of them have GTPrimary while mine doesn't. Has anyone tried to unbrick using this method?
Click to expand...
Click to collapse
I'm in the same boat. Did you find a solution

vizagi said:
I'm in the same boat. Did you find a solution
Click to expand...
Click to collapse
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.

ultoramansaga said:
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.
Click to expand...
Click to collapse
Hey, I know this was a while ago, but I can't get this to work. Whenever I get to the dz file, it just opens super quick and then closes. It doesn't create rawprograms files.

ultoramansaga said:
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.
Click to expand...
Click to collapse
Hey so i followed this tutorial as best as i can and i get "Download Fail:Sahara Fail:QSaharaServer Failrocess fail." It may be because i don't fully understand what the instructions are for step 6 here aside from putting letters in front of file names, or maybe because it generated the raw programs wrong? If you can provide some insight then it would help me a ton, i also deleted the partition for this phone and it would be REALLY neat if i didnt have an expensive paperweight that doesn't boot past EDL
EDIT: Well i figured out why the letters are added to the rawprogram files, my pc was running out of space so the alphabetical dz files weren't being generated in the dzextracted folder so i couldn't put two and two together. My issue now is the QFIL now produces "Download Fail:FireHose Fail:FHLoader Failrocess fail" and i think it has to do with the renamed rawprogram files since only selecting the unnamed rawprogram (rawprogram0.xml) makes QFIL want to successfully download but nothing happens. Do i have to do something specific with the renamed xml files or would it have to do with the firehose? I feel like i'm getting a bit closer

Gehis514 said:
Hey so i followed this tutorial as best as i can and i get "Download Fail:Sahara Fail:QSaharaServer Failrocess fail." It may be because i don't fully understand what the instructions are for step 6 here aside from putting letters in front of file names, or maybe because it generated the raw programs wrong? If you can provide some insight then it would help me a ton, i also deleted the partition for this phone and it would be REALLY neat if i didnt have an expensive paperweight that doesn't boot past EDL
EDIT: Well i figured out why the letters are added to the rawprogram files, my pc was running out of space so the alphabetical dz files weren't being generated in the dzextracted folder so i couldn't put two and two together. My issue now is the QFIL now produces "Download Fail:FireHose Fail:FHLoader Failrocess fail" and i think it has to do with the renamed rawprogram files since only selecting the unnamed rawprogram (rawprogram0.xml) makes QFIL want to successfully download but nothing happens. Do i have to do something specific with the renamed xml files or would it have to do with the firehose? I feel like i'm getting a bit closer
Click to expand...
Click to collapse
Sorry for the late reply, have you used the correct firehose file? If so, you need to restart the phone by clicking the bottom volume button + power button and then go back to 9008 mode

ultoramansaga said:
Sorry for the late reply, have you used the correct firehose file? If so, you need to restart the phone by clicking the bottom volume button + power button and then go back to 9008 mode
Click to expand...
Click to collapse
It's all good now, I was having trouble at first because it wasn't made clear that you needed to go into into each txt file with notepad and make changes there and instead I only changed the title of the txt and nothing else, but it was a day after editing my original question that I figured it out in my own. My phone is up and running now but it no longer accepts a sim card, not sure if that's a fixable issue in itself

Gehis514 said:
It's all good now, I was having trouble at first because it wasn't made clear that you needed to go into into each txt file with notepad and make changes there and instead I only changed the title of the txt and nothing else, but it was a day after editing my original question that I figured it out in my own. My phone is up and running now but it no longer accepts a sim card, not sure if that's a fixable issue in itself
Click to expand...
Click to collapse
Hi
Can you explain what you did with the rawprograms. Did you rename it like this: rawprogram1 --> B.rawprogram1 ?
Can you share the example of renaming . Thanks

ultoramansaga said:
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.
Click to expand...
Click to collapse
Do you have the rawprogram files for the LG V40 that you can send me (also letting me know which firmware they are from)?
I've tried using this guide several times only to end in python errors. (I accidentally deleted all partitions on my phone when i was only trying to remove 1 of them) and want to use this with 9008 to revive the phone.
i keep getting this error when i run undz.py
Traceback (most recent call last): File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 1130, in <module> dztools.main() File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 1092, in main self.dz_file = UNDZFile(cmd.dzfile) File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 954, in __init__ self.loadChunks() File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 633, in loadChunks g = gpt.GPT(self.chunks[0].extract()) File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 228, in extract buf = dctx.decompress(zdata, max_output_size=200000000) zstd.ZstdError: error determining content size from frame header
Gehis514 said:
It's all good now, I was having trouble at first because it wasn't made clear that you needed to go into into each txt file with notepad and make changes there and instead I only changed the title of the txt and nothing else, but it was a day after editing my original question that I figured it out in my own. My phone is up and running now but it no longer accepts a sim card, not sure if that's a fixable issue in itself
Click to expand...
Click to collapse
do you by chance still have your rawprogram files that were generated?
Edit: I found this youtube video providing a full backup image that i used with QFIL to revive the phone. files are linked in video description. hope it helps others that need it.

CodeDonut said:
Do you have the rawprogram files for the LG V40 that you can send me (also letting me know which firmware they are from)?
I've tried using this guide several times only to end in python errors. (I accidentally deleted all partitions on my phone when i was only trying to remove 1 of them) and want to use this with 9008 to revive the phone.
i keep getting this error when i run undz.py
Traceback (most recent call last): File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 1130, in <module> dztools.main() File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 1092, in main self.dz_file = UNDZFile(cmd.dzfile) File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 954, in __init__ self.loadChunks() File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 633, in loadChunks g = gpt.GPT(self.chunks[0].extract()) File "C:\Users\Donut\Desktop\kdztools-master\undz.py", line 228, in extract buf = dctx.decompress(zdata, max_output_size=200000000) zstd.ZstdError: error determining content size from frame header
do you by chance still have your rawprogram files that were generated?
Edit: I found this youtube video providing a full backup image that i used with QFIL to revive the phone. files are linked in video description. hope it helps others that need it.
Click to expand...
Click to collapse
The files in that post saved me!! Thanks I had wiped both LAF and ABL A/B... Stupid, but i KNEW there was a way to recover since I could get 9008 mode!

ultoramansaga said:
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.
Click to expand...
Click to collapse
i keep getting this message
File "C:\Users\NoneYa\Desktop\kdztools-master\kdztools-master\undz.py", line 92, in loadHeader
print("[!] pad contains: " + dz_item['pad'].decode(), file=sys.stderr)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 12: invalid start byte

Ratty696 said:
i keep getting this message
File "C:\Users\NoneYa\Desktop\kdztools-master\kdztools-master\undz.py", line 92, in loadHeader
print("[!] pad contains: " + dz_item['pad'].decode(), file=sys.stderr)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 12: invalid start byte
Click to expand...
Click to collapse
Does anyone know how i can fix this error? I am trying to extract rawprogram files for lg g8x. Will the un brick files from here work for that?

[!] Error: extraneous data found IN version

ultoramansaga said:
Yes, I did found one, took a while though.
I used this tutorial but made some changes to fit with the v40: https://forum.xda-developers.com/lg...to-recover-hardbrick-9008-mode-boxes-t4052841
1.) Make you sure you download the right model kdz files from this website: https://lgstockrom.com/?s=v40 .
Don't download any files from lg-firmwares.com as their files are incomplete compared to the website I gave you.
2.) Follow the tutorial I gave you earlier until step 5.
3.) Write
Code:
unkdz.py -f yourv40model.kdz -x
4.) Follow step 9 (If you want to unzip the dz files first you can)
5.) Write
Code:
undz.py -f yourv40model.dz -r
(This will generate the rawprograms files)
6.) The rawprograms that you made cannot still be used, you'd need to make changes first. You need to download the "unbrick files from here" in the requirements section from the tutorial. Use this as a reference for making changes to the rawprograms text.
- If you still don't understand there are 6 rawprograms texts and from rawprogram1-6.xml you need to add a letter next to the filenames corresponding the dz files you extracted for example (for example filename= B.filename)
-For rawprogram1.xml you need to add B. next to the file name
-For rawprogram2.xml you need to add C. next to the file name
-For rawprogram3.xml you need to add D. next to the file name
-For rawprogram4.xml you need to add E. next to the file name
-For rawprogram5.xml you need to add F. next to the file name
-For rawprogram6.xml you need to add G. next to the file name
7. Now with the changes you made, now follow step 11-18.
Click to expand...
Click to collapse
I am getting this error:
usage: undz.py [-h] -f DZFILE [-b] (-l | -x | -c | -s | -i) [-d OUTDIR]
undz.py: error: one of the arguments -l/--list -x/--extract -c/--chunk -s/--single -i/--image is required
Seems like it is not executing the -r argument. Can you please help ot atleast point towards a direction? Mine is an LG G8x Dual SIM LMG850EMW.
Also, the link for Firmwares you provided, takes to a google drive and does not let download saying too many people is downloading from it. Can you please let me know if there are any other reliable source for Stock Firmware? (Update: Got around this and started downloading)
It's been more than a week I'm on a button feature phone.

Related

initflashfiles.dat -- Help Needed

So I've been playing around for a little while with the intention of creating my own custom ROM. I think I've got everything all figured out - however I'm having a problem that I think is related to the initflashfiles.dat file. Basically, after flashing my new OS ROM, my 8125 hangs at the splash screen with the version numbers on it. As a test, I redid my modified ROM, except I used the original initflashfiles.dat - this worked just fine. Tried it again by building the ROM with my modified initflashfiles.dat - same problem.
Here are the steps I'm going through.
1. Parse out the nk.nbf file using typhoonnbfdecode -x
2. prepare_imgfs 80040000-OS.nb -nosplit
3. viewimgfs imgfs_raw_data.bin
4. Modify contents of dump directory. Basically I've deleted files I don't need and added new ones.
5. Modifiy initflashfiles.dat (which I've attached). After modifying the file I open it in a hex editor and remove the first two bytes - making the first byte 3B (";"). I save it and mark it as read-only.
6. buildimgfs
7. make_imgfs 80040000-OS.nb -nosplit
8. Run nb2nbf_tornado.exe. I do run this correctly, using the correct memory address for the OS .nb file.
9. Put the new nk.nbf into an existing RUU self-extracting archive and run it.
It really seems like it's the initflashfiles.dat file - as I've successfully loaded this ROM with the original file (its really not the original, it's from a summiter ROM that I'm basing mine off).
Any thoughts?
I'm going to bump this once just in case people missed it originally.
I've messed around a bit more, and have pretty much isolated that this is my problem - but for the life of me I can't figure out what I'm doing wrong.
CameronJ said:
I'm going to bump this once just in case people missed it originally.
I've messed around a bit more, and have pretty much isolated that this is my problem - but for the life of me I can't figure out what I'm doing wrong.
Click to expand...
Click to collapse
Hi,
i see that the file you've attached isn't actually a .DAT file. It is a .dat.TXT that's the same that saying it's a TXT file!!!
If the file you're putting inside your ROM is this very same file (.dat.txt) then you've found your problem: you need a .DAT and NOT a .dat.txt file!!!
Try following this procedure on your PC (i suppose you're using XP or 2003 server):
- open a folder (whichever folder you like, it's not important)
- on the Tools menu click Folder Options.
- click the View tab.
- clear the Hide extensions for known file types check box.
- press OK
PS: Here is an illustrated guide on how to show file extensions
Now go to the place where your initflashfiles.dat is. If the file is named 'initflashfiles.dat.TXT' (like the file you uploaded in this forum) then:
- select the file
- press F2 (or right click and choose 'Rename')
- remove the tailing .txt from the name
Finally:
- let us know if it worked
Bye bye
risidoro said:
i see that the file you've attached isn't actually a .DAT file. It is a .dat.TXT that's the same that saying it's a TXT file!!!
Click to expand...
Click to collapse
:lol: Thanks for the reply.
I had to add the .txt extension otherwise the forum wouldn't let me upload the file (.dat files are not on the list of available file types for upload).
When I loaded the file I meant to put that explanation in there but forgot before I finished the post.
Hi. I don't know if you're still working on this, but I'd like to share with you my experience last night. I examined your initflashfiles.dat, and it is perfectly ok.
As I see in your initflashfiles.dat, there are a lot of folder customization like:
Directory("\Program Files\Task Manager"):-File("taskmanager.exe","\Windows\taskmanager.exe")
There is nothing wrong with this as we need the file to be in the right location. BTW, THIS FORMAT WORKED FOR ME. Just a thought, you might be editing the default.hv and user.hv (hives) to put in the registry keys of some applications?
My device (Himalaya) did not start out correctly and did not execute the initflashfiles.dat, BUT when I connected my Hima through active sync, you can actually explore the contents. SO, in this non-working state, I experimented in tracing the culprit, by restoring a couple of the original files I edited. I found out that it has something to do with the way I edited the hives.
Steps I made in experimenting:
1. I sync my Hima to my PC.
2. Copied the original default.hv to \windows directory
3. Hard Reset Hima, BUT answer NO to all three boot options
4. My Hima started normally and executed initflashfiles.dat to the detail.
Discovery from experiment:
1. The files were only copied to the directory were we wanted it, BUT the original file is still in the \windows directory. Therefore, we did not save storage memory.
2. We only benefitted from an already installed app built into the ROM.
Hope this gives you some insight.

Building your own kitchen (Part 1)

Xplode has created a really great kitchen for us to play with and have made my custom ROM with this kitchen. I think it’s so easy that everyone is now able to create his own ROM.
However, I would like to go a bit further: Instead of just using the kitchen someone has made, I would like to take any of the ROMs (e.g. Helmi_BA_WM2k5_AKU3.5_v1.4.CF2 R2 by baniaczek) and use that as my kitchen starting point.
I’ve been doing a lot of reading on the subject and this is what I’ve figured out so far. It is by no means complete (or maybe even correct), but I can certainly use some help to get further. Below information is not something I found out on my own, but is based on what is mentioned in other postings in different forums and websites and picking apart the batch files I’ve found in several kitchens.
My intention of this posting is to make a simple how-to wiki-page so anyone could create his/her own kitchen and from that kitchen create the best possible ROM for their own use: Add the packages they use and leave out the stuff they don’t need. My plan is not that everyone will start publishing the ROM they have created from a decompiled ROM since there would simply be to many chefs
------------------
Step 1: Convert the nbf file to an nba file.
The ROM file that you load on your phone is always called nk.nbf. However, before you can do anything with this file, you’ll need to convert to to nk.nba. For this you use a tool called “xda3nbftool.exe” (yes, the one you used to set the operator with)
The command to do the conversion is: xda3nbftool.exe -x nk.nbf nk.nba 0x20040521
After a minute or so, you’ll have a file called “nk.nba” that is the same size as the original
Step 2: Brake the nk.nba file into separate files.
The nk.nba file consists of 2 parts and need to be split. To do this split, you’ll use the following command:
prepare_imgfs.exe nk.nba
After the program has run, you’ll have 2 files: “imgfs_removed_data.bin” (0.5 mb) and “imgfs_raw_data.bin” (variable size, but e.g. 27 mb)
Obviously, the part we’re interested in is the bigger file of the 2.
Important remark: For other HTC platforms (like HTC Uni), the above command is executed with an extra parameter “-nosplit”. However, if that parameter is added the output is unusable when performed on the Blue Angel ROM.
Step 3: Extract the modules
Now you have the raw image file, you’ll need to extract it and convert it back into modules.
To do this, you’ll first need to place a file called “recmod.exe” in the directory where the imgfs_raw_data.bin file is. The next step is to run this command:
viewimgfs imgfs_raw_data.bin
This command will create a directory called “dump” and it will extract all the files and many directories in this directory. You can have a look in this directory and will probably recognize a lot of the names if you have been building ROMs on someone’s kitchen.
Step 4: Dividing the modules into SYS and OEM
Before you can do anything with these modules, you’ll first need to convert them to packages. To do this, you’ll need a piece of software called “Package Tool” (from Bepe)
Start the program and select the dump folder via “File\Open”. Once selected, it will give some basic information about the dump directory like OS etc.
Now select Tools\Build Packages, but before you start the command, make sure you have the file map.txt in the same directory as the Package Tools application. That way, many of the GUID numbers will be translated to readable names.
This program will just run a few seconds. After it is complete, you’ll now find a SYS and OEM directory in the dump directory. If everything went well, then there will be just 1 file left: initflashfiles.dat. All other files and directories that were there before are now in the SYS or OEM directory.
However, in the real world…. My experience with several ROMs I’ve tried, the Package Tools program is unable to properly complete the process for a, to me, unknown reason and when it has run, the directory is far from empty. Under the section “[Missing Files]” there is the information about files that are missing.
When you look in this file, you’ll see that all the missing files are not really missing but are directories with the same names and extension of the files that where not placed in the correct sub-directories. All is not lost yet. You can manually move the files to the mentioned directories. Once you have completed this job, you should still end up with a virtually empty dump directory.
There is also a chance, like with fake WM6 ROM on this forum, that after you move all the files that are mentioned in the “missing files”-section but still end up with a long list of files in the dump directory. If that’s the case, then obviously something went wrong. However, at this point, I don’t know why this happens. However, it does look like it’s not a good starting point to build your own ROM with.
Remark: The “Missing files” section may also contain entries like this one:
19a7f28b-6bc7-4fe9-b060-76ae3a65ff72
19a7f28b-6bc7-4fe9-b060-76ae3a65ff72.rgu (File)
This indicates that the RGU file is missing. However, this is not a big problem. Just create an empty file with the name in the mentioned directory. Later on, the BuildOS.exe program will use the empty file to place the correct information in the file.
Step 5: Move the 2 directories
Now you have the correct SYS and OEM files, you’re on you way to start cooking. Move the 2 directories to a different directory. (like how it is in Xplode kitchen for example) and remove the dump directory
------------ Now, I’m at this point and here I’m a bit lost ------
Step 6: Adding and removing
Now you are at the part that was the whole point of the exercise: Adding and removing packages. Adding premade packages is not too difficult: With some luck the packages you want to add can be found in a different kitchen or is otherwise available. (Helmi and others wrote some documents on how to create packages, so refer to those).
Take the packages and place them in the OEM directory.
Taking out packages should be as simple as well: Just move the directories of packages you don’t want to a different directory (you could also just delete them, but you might need them again later). When removing packages, there is of course a big chance that you remove something that is essential for a part of the OS that you are not aware of, so removing bit and pieces is more trail, error and a bit of luck.
(continued on the next post)
Building your own kitchen (Part 2)
(continued from above port)
Step 6a: Changing the registry
After you’ve followed step 1 to 5, you also extracted the default.hv and user.hv and can be found in SYS\Metadata directory. This is the registry that also contain all the bits and pieces of registry files that are in the packages (the .RGU files)
To modify these 2 files, use these commands:
SET _FLATRELEASEDIR=.
rgucomp -o default.hv -nologo > default.txt
rgucomp -o user.hv -nologo > user.txt
Add "REGEDIT4" in the beginning of the files and leave a blank line at the end of the file. Save the file as UTF-16 or Unicode format. (Ultra-Edit is very good editor for this)
After you have made the changes, you will need to covert them back to a format your PPC will understand. Use these commands:
SET _FLATRELEASEDIR=.
copy default.txt boot.rgu
rgucomp -b
ren boot.hv default.hv
copy user.txt boot.rgu
rgucomp -b
ren boot.hv user.hv
---------------
The next steps are basically the reverse from the first 5 steps: After taking the files apart, they now need to be put back into place.
----------------------------------
Step 7: Building the ROM up again.
To start building the ROM now, the first command you execute is BuildOS.exe.
This program will create the dump directory again and will copy the directories and files from SYS and OEM to the directory.
Remark: There are several versions of BuildOS on this forum. Xplode’s kitchen is using a more advanced version where you can easily select the packages you want to be included (instead of moving them in and out the directory). This is a much nicer approach and will make ROM building as simple as installing a regular piece of software on your PC. However, to keep it a bit more simple for this how-to, I’m assuming an older version of BuildOS.exe that will not ask for any user input. (The more advanced version will require you to modify XML files to add packages. It’s not too difficult, but does require a bit more background knowledge)
Step 8: Building the file image system
Now you have all the files and directories that make up the ROM, you’ll need to convert it back into a file image.
For this, you run the program BUILDIMGFS (without any parameters)
Remark: For some reason, but this program is very memory intensive. If you don’t have that much internal memory, or your swap file is too small, this program is never able to completely run. I’ve noticed this problem on more then 1 computer. (I have the source code of this program and tried if I could do something about this. However, the program is heavily relying on a DLL called “cecompr_nt.dll” and I expect that that DLL is the culprit. I’ve been searching for more information on this DLL, but have not found anything on the internet about it)
Important note: If you have added to many modules to your own ROM, the BUILDIMGFS process may crash. So, if this happens, you’ll need to go back to step 6 and remove some of the packages you’ve added. If you go back to step 6, you’ll need to delete the “dump” directory first.
This program will convert the dump directory back in the file “imgfs_raw_data.bin”.
Once the program has run, the file should be something like 27 mb again.
If the program does not crash and runs to completion, there is still a chance that you have added to many packages to your ROM. When the BUILDIMGFS is ready, it will show the number of free sectors at the end of file system image. If it is showing something like ffffef that means that it’s too big, since it should show a small (hexadecimal) number like 1e or something like that.
Since/If you want to add as many packages as possible to the ROM (instead of installing them in RAM) you may need to repeat step 6, 7 and 8 several times. To make your life a bit easier, make a screen shot of the OEM directory and keep track which one worked and which one didn’t). If you go back to step 6, you’ll need to delete the “dump” directory first.
Step 9: Building the nk.nba
To create the nk.nba file again, you need the file you just created in step 8, but also the other file created in step 2: imgfs_removed_data.bin (maybe this file is created by buildimgfs??)
When you have these 2 files in a directory together, run this command:
MAKE_IMGFS nk.nba
Once the program is complete, the nk.nba file should be something 32 mb again.
Important remark: For other HTC platforms (like HTC Uni), the above command is executed with an extra parameter “-nosplit”. However, if that parameter is added the output is unusable when performed on the BA ROM.
Step 10: Convert the nk.nba back into nk.nbf
The final step of the process: creating the file that our BA understands: nk.nbf
This step is into 2 pieces:
A: Update the check-sum of the nk.nha file with this command:
XDA3NBFTOOL -c -u nk.nba
B: Convert the file:
XDA3NBFTOOL -x nk.nba nk.nbf 0x20040521
As you can see, the last parameter is the same as in step 1. This is some sort of password that is needed to encode the file with.
Now, the ROM is complete and you’re ready to flash it on your BA. I assume that you know how to do that part
** Can I use Notepad to edit and save ???
I got error here. When I try to do
To modify these 2 files, use these commands:
SET _FLATRELEASEDIR=.
rgucomp -o default.hv -nologo > default.txt
rgucomp -o user.hv -nologo > user.txt
Add "REGEDIT4" in the beginning of the files and leave a blank line at the end of the file. Save the file as UTF-16 or Unicode format. (Ultra-Edit is very good editor for this)
After you have made the changes, you will need to covert them back to a format your PPC will understand. Use these commands:
SET _FLATRELEASEDIR=.
copy default.txt boot.rgu
rgucomp -b
ren boot.hv default.hv
copy user.txt boot.rgu
rgucomp -b
ren boot.hv user.hv
************************************************************
C:\Scoter Kitchen\Utilities\TOOLS>rgucomp -b
Microsoft (R) RGUComp Version 1.0.000
Registry file processor and hive builder.
Copyright (C) 2004 Microsoft Corporation All Rights Reserved.
built: Nov 19 2004 15:17:13
importing registry file ".\boot.rgu"...
InitRegistry FAILED in file ".\boot.rgu" within a few lines of line 1.
BuildBootHive: (RGUComp) !ERROR failed importing ".\boot.rgu"
wmain: (RGUComp) !ERROR failed building BOOT hive
****************************************************
Now, I got errors on line 3 of default.rgu and line 154 of user.rgu ...
I didn't edit those line at all .. Why errors !!
I put REGEDIT4 in the first line of both default.txt, and user.txt and leave 1 blank line at the end.
I saved it into unicode.
Thank you for the info, will sure to give it a try when I have time later on...
Thank you very much! Will try to localize ROM using OEM Packages.
How to localize WWE ROM to other language?

[Ref] NBH Files for Splash Screens

I followed all the instructions on how to create but when I create the NBH file I cannot find it all my computer where I placed it...Then I search for it then I find it but the flash utility wont open the file and I can only see .nb files in the folder where I place everything.
Also what program should I use to resize my pictures to 400x640
And I've read many post on this so did get mad at me..... Because you wouldn't want to see me mad.... Hulk SMASH!!!!!!!!!!
Might as well delete this since nobody will give any pointers.....and I meant to put help and not [ref]
hopefully someone will respond cause I actually have the same problem...hahaha..put the file on my network --- somewhere --- and now can't recall where...haha
Sparkz914 said:
I followed all the instructions on how to create but when I create the NBH file I cannot find it all my computer where I placed it...Then I search for it then I find it but the flash utility wont open the file and I can only see .nb files in the folder where I place everything.
Click to expand...
Click to collapse
are you trying to change the bootsplash (1st screen) or the regular (2nd screen, non animated one)??? if your just trying to change the regular splash screen you dont need to convert to .nbh...just change the name to welcomehead.192.png...and put in windows...
Also what program should I use to resize my pictures to 400x640
Click to expand...
Click to collapse
i use gimp...great program and free!!
*hope this helps*
Thank you so very much JDM, but i'm trying to change the first screen when you first turn the phone on when it shows your rom and radio info....I've been able to make and find the .nbh files but I am lost on how to use PatchSplash so that the bottom portion of the screen isn't black....Any help would be Very Helpful from anyone, so much that I may let someone buy me dinner lol but no fooling around on the first date
jdmsleepr said:
are you trying to change the bootsplash (1st screen) or the regular (2nd screen, non animated one)??? if your just trying to change the regular splash screen you dont need to convert to .nbh...just change the name to welcomehead.192.png...and put in windows...
i use gimp...great program and free!!
*hope this helps*
Click to expand...
Click to collapse
I'm actually trying to do both. I simply lost the software required to do the first one.....
Here are the programs to do the first boot screen
JDM i got that program Gimp but when I try to scale the photo to 480x640 but it changes it to its own dimensions which is like 480x247....Any insight on how to make it the right size....Thanks in advance
Sparkz914 said:
Here are the programs to do the first boot screen
Click to expand...
Click to collapse
kewl thanks...
Ok JDM I found out how to size the picture but im still lost on how to use patchsplash, now when I flash the image to my phone its fuzzy and distorted making it unviewable(if thats even a word) and 10% of the screen on the bottom is black.....?
TechnoHippie said:
kewl thanks...
Click to expand...
Click to collapse
No problem man, and you'll also need this
Sparkz914 said:
Ok JDM I found out how to size the picture but im still lost on how to use patchsplash, now when I flash the image to my phone its fuzzy and distorted making it unviewable(if thats even a word) and 10% of the screen on the bottom is black.....?
Click to expand...
Click to collapse
ok i have figured out how to use the patchsplash program...if you want i can make the file for you and send it back...
JDM that would be cool man
and do you think you could give me a brief description on how to use patchsplash
Which ever one is easier for you to create...thanks in advance
and if possible can you PM me the final product or can i give you my email
Ok JDM i've sort of learned how to use Patchsplash but not fully...this is where the program is located on my computer
Users\Seymore Cake\Documents\Phone ****\Splash Screens\
What should I put following this or what steps should I do next
Sorry for being some what of a pain for all the questions I ask of you
once your in the folder where patchsplash.exe is...
type: patchsplash.exe R example.nb output.nb
i made the .nbh for ya and tested...good to go...
JDM your the man
Maybe this will help....
Code:
[b]Download the attached zip file.
Extract it to (wherever you like) then follow the instructions below.[/b]
==============================================================================
Step by Step instructions on how to create your custom splash screen
for the Diamond and Rafael windows mobile.
==============================================================================
Step 1: Create your image
-
Choose, find or create the image you would like to have as your splash screen.
Use your image editor (photoshop is my choice) to adjust your image.
The size of the picture needed for the splash is 640x480 72dpi.
Save it as (24 Bit) (bmp) in folder (2-bmp to rsb to bmp).
goto Step 2.
------------------------------------------------------------------------------
Step 2: Convert your image from *.bmp to *.rsb
-
Run rsbbmp.exe in folder (2-bmp to rsb to bmp).
Click on [Add Files] and choose your bmp.
Click on [Convert All]
Your image has now been cloned and converted to rsb format.
Move or copy your rsb file to folder (3-rsb to nb).
goto Step 3.
------------------------------------------------------------------------------
Step 3: Convert your image from *.rsb to *.nb
-
Run Splash-RSB Converter.exe in folder (3-rsb to nb)
Choose VGA (640x480) then press [Convert].
Choose your rsb and save it in folder (4-patchsplashv0.1) click on [Done]
goto Step 4.
------------------------------------------------------------------------------
Step 4: Patch your image file.
-
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Remember, patchsplash.exe is a command line tool. If you run the program by double
clicking on it a cmd window will open showing you examples of the command line you
will need to type to patch your *.nb that is all.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
First, open the folder (4-patchsplashv0.1) in Windows file explorer. Copy the
address found at the top of the explorer window.
example: D:\PDA\HTC\splash\4-patchsplashv0.1
On Windows, Start Menu->Run... Click on Run then paste the address you copied
from win explorer then type the rest of the line needed for patching.
My example:
D:\PDA\HTC\splash\4-patchsplashv0.1\patchsplash R YOURFILENAME.nb YOURFILENAME_P.nb
\patchsplash R YOURFILENAME.nb YOURFILENAME_P.nb -> Rafael
\patchsplash D YOURFILENAME.nb YOURFILENAME_P.nb -> Diamond
Press enter and you're done!
A cmd.exe window will pop up telling you the process is complete.
REMEMBER
The first part of my example "D:\PDA\HTC\splash\4-patchsplashv0.1\"
is what I copied from win explorer.
"I" then move the new "_P.nb" file to the folder (5-nb to nbh) so not to
confuse it with the unpatched file.
goto Step 5.
------------------------------------------------------------------------------
Step 5: Create the *.nbh for flashing
-
Run NBHutil.exe in the (5-nb to nbh) folder.
Note: (the NBHUtil.xml file has to be in the same folder as NBHUtil.exe).
On first tab 'Build NBH', in the 'Target Device' list, choose "Diamond" or "Rafael"
located ad the bottom of the list.
On the right side, you have the "NBH Items". Click on the [...] button for "Splash".
An "Open" window pops up. Locate and select the .nb file that you just created.
Press [Build NBH!]
Type a file name and save!
This will create a .nbh file in the location you chosen. ((5-nb to nbh) folder by default)
goto Step 6.
------------------------------------------------------------------------------
Step 6: Flash your NEW Splash Screen!!!
-
I personally like to create a new folder for my newly created .nbh files.
In each folder I have my (*.nbh) and a copy of (RaphaelCustomRUU.exe).
In this way I can quickly flash which ever splash screen I want without any extra effort.
Create a folder. Place your new .nbh and a copy of RaphaelCustomRUU.exe in the folder.
Run RaphaelCustomRUU.exe, follow the instructions and you will have a new splash screen!
Enjoy! ;)
HueMann
------------------------------------------------------------------------------
thanks HueMann very helpfull
cheers!

[HOWTO] Cook your custom rom for LG P500

Hi there, we are going to use excellent dsixda's HTC Android Kitchen to cook our custom ROMs for LG P500. The list of the things we are going to need:
Original ROM (Check this thread)
LG Utils 0.4.2 (Check this URL)
DzDecryptor v1.0b(Check this thread)
Cygwin (Check this URL
Unyaffsmbn (Check this thread)
Dsixda's HTC Android Kitchen (Check this thread)
Note: I have a "romcooking" folder on my home (C:\Users\Patricio\romcooking), inside i have all the utils needed, and the .kdz file for the stock ROM. I recommend to use tab to complete filenames since they are too long.
First we need to get a dz from the kdz (original firmware), extract LG Utils 0.4.2 and open KP500-Utils-EN.exe (You need to run this as administrator, or else you are getting an empty .cab file), select the I option (Extract files from KDZ file), and type the route to your .kdz file (Mine is C:\Users\Patricio\romcooking\V10A_00.kdz). Now, you must have a V10A_00.cab (Or another name, it depends on the stock rom you downloaded), open it with a extractor like 7zip or similar and extract the file "LGP500AT-00-V10a-EUR-XX-SEP-25-2010+0.dz" or similar to our romcooking folder.
Then we are going to uncompress the .dz with DZDecrypt (Press Win + R, type cmd and enter, then you cd to the folder where DzDecrypt is located (ex:
Code:
cd C:\Users\Patricio\romcooking\DZDecryptor_v1.0b
then we type:
Code:
DZDecrypt.exe "C:\Users\Patricio\romcooking\LGP500AT-00-V10a-EUR-XX-SEP-25-2010+0.dz" C:\Users\Patricio\romcooking\stockrom
This is going to create a "stockrom" folder in our original romcooking folder, you are going to see a lot of files in the stockrom folder, the important ones are boot.img and system.mbn (DZDecrypt should have merged your system.mbn_0, system.mbn_1 and system.mbn_2)
We need to install cygwin, open the setup.exe, just keep hitting next until you are on the select packages screen, go to "Devel" menu and select to install gcc, gdb and make, in "Interpreters" check perl, in "Archive" check zip and unzip, in "Web" check wget, in "Editors" check nano and vim and in "Utils" select cpio, util-linux and ncurses. Make some tea and wait for the cygwin install to finish and we are ready to go to the next step.
We are going to compile unyaffsmbn, copy the extracted files from unyaffsmbn, system.mbn and boot.img to C:\cygwin\home\Patricio, now fire up cygwin and compile unyaffsmbn with:
Code:
gcc -o unyaffsmbn unyaffsmbn.c
Now uncompress system.mbn, delete symlinks of bin/ and zip everything with:
Code:
mkdir system
cd system
../unyaffsmbn.exe ../system.mbn
find bin -type l -exec rm {} +
cd ..
zip -r stockrom.zip boot.img system/
We are ready to go to the kitchen (We have a stockrom.zip on C:\cygwin\home\Patricio, remember that)
Now we are going to use dsixda's HTC Android Kitchen, we need to have installed JDK. After we have downloaded and uncompressed the kitchen (Mine is in C:\cygwin\home\Patricio\kitchen), we need to put the ziped file we got in the previous step into the original_update folder of the kitchen. We are ready to go! fire up cygwin and cd to the kitchen location and exec ./menu , select option 1, you should see the zip file, put the number of it, and you are ready to go (It will create a WORKING_XXXXXX_XXXXXX folder, you can modify the files in WORKING_XXXX_XXXXX/system, add APKs, modify the apns file, etc).
This command also gives us a lot of options for our rom: enable root, add busybox, deodex our files, zipalign, etc. If you are going to edit text files, use an editor like Notepad++ or any other program that can open/edit/save files in linux compliant style. It's pretty easy to use the kitchen, just check the official thread for options or help
The common options i use are:
Add root permission (option 2), press f when asked and you are done
Add Busybox
Change name of the rom, easy cake
Advanced options, press 0
Add /data/app functionality
Add Apps2SD
Add custom boot animation functionality
Deodex files in your ROM
And Finally: Zipalign all *.apk files to optimize RAM usage
That should do the trick, when you are ready to cook your rom, just type 99, wait for it to build and it should be in the OUTPUT_ZIP folder in your kitchen folder.
Took info from this thread (About decompressing .dz and .mbn, and making it to work with the kitchen), and info from ruigui and tritant in this thread. The awesome android kitchen by dsixda. Sorry if i forgot to mention any work, just post it or pm me
If you have anything you want to add to the guide, just post it
You don't need to dual boot to linux. It can be done with cygwin.
When you follow dsixda's guide to install kitchen, do as said but don't install cygwin from that guide.
Instead, download from official site, choose default options, but add these packages (it will be compliant with kitchen and give a little extra funcionality):
Devel: gcc, gdb, make
Interpreters: perl
Utils: cpio, util-linux, ncurses
Archive: zip, unzip
Web: wget
Editors: vi, nano
Good guide, nicely done
EDIT:
In my wife's machine (using windows 7 64bit. i'm without computer, for now....), i've installed cygwin as said above.
Then added two folders to my home dir:
kitchen and unyaffsmbn
In kitchen, use the kitchen
In unyaffsmbn, copy the files from unyaffsmbn.zip to that dir, then compile it there
EDIT2:
If you edit text files under windows, USE NOTEPAD++, or any other program that can open/edit/save files in linux compliant style.
There are differences in Windows and Linux when ENTER is pressed, and you'll have issues when trying to flash or run your custom ROM
hi there... thanks a lot for your guide.
I'm trying to do the things you wrote step by step... I have extracted the dz file successfully, then I extracted the content using DZDecrypter... I found three files called system.mbn0, system.mbn1 and system.mbn2. The first and second are 80 Mbytes, the third just 17... Which one is the correct? When I try to use the command "unyaffsmbn system.mbn" (obviously I renamed the first and then the second) I get an error message ("impossible to execute binary file", or somenthing like that... I don't know how's in english because I'm italian).. Is that concerning to the presence of those three different files? Did somethind go wrong with the extracting process? Or maybe I didn't do somenthing important? Before doing this, I installed "build-essential" and did "gcc -o unyaffsmbn unyaffs.h" but apparently nothing happend... I got neither errors nor processes...
can you help me?
Awesome bro, I can try to make custom rom with indian version, ty.
vinnux said:
hi there... thanks a lot for your guide.
I'm trying to do the things you wrote step by step... I have extracted the dz file successfully, then I extracted the content using DZDecrypter... I found three files called system.mbn0, system.mbn1 and system.mbn2. The first and second are 80 Mbytes, the third just 17... Which one is the correct? When I try to use the command "unyaffsmbn system.mbn" (obviously I renamed the first and then the second) I get an error message ("impossible to execute binary file", or somenthing like that... I don't know how's in english because I'm italian).. Is that concerning to the presence of those three different files? Did somethind go wrong with the extracting process? Or maybe I didn't do somenthing important? Before doing this, I installed "build-essential" and did "gcc -o unyaffsmbn unyaffs.h" but apparently nothing happend... I got neither errors nor processes...
can you help me?
Click to expand...
Click to collapse
you shouldn't get three system.mbn files, did you used the 1.0b of DzDecryptor? when i used it, it said something about merging, i think that it gets the three files and then combines them to get a proper system.mbn
I used the downloaded version from the link you posted. At least I guess... :/ Well I'm going to try again soon! Thanks a lot again for your guide!
Sent from my LG-P500 using XDA App
Other methode for exctract mbn file, not need to connect the phone.
Windows only....
(1) Download LG-Utils 0.4.2: http://www.assembla.com/spaces/ks360...tils-0.4.2.zip
(2) Run KP500-Utils-EN.exe (or whatever language you prefer out of the available choices) and select I to extract the KDZ.
(3) Open the resulting CAB file and extract the DZ file.
(4) Download DZExtract: http://www.frenchcoder.com/upload/DZExtract-V0.2.zip
(5) Use DZExtract to extract the MBN files:
DZExtract -x GW620RAT-V10c-OCT-21-2009-RGS-CA_DZ+0.dz C:\extractedTo\
after compiling and chmod I do:
Code:
[email protected]:~/work/unyaffsmbn$ unyaffsmbn system.mbn
unyaffsmbn: command not found
both files are in that folder. Am I doing anything wrong?
Cheers.
@tritant - LG-Utils link not working
So.... You MUST compile unyaffsmbn first. Only then you'll have an "executable".
Code:
gcc unyaffsmbn.c -o unyaffsmbn
Then copy system.mbn to unyaffsmbn folder.
After that, do:
Code:
cd PATH_TO_UNYAFFSMBN
./unyaffsmbn system.mbn
You missed the ./
You can download lg utils from here
tuxcomputing said:
after compiling and chmod I do:
Code:
[email protected]:~/work/unyaffsmbn$ unyaffsmbn system.mbn
unyaffsmbn: command not found
both files are in that folder. Am I doing anything wrong?
Cheers.
@tritant - LG-Utils link not working
Click to expand...
Click to collapse
'course I compiled
of course your method worked and the one in the first post didn't...
exist only a windows version of dzextract?
ioshi said:
exist only a windows version of dzextract?
Click to expand...
Click to collapse
couldn't find a linux version, sorry.
btw, i'm rewriting the guide, hope to update it soon
please add the compiling method from ruigui (in the previous page). For some reason that's the only way I was able to compile on Ubuntu 10.
Cheers
It was a typo in first post (he switched file to be used in gcc).
Give the man some time to reorganize his thread
I did not mean to be rude by any means!
I appreciate the effort to create the how-to! Hopefully people will read the thread if they get stuck and use the right commands so that they don't abandon the idea of creating their own ROM
I also didnt want to call you rude... Sorry...
But we were exhanging some pms and he is redoing this tutorial.
Sometimes we make mistakes while typing long posts
installation aborted
thanks for this great tutorial
everything works like a charm , but when i flash my new rom i have an error says no enough space while writing boot image
any idea?
Update: okay i solved the problem, it seems that i missed up with the boot settings!
I finally made the zip file, but when I start the kitchen and select it, i find this:
"Warning: No META-INF folder found under working folder!
Warning: No META-INF/com/google/android folder found, creating it.
Did not find an update-script. Shall I create one (y/n)? (default: y): "
is that normal? and what should I do? :/
vinnux said:
I finally made the zip file, but when I start the kitchen and select it, i find this:
"Warning: No META-INF folder found under working folder!
Warning: No META-INF/com/google/android folder found, creating it.
Did not find an update-script. Shall I create one (y/n)? (default: y): "
is that normal? and what should I do? :/
Click to expand...
Click to collapse
yes this is normal, i got that warning, and i entered "yes" to create one, and everything went just fine!
good luck
For me, work with wine on linux mandriva 2010.2
[[email protected] rootlg]$ wine DZDecrypt.exe "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz" rom
DZ-Decryptor v1.0b *ALPHA RELEASE* by BIGB0SS from COPS.
[■] Opening file "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz".
[■] Allocated memory: 280 Mo.
[■] Unpacking informations:
- Unpacking "amss.mbn" (Packed:008D2935 - Unpacked:010F6000).
- Unpacking "partition.mbn" (Packed:000000E9 - Unpacked:00000390).
- Unpacking "qcsblhd_cfgdata.mbn" (Packed:00000240 - Unpacked:00002534).
- Unpacking "qcsbl.mbn" (Packed:00007D88 - Unpacked:0000DFF0).
- Unpacking "oemsblhd.mbn" (Packed:00000026 - Unpacked:00000028).
- Unpacking "oemsbl.mbn" (Packed:0002C637 - Unpacked:0005EFB4).
- Unpacking "amsshd.mbn" (Packed:00000028 - Unpacked:00000028).
- Unpacking "appsboothd.mbn" (Packed:00000022 - Unpacked:00000028).
- Unpacking "appsboot.mbn" (Packed:00008A6F - Unpacked:0000D484).
- Unpacking "boot.img" (Packed:00385B3F - Unpacked:0038A800).
- Unpacking "system.mbn_0" (Packed:0307280E - Unpacked:05000000).
- Merging "system.mbn_1" (Packed:028EAA5A - Unpacked:05000000).
- Merging "system.mbn_2" (Packed:00738F81 - Unpacked:01003F40).
- Unpacking "recovery.img" (Packed:003BE683 - Unpacked:003C3800).
- Unpacking "splash.img" (Packed:00001C3A - Unpacked:0004B000).
[■] SubFiles: 0x780C3E84. (DzCreator)
[■] Closing file "LGP500AT-00-V10b-EUR-XX-OCT-01-2010+0-DZ.dz".

[HOWTO] [DIY] Making your own Holo Theme for ICS

Hey people, I've just found it at O3D forums and I think I should share the information, as I don't have time for creating a good tutorial myself.
This way you can change colors for your own likes and make a lot kind of themes.
Before starting you should have your Apktool environment set up.
1. (only if you never saw APKTOOL in your life, otherwise, just jump it)
1· Download and install latest version of Java JDK
2· Download latest version of APK Multi-Tool as we'll be using it for un/packing APKs and push/pull them from/to our device.
3· Extract it anywhere you may like. If posible, in C:/ to avoid any kind of problems. Be sure to read README file before asking something about it.
4· Run Setup.bat, type 3 and press Enter. Close it.
5· Run Script.bat, type 0 and press Enter. Now let's type our framework's path.
6· /system/framework/framework-res.apk for basic framework file. This will be pulling it out from our phones.
7· Repeating Number 5, type /system/framework/lge-res.apk for LG's framework file.
8· Now move to X:\...\APK-Multi-Tool\place-apk-here-for-modding\ and copy both apks (framework-res + lge-res) and paste it at X:\...\APK-Multi-Tool\other\
9· Run Setup.bat again, type 2 and press Enter. Now both frameworks should be installed and we are ready to un/pack APKs from the version we're actually using (v30A/B/C/D...). Close it.
10· Back in Script.bat, type 0 again followed by Enter, then type the path of your desired APK. (/system/framework/xxxxxx.apk for frameworks & /system/app/xxxxxx.apk for apps). After pushing it, select it as your actual project.
11· Now type 9 followed by Enter. This will unpack our APK.
12· Now is the time for tunning anything you want to. Go to X:\...|APK-Multi-Tool\projects\xxxxxx.apk\ and you'll find there everything.
13· When it's done, let's re-pack it typing the option 11 followed by Enter. When repacking gets done, it will ask if you want to use any files from your original APK. Tell it Yes, otherwise your apk won't get signed.
14· When the extracting is done, move to X:\...|APK-Multi-Tool\keep\ and erase everything there BUT META-INF folder + AndroidManifest.xml. Now press anything at APK Multi-tool window and you'll get your APK ready to go.
15· Now type 8 to push it back to your phone and type the desired path. If it cames from /system/app/xxxxx.apk or /system/framework/xxxxx.apk.
If you get any error recompiling it, you should take a look at the log, typing 23 and fix it at the projects folder.
Click to expand...
Click to collapse
2.
potaturrias said:
When i maked this theme (my first theme) y used trial and error procedure.
The first step is replace or edit 9.png. pictures in drawable-hdpi folder located in framework-res.apk and lge-res.apk, you can do this quickly using this tools:
http://jgilfelt.github.com/android-actionbarstylegenerator (Check that the names of new pictures match with the old pictures)
http://android-holo-colors.com/
Many images have to edit them by hand
If you put more files than originally,for example switches in lge-res drawable-hdpi, you will get an error when try to compile.
The second step is replace xml files in drawable folder using xml files from zip file that you downloaded in the previous step.
If you don't get the desire result you have to edit styles.xml or drawable folder files or layout files to change backgrounds colors, text color,etc.
Remember there applications with lines in XML files that reference to framework or lge-res, for example:
android:textColor="@*android:color/transparent makes reference to transparent color defined in framework-res and
android:textColor="@com.lge.internal:color/transparent makes reference to transparent color defined in lge-res.
I hope that this mini guide help you, remember that you can make your theme based on this theme, will be easier i think.
Click to expand...
Click to collapse
Thanks to @potaturrias!

Categories

Resources