Initflashfiles.dat question - 8525, TyTN, MDA Vario II, JasJam Software Upgradin

Hello all,
I'm not sure if this post goes here, I posted this on the Hermes Mobile 6 forum, and received no responses, so I figure I would try it here.
I've been looking around, and searching the wiki, and I am still a little confused about this file. I have read a few good threads on how to do OEM packaging, but I am still a bit unsure on how to edit this .dat file.
With that being said if anyone could shed somemore light on the initflashfiles.dat file. Let's say I wanted to add 1-Calc Lite and I didn't want to cook via a gui, but by hand. (I like to do things the hard way, as I feel you learn more out of it. Just an 'Ole Marines way of thinking)
In the OEM folder of 1-Calc Lite there is an initflashfiles.txt file. It looks like this;
Directory("\Windows"):-Directory("Skins")
Directory("\Windows\Skins"):-File("default.ini","\Windows\default.ini")
Directory("\Windows\Skins"):-Directory("Default")
Directory("\Windows\Skins\Default"):-File("button.ini","\Windows\button.ini")
Directory("\Windows\Skins\Default"):-File("display_menu.png","\Windows\display_menu.png ")
Directory("\Windows\Skins\Default"):-File("texture2.png","\Windows\texture2.png")
Directory("\Windows"):-Directory("Currency")
Directory("\Windows\Currency"):-File("currency.ini","\Windows\currency.ini")
Directory("\Windows\Start Menu\Programs"):-File("1-Calc Lite.lnk","\Windows\1-Calc Lite.lnk")
Directory("\Windows\Help"):-File("1-Calc.lnk","\Windows\1-Calc.lnk")
Do I just insert that into the initflashfiles.dat file, and if so where exactly would I install that? The reason I ask this is because in looking at the 1-Calc file it looks like it creates a skins directory in the Windows folder, then it has the help directory, which I am thinking that that line goes into the windows\help directory in the .dat file. So if that is the logic behind it where would I put the skins directory from the .txt file into the .dat file? I know this is a bit all over the place, but I hope someone can decipher what I have written, and help me.

Related

CAB To OEM for use with Pandora Kitchen

Hey Guys,
Yet another sleeples night, looking at something that is probably simple and getting no where.
THE PROBLEM:
APPARENTLY you can change a CAB file into an OEM so that it can be used in Pandora Kitchen, the kitchen thread says its possible, but doesnt really give directions as to how.
Considering this is a new thing to, and there is no info about this on the site (that i can find)
Can someone please tell me step by step how to do this, and by step by step i mean:
1).................
2).................
3).................
4).................
etc etc
Thankyou for your help in advance
Here is a test package I made, but I keep getting a registry errors. Maybe someone can tell me what im doing wrong. I think it was better to keep all this in the kitchen thread personalley but as long as I can figure this out I dont really care.
Extract this file and take the "Remote Desktop" dir and drop it in the OEM dir in the Kitchen, and it shows up and all but when you go to build with teh green arrow I get a registry compiling error.
I also attached the original cab file that I started with when attempting to create this package.
Also attached is the cab manager that Matt uploaded, I am sure its the same as the one posted above but this has a readme and what not.
First Matt told me this:
Using this tool (many out there, this one's free and does a good job), extract the cab to a folder, then click on XML and grab the .rgu contents. Be wary of the format, as you have to delete any spaces between entries, such as "biteme" = dword : 00000001 should read "biteme"=dword:00000001.
Also, ensure that any path in this file (file system, not registry) is in this format: "\\Windows\\Startup" The second slash is required. Also, remove any references like %ce%\Windows, just change it to "\\Windows". You'll get the idea. If it ain't right, BuildOS will fail while creating the registry.
Move all the files into the top level in the folder you made, and remove all the extra crap like the inf file, and sometimes there's an xml file there too - note that you may need to convert to a provxml if the settings in it are required.
Use this site http://www.famkruithof.net/uuid/uuidgen (verion 4) to get a new GUID. I'd suggest coping a .rgu and options.xml file from another package since the file has to originate a certain way - and only use notepad to edit.
Just follow the example in the other packages - you'll find just about every way to do things in there.
As far as more details on using the program, just play with it. It's pretty simple
Then Bennec83 told me this:
what exactly are you trying to do? extract a CAB? if you are, using the file i uploaded earlier:
1)Launch CAB Manager.exe
2)on main screen extract CAB to a folder
3)click on the XML tab in top bar of the main window of CAB Manager.exe
4)in the window that opens, select Registry Keys
5)copy everything from the screen into WORDPAD
6)remove all the spaces
7)save the file as "UNICODE", once saved change the extension to somename.rgu
if you are trying to add an OEM to this kitchen i dont think you can just add them, please correct me if im wrong.
i hope this helps, if not tel me abit more about wat u want to do n ill try to help abit more!!
I understand the INF file as well, I just dont know how to add multiple directories as the destinations for a package, when a cab inf will tell you where there all suppost to go.
--Update--
I removed the NON-WORKING package, as it is now obsolete, see post below I got it working.
Ok then I understand the logic, and then the proper elaborated instructions can be pasted at the first or second topic of the Kitchen thread.
So I guess im doing something wrong with the reg, I have tried it a bunch of diffrent ways by comparing it to existing packages but I still cant seem to get it.
This quote by matt is what leads me to believe that.
Also, ensure that any path in this file (file system, not registry) is in this format: "\\Windows\\Startup" The second slash is required. Also, remove any references like %ce%\Windows, just change it to "\\Windows". You'll get the idea. If it ain't right, BuildOS will fail while creating the registry.
Ok I did it, I was reading an old post of bepe's and he said "add the reg to the end of the file (and the last line must be empty)" and so I hit enter and left the last line blank and BAM it worked so here is my first package contribution.
Maybe you can start adding these to the first post and we can start to make a collection for matt to add and test with his kitchen ?
Here is another one HTCustom 1.7 ready to go package for the kitchen
Damned if I can work it out!
Can anyone please package any of the following cabs?
Ive added JUVS HTC Home because the one included in the kitchen has the coloured icons not the original b&w.
Many many thanks in advance
I am still not able to completly figure out how to make a package where you must put files in diffrent locations other then the windows folder ? I would veyr much like to figure this part out.
I dont think he's having a go at you - he's just as frustrated as you and I with this. I would love to be cooking my own roms and with the wonderful pandoras kitchen I am getting alot further along but I guess I got a lot further to go!
well, by searching you can find how to do this!!!
click on this ftp://xda:[email protected]/Uploads/WIZARD/ROMS/Faria WM6 ROM Kitchen.pdf
this pdf file got what you need!!
under "Making a Package from a CAB file"
Look here bennec83, the comment i made was not meant to be a flame at all. If anything, it should have helped you alot with what you were trying to accomplish with the program and, making packages. I mean how much more direct can i be with helping you? As I said to you before, yes some of the chef can be a little vague with explaining the "How To's" of cooking or anything else, but that still didnt stop my progression of learning what i wanted to learn on here. What i explained in the CORE's Kitchen thread, was basically 80% self taught thru reading post & threads on xda, google searching, and trial and error. The other 20% was thru xda forum members input. I have a basic understainding of computers with no type of programming skills, and yet still, i was able to grasp the concept of cooking roms and making packages. Yes sometimes you have to put 2 and 2 together to figure things out on here. How I did it was I looked inside CORE's additional OEM packages and noticed that the files inside all the oem were extracted into the root of the folder's Dir...ok..so I would assume that you spent considerable amount of time trying to figure out that OEM package program(inside CORE's Kitchen its called Cab Analizer), then i would assume that you know that it extracts files within a .cab...ok... with that given....if you look back into an already made OEM package and many others, you'll notice that most ,if not all, carry an "initflashfile.txt"(which i figured out the correct data input) and many packages also carry .rgu & dsm files, so guess what....you need to find out what are .rgu & .dsm files, and there functions(if know no ones whats to tell you in a timely manor then, search or google, like i did!) Once you learn about those then, you'll notice that the OEM package program you have infront of give information about the reg keys of the cab (if available), then you start putting 2 & 2 together! You mention in your quotes that the programs sucks ass, well that program is a key part in making packages, If you can find a better one, please let me know!
NightmarE said:
well, by searching you can find how to do this!!!
click on this ftp://xda:[email protected]/Uploads/WIZARD/ROMS/Faria WM6 ROM Kitchen.pdf
this pdf file got what you need!!
under "Making a Package from a CAB file"
Click to expand...
Click to collapse
thankyou so much for this, i actually know what to do now i really appreciate this. you dnt know how much!!!
thanks alot
chrisnash said:
I dont think he's having a go at you - he's just as frustrated as you and I with this. I would love to be cooking my own roms and with the wonderful pandoras kitchen I am getting alot further along but I guess I got a lot further to go!
Click to expand...
Click to collapse
you are right that wasnt flamage!! i have been lookin so long in this forum i totally didnt think the answer would be in the wizard forum.
i have read and understood the instreuctions here:
ftp://ftp.xda-developers.com/Uploads/WIZARD/ROMS/Faria WM6 ROM Kitchen.pdf
i just wish i cud have found it earlier
perhaps I'm an utter fool, but I'd like some clarification from those of you who understand this, mind you I do have Faria's PDF:
1) For a .cab with purely registration files (ie, the Cingular WAP Settings) that contains a .inf when extracted, all I would need is the .rgu to put into BuildOS, right?
2) The .dsm file (and iniflashfiles) are only needed if the .cab is an actual application, and the .dsm file that you create can very well be empty (from what I understand from Faria's rom).
Maybe it's a lack of sleep, but I'm just not getting my head around this and am so far using the Install Cabs feature from HTCustom 1.7 after flashing.
I was trying to do the cignular settings and It seemed to me that all those reg entries appear like blank er something was wrong with them, I could be wrong but thats what it appeared like to me.
Bennec, ok then bro, my mistake, I guess I shouldnt of assumed that post was directed towards me, it just felt that way and I know you were frustrated.
Lets make this the best CAB to OEM Package thread ever and start a collection on the first post, also with all you have learned now, have you figured out a way to make a package with a cab like opera where the files must be placed in to diffrent dirs ?
where are you all stuck at?
to move files to a different directory you need to use initflashes. Keep in mind that this copies it to a different directory not actually moves it. The original file will still be in \\windows
If all you want is to add registry entries, add them to an existing packages registry entries. If you create a new package for the registy entries it should have a dsm file as well.
If you want the check box in buildos you will need to create an option.xml file as well.
bennec83 said:
you are right that wasnt flamage!! i have been lookin so long in this forum i totally didnt think the answer would be in the wizard forum.
i have read and understood the instreuctions here:
ftp://ftp.xda-developers.com/Uploads/WIZARD/ROMS/Faria WM6 ROM Kitchen.pdf
i just wish i cud have found it earlier
Click to expand...
Click to collapse
I'm glad you found the info you need, and are on your way to making progress. I apologize for not being able to assist more than I did, but I've got my hands full getting v3 ready for release.
Good luck and happy packaging!
NYD - long time, no see!
goto the CORE's kitchen thread. Read my posts and familiarize urself with a program called "compare it". Use this program to compare ur registry when the app is freshly installed, to the registry without the app installed, and pull the reg keys that way!
mattk_r said:
I'm glad you found the info you need, and are on your way to making progress. I apologize for not being able to assist more than I did, but I've got my hands full getting v3 ready for release.
Good luck and happy packaging!
NYD - long time, no see!
Click to expand...
Click to collapse
I understand you have lots to do on your kitchen, congrats BTW!! amazing kitchen, how is touch flo goin?
notyourdaddy said:
where are you all stuck at?
to move files to a different directory you need to use initflashes. Keep in mind that this copies it to a different directory not actually moves it. The original file will still be in \\windows
Click to expand...
Click to collapse
Hmmmmmm.
So its not possible to cook a Rom with custom apps in Progam Files only? I mean if they are always in \\windows too then its better to install the files than to cook it in the rom.
I have always believed you should add as little as possible to Rom:
From Tadzio's 'Want more Storage' Thread.
tadzio said:
...clip...
I modified mamaich's ImgfsTools so that they now create the smallest possible OS.nb from a 'dump' directory, and also write the partition table and MSFLSH header matching the new size.
...clip... make a ROM as small as at all possible, removing anything that users may not want, and turn every removed feature into a .cab that users can install to Storage...clip...
Cheers
Daniel
...clip...
Click to expand...
Click to collapse

OEM Packages help

I'm trying to create my own oem packages out of the cab files that I have, I have followed several tutorials, and I get a oem package that is recognized by BuildOS, but when I flash my phone the app is not there, any help or ideas would be greatly appreciated!
Did you create the initflashfiles.txt file so that the shortcuts are copy to the right place?
should be something like this :
Directory("\Windows\Start Menu\Programs"):-File("CicleBT.lnk","\Windows\CicleBT.lnk")
Directory("\Windows\Start Menu\Programs"):-File("GetSPC.lnk","\Windows\GetSPC.lnk")
Directory("\Windows\Start Menu\Programs"):-File("TouchFlo.lnk","\Windows\TouchFlo.lnk")
Directory("\Windows\Start Menu\Programs"):-File("TouchFlo_Config.lnk","\Windows\TouchFlo_Config.lnk")
post your initflashfiles.txt file here..
avaya
You might try a program call OEMizer. It takes the CAB file and creates the OEM directory and everything you need.
See my post on PackageCreator Step By Step
http://forum.xda-developers.com/showthread.php?t=358806
PackageCreator
It looks like a great program sudermatt, but I am having difficulties finding it in the forums, and even via google. I must have it misspelled terribly but I thought I would be able to bring up something at least.
Any ideas where we could get it. It would make creating OEMs a lot easier.
http://rs62.rapidshare.com/files/78803302/package_creator.rar
I'm gonna try it out make sure it's safe and all...
BTW thanks for the info on the program Matt
Works pretty much just the way you showed us Matt, but the OEM files still need some editing in order to make them work properly on your device.
I have a ton of OEM packages that I have collected over time. My question is, what is the easiest way to turn choice ones back into a cab file so I can install it without cooking a new ROM. I'd like to try a few things out before I cook so I dont waste time flashing numerous times until I find the programs I like and dislike.

nk.nbf

was wondering if someone could tell me where to find the nk.nbf from dcd's 2.2.x roms...want to cook up some custom boot screens, but have NO idea where to find it (or get it from). thanks
You need to extract the nbh from the installer (you can use procmon from sysinternals.exe to find out where the installer extracts it).
After that you need to decompile the NBH using various tools, in which will present you with a 00_OS.nb.
After doing that, you need to extract the splash images from other roms, or create your own, then recompile the NBH.
EDIT: wow first post since 2006, you can tell ive been a leech, glad to give back to the community lol...
I was going to post the contents of the readme file that i'm trying to understand...in order for you to see what i'm being told to do, but I really can't decipher it all that well, so i'm going to attach it. This is what I'm being told to do...
Have you looked in to this: http://forum.ppcgeeks.com/showthread.php?t=16939
Yeah I read through that...
Thing is...with dcd's latest roms, the only file you get when you extract his nbh is 00_OS.nb
I have my splash.nb already made from the image i chose, but I'm not sure what to do with 00_OS.nb and splash.nb
Make an NBH from them.
You can use Dutty's NBH Tool patched for the Titan.
Since I can't find the original thread where I got it (took me forever to find in the first place) I uploaded it to fileshex.
Download here
I don't have to name my splash.nb something specific when creating the new nbh? It will just know that it's the splash?
Edit: nevermind, after opening duttys tool it's clear on how it works...thanks
Ahhh..one more question...
Is it possible to just take my splash.nb and make an nbh out of that. Then put it into the RUU and flash just the splash? Or must it be merged with the entire rom and flashed?
I have no idea.. I never did it. I want the original Verizon splash screen back instead of the static Verizon logo.
Try it and let us know if it works.
Can someone upload VZW_Startup.gif from \Windows somewhere I can download it?
I'd appreciate it very much
Confirmed.
Just took splash.nb and created an nbh just including the splash fields. I then inserted it into the RUU, flashed, and worked like a charm, no need to include any other part of the OS or anything.
Looks badass...for any help let me know...now that I know what I'm doing
P.S. It WILL hard reset the phone though upon flashing...
I put all the necessary files in a zip and I'm working on an easy step by step readme...so if anyone wants to change their bootscreen send me a pm.

Cooking related questions: folder icons and autoshortcut

I am continuing on my little cooking adventure but need some informtation that despite lots of searching I cannot find - perhaps someone could enlighten me on a coupls of issues.
1. I wish to assign different icons to my folders within programs - as others seem to do. How on earth do I do this? Yes, I can download .dlls, unsign them extract icons edit them and put them back and then resign them, but I cannot find my answer apart from the games folder.
I thought I would take a look at NRGs 2.0 ROM and see how he did it but I cannot locate his folder icons and so am confused even more.
2. Could someone explain how/what this autoshortcut things is and works as I keep seeing references to it when trying to rearrange shortcuts in the ROM.
Thanks for your time,
C.
For folder icons do the following if you have your dll already created. It sounds like you know how to do that part...
Create a new txt file
in the text file enter 50#"\Windows\yourdll -X" -X is the icon location. Rename the folder icon.lnk and place it in the folder. The 50 needs to be changed to something else and the first number should be something different and unique.
If you are cooking in a few icon.lnk files they need to be named like game folder icon and then with XML coding you need to rename them to icon.lnk
or what I do...
I place them all in a cab file and have the cab file run during customization.
Aaaaaaah (Moment of enlightenment)
Thank you so much, that answers a lot of questions for me. Time to get cracking I think.
Am I right in thinking I can add multiple files with the same name n the cab and simply install them to different directories - hence not bother with the renaming business?
Cheers
crazyC said:
Aaaaaaah (Moment of enlightenment)
Thank you so much, that answers a lot of questions for me. Time to get cracking I think.
Am I right in thinking I can add multiple files with the same name n the cab and simply install them to different directories - hence not bother with the renaming business?
Cheers
Click to expand...
Click to collapse
Yes you can...thats what I did before learning how to do it in XML or using the initflashfiles.txt files. An example of the txt file
Directory("\Windows\Start Menu\Programs\Tools\Rhodium Manila Tweak\"):-File("Icon.lnk","\Windows\Rhodium Manila Tweak Folder.lnk")
Oh, I assumed that I could not do this via the initflashfiles for some reason (assumed I would have a build problem due to multiple icon.lnk)
So, I could create a package with multiple *.lnks which then are renamed and put in the correct folders via the initflashfiles and then also include a custom dll in that package as well?
Thnaks again for the explanations.
crazyC said:
Oh, I assumed that I could not do this via the initflashfiles for some reason (assumed I would have a build problem due to multiple icon.lnk)
So, I could create a package with multiple *.lnks which then are renamed and put in the correct folders via the initflashfiles and then also include a custom dll in that package as well?
Thnaks again for the explanations.
Click to expand...
Click to collapse
Yes you can.
At0mAng said:
For folder icons do the following if you have your dll already created. It sounds like you know how to do that part...
Create a new txt file
in the text file enter 50#"\Windows\yourdll -X" -X is the icon location. Rename the folder icon.lnk and place it in the folder. The 50 needs to be changed to something else and the first number should be something different and unique.
Click to expand...
Click to collapse
While looking for something else I came across this thread and, while it's fairly old, I thought I should clarify two things, in case anyone else reads this.
First off, the <space> after "yourdll" should be a comma:yourdll.dll,-X​(N.B. I have to admit that I've never actually TRIED using a space instead of a comma, so a space might actually work. That said, the standard for .lnk files in Windows, whether mobile or desktop, is to use a comma.)
Secondly, the "<number>#" at the beginning of the icon.lnk file (or any .lnk file, for that matter) isn't arbitrary.
The number represents the number of characters following the "#". So, for example, the example string above, "50#"\Windows\yourdll,-X", should really be: 21#"\Windows\yourdll,-X".
Assuming that "-X" is "-32", the file should contain:22#"\Windows\yourdll,-32"​Another way to determine this is to look at the size of the file. Just subtract the characters of the number and the '#' itself from the size of the file. E.g., the above file would be 25 bytes.
(Once again, however, I have to include a caveat. The number doesn't actually matter. If the number before the '#' is wrong, the link will still work. I just wanted to explain what it's SUPPOSED to be.)
-geo

[HOW TO] Make your own Splash Screen

First off, none of this is my work, I just did some leg work to find the bits and bring them together here for the Shift. This is not difficult, if you have a little 'puter know how you should be fine.
Disclaimer: You break your $hit, maybe you should re-evaluate your life and all things android, I am not responsible.
Things you will need:
Computer (may seem obvious, but you never know)
Image editing software: Gimp, Photoshop, Etc...
nbimg converter: This is a command line tool, no it will not do anything if you dl it and double click the icon.
7Zip or other compression client.
1 PG06IMG.zip file
If you don't have a computer, stop now...
If you don't have editing software, do a search for Gimp dl (free)
Make sure your graphic is 480x800 pxls and saved as a .bmp @ 24 bit (chk the advanced settings when you save)
nbimg is the program that converts the .bmp into a useable format for the phone. This can be found here, Thanks pof, a link to the linux version is there as well. Mac users can look here, Thanks romracer. I haven't used a mac in almost 20 years, someone please report back on your experience with this.
7Zip you can find online, or use whatever you prefer.
PG06IMG.zip can be picked up here,Thanks riggsandriod. The ini file inside it is the important thing, we are simply swapping out the .img file w/ one of our making.
Now nbimg is dl'd, no don't double click, it will not install
Move nbimg to folder of your choice (might I recommend your andriodsdk folder, or sub folder)
Move your finished pic to the same folder.
Rename pic to: Splash1.bmp
Open command line (start-> run-> type: cmd)
cd to appropriate folder, e.g. cd D:\AndroidSDK
type: "nbimg.exe -F Splash1.bmp" <no quotes>press enter.
A note here, I have had success w/out adding any extra commands, results may vary.
Now you have a new file: Splash1.bmp.nb in that folder, rename the ext from .bmp.nb to .img
Right click PG06IMG.zip, 7Zip, open archive: drop in your new Splash1.img file.
Done, now just need to move the zip to the root of your SD card, boot to bootloader & accept the update.
Other options...
Maybe this is a bit much for some folks, im.nick.hello has graciously offered to make these for folks here, be sure to thank him if he helps you out.
TruBlue_Drew has made a script to automate this process here, I haven't tried it, might help some folks out.
If I missed anything, let me know.
Reserved:
Hopin some folks give insight to mac & linux variations.
Sent thru the "tubes" via my shifty speed brick.

Categories

Resources