My-Mini-Kitchen - HD Mini Android Development

Hi all,
i have installed my-mini-kitchen on my ubuntu, but i don't know if all is ok, i put system.ext2 and initrd.gz and zImage on ORIGIN folder, after i extract all, but when i go to look the file on initrd.gz almost of folders are empty for example sys, system, data.. are empty is it normal? please help im starting now to use this and im not so expert... and who can help me to improve my use of it?

yes, thats normal, most of the folders in initrd.gz are empty, only import files are in bin folder and root folder.
the system files are in system.ext2

schlund said:
yes, thats normal, most of the folders in initrd.gz are empty, only import files are in bin folder and root folder.
the system files are in system.ext2
Click to expand...
Click to collapse
ok, ty but if i want to edit a file is sys folder how can i do it, if sys folder is empty???

system files are in /WORKING/system/* folder (if system.ext2 was successfully extracted) all the folders and files there belong to the system partition and you can edit them.
initrd files are located in /WORKING/initrd/*. there are no system files in its folders and subfolders, its only giving a filesystem structure, but no files.

Related

[RELEASE]{02/08/2007}MODIFIED Molski Devpack Kitchen for HTC Tornado [by Duke]

Hello ALL!
Here is the long awaited HTC Tornado ROM kitchen
This Kitchen is in actual fact the Molski DEVPACK kitchen but its been MODIFIED by myself, Duke_Stix in order to be compatible with the HTC tornado and to make rom editing and cooking easier for EVERYONE!
Please note, before anybody starts pointing fingers, FULL permission was obtained from molski himself before any modifications were made and full permission was obtained in order for me to release this kitchen as the initial kitchen was of course, by MOLSKI!
This was the first kitchen that i learnt to use so it was the first kitchen i modified!
There will also be a modified CORE kitchen released soon too once i can iron out any and all bugs.
Anyway:
Pretty simple to run really. heres a few instructions to get you all started:
Download the attached file: Molskis_Devpack_modified_for_tornado_by_duke_stix.exe
READ THE PDF FILE THAT IS IN C:\DEVPACK\tools\batch\readme
Here are steps:
1) RUN the executable file, you should end up with TWO folders, DEVPACK and Molski.biz Devpack. MOVE the 'DEVPACK' folder to the ROOT of your C: drive.
2) Place ANY nk.nbf that you wish to 'unpack' into the source folder of the DEVPACK folder. so.....
' C:\DEVPACK\source ' Contains your NK.NBF file
3) Go to your desktop and into the 'molski.biz devpack' folder, this has lots of little shortcuts in it.
4) first of all, click the 'dump rom' script.
5) Let it do its thing
6) in the C:\DEVPACK folder there should now be a new folder called......ROMDUMP! (<-- guess whats in here?!)
7) Edit as much as you wish, dont forget to get rid of the first two bytes in the initflashfiles.dat file before you build rom again
8) once you've clicked the 'build rom' script go back into c:\devpack\tools and in there should be nb2nbf_tornado.exe
9) open that, dont touch anything atthe top apart fro the output field, here, I would suggest selecting your desktop and you MUST issue the file name as 'nb.nbf'
10) below that click the tick box next to 'File #1:' it will allow you to select 'file #1' point it to c:\DEVPACK\ROMDUMP and to the file called 82040000-OS.nb
11) back in the nb2nbf program select 'OS' under image name
click translate
go to your desktop, move the nk.nbf file there into C:\DEVPACK\tools\RUU_2001
run the 'ROMUpdateUtility.exe'
and away you go! should start flashing
IT IS IMPORTANT THAT YOU READ THE README FILE! i will also attach it to the post
also, anyone willing to donate can send any paypal donations to [email protected] and reference them 'duke'! very much appreciated!lol
MIRROR:
http://www.megaupload.com/?d=VWCLXM6Z
ENJOY!
post any questions here
AND DO NOT FORGET TO READ THE README FILE!!!!!
ALSO READ: http:\\www.molski.biz
HAPPY COOKING!
duke_stix said:
How to use this Rom Cooking Pack:
I tried to make everything as simple as possible, still you definitely need to know what you are doing!
Step 1:
Extract the nk.nbf file from a Rom archive (all Rom archives can be opened with tools like WinRAR) into the X:\DEVPACK\source directory.
Step 2:
Execute the DUMP_ROM script when the script is finished a ROMDUMP folder is created in X:\DEVPACK, with all the .nb files found in the nk.nbf file, the 80040000-OS.nb file will be splitted into 2 template (.bin) files and the contents of the OS templates is placed in the “dump” folder.
Step 3:
When the script is finished you can start adding and deleting (watch out what you delete!) files in the dump folder.
Step 4:
Editing the initflashfiles.dat file!
Execute the EDIT_INITFLASHFILES script so the file gets copied to the ROMDUMP directory, a backup of this file is placed in the Backup folder inside the ROMDUMP directory!
This is a very important file, when the Wizard gets a hard-reset or is flashed to another Rom, this file builds the directory structure, copys files from Windows to (as example) the Program Files directory.
These are some examples from the initflashfiles.dat file:
root:-Directory("My Documents")
Directory("My Documents"):-Directory("My Pictures")
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu"):-File("Messaging.lnk","\Windows\tmail.lnk")
Directory("\Windows\Start Menu\Programs"):-File("File Explorer.lnk","\Windows\fexplore.lnk")
Directory("\My Documents\Templates"):-File("love.gif","\Windows\love.gif")
As you can see, not so tough as it looks, I am not going to explain every single line of this file, but will give you one example….just to make things a little bit easier to understand!
All files from the “dump” folder are basically placed in \Windows and get copied to other directories from this point, so when a shortcut is copied from \Windows to \Windows\Start Menu\Programs you will have a shortcut in both directories (but that’s not a big deal!).
I am going to explain this line, to let you know what this line actually does
Directory("\Windows\Start Menu\Programs"):-File("File Explorer.lnk","\Windows\fexplore.lnk")
The shortcut fexplore.lnk in \Windows gets copied to the \Windows\Start Menu\Programs directory and gets renamed to File Explorer.lnk
Very easy….isn’t it? J
So…after adding all files to the “dump” directory, adding the lines of the added files (IF needed) to the initflashfiles.dat file you can save this file, make sure the last line in this file is a blank line (otherwise your device will be stuck at the second Splash Screen)!!
Example:
When you want to add a program named ABC.exe to \Start Menu\Programs, just copy the ABC.exe file to to the “dump” folder and place a shortcut named ABC.lnk in the “dump” folder and add a line for ABC.lnk into the initflashfiles.dat file.
To create a shortcut for ABC.exe, simply open Notepad, create a line like this:
24#"\Windows\ABC.exe"
(the number can be different), save it as ABC.lnk and add this to the initflashfiles.dat file:
Directory("\Windows\Start Menu\Programs"):-File("Alphabet.lnk","\Windows\ABC.lnk")
In this example the shortcut ABC.lnk, that points to ABC.exe gets placed in Programs with the name Alphabet.
After saving the initflashfiles.dat file, open the file in WinHex and remove the first 2 bytes (FF FE)!
If you don’t remove these 2 bytes your device will also be stuck at the second Splash Screen!!
After removing the 2 bytes and saving the file you can copy it to the “dump” folder (overwrite the original initflashfiles.dat file….don’t worry, you still got the backup of the original file in the Backup folder)!
Step 5:
Editing the HV Files!
Okay, let’s say that the application used in the example (ABC.exe) has a few Registry Values and will not work without it, therefore we will need to edit the default.hv and/or user.hv files.
Execute the script CREATE_RGU_FILES, this will copy the default.hv and user.hv files from the “dump” folder into a directory called HV Files in the Romdump directory and convert the 2 .hv files into .rgu files so we can edit them with notepad.
When editing .rgu files there are 4 things that are very important!
Turn off Word Wrap in Notepad
The 1st line is a blank line, type “REGEDIT4” (without quotes) on this line
Make sure the last line of the file is a blank line
Make sure the files are saved in Unicode and not in ANSI
The Windows Mobile Registry has 4 keys:
[HKEY_CLASSES_ROOT] à These Registry keys gets insert in the default.rgu file
[HKEY_LOCAL_MACHINE] à These Registry keys gets insert in the default.rgu file
[HKEY_CURRENT_USER] à These Registry keys gets insert in the user.rgu file
[HKEY_USERS] à These Registry keys gets insert in the user.rgu file
When you are finished editing the .rgu files, execute the CREATE_HV_FILES, watch properly of the files get converted without errors, if everything went okay, copy the default.hv files from the HV Files directory to the “dump” folder (overwite the original files….don’t worry, you still got the backup of the original file in the Backup folder)!
Step 6:
Okay, by now we have extracted and dumped the nk.nbf file, added and/or removed files from the “dump” folder, edited the initflashfiles.dat file, added registry values in default.hv & user.hv and copied the 3 edited files to the “dump” folder.
Now we are (finally…) ready to build the Rom!
Execute the script BUILD_ROM and wait till it’s finished (will take a couple of minutes depending on the speed of the computer).
This script will add the modified “dump” folder to the OS template files (.bin files) and when that is done it will build the 8004000-OS.nb file from the OS template file.
[\QUOTE]
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved yet again
Thanks a lot for this tool i'll look that when i will go at home.
Thanks for all your job
can't get to megaupload.
can you upload it to rapidshare? thanks for your work.
ericjm said:
can't get to megaupload.
can you upload it to rapidshare? thanks for your work.
Click to expand...
Click to collapse
http://rapidshare.com/files/46589256/Molskis_Devpack_modified_for_tornado_by_duke_stix.exe.html
burkay said:
http://rapidshare.com/files/46589256/Molskis_Devpack_modified_for_tornado_by_duke_stix.exe.html
Click to expand...
Click to collapse
thanks dude!
anyone tried this yet then?!
\
im awaiting feedback!
When I tried to dump rom, I get this
Splitting 80040000-OS.nb into .bin files....
Unable to open source image [80040000-OS.nb]
Creating Dump directory....
Dumping Rom content into dump directory....
Please wait a couple of minutes, depending of the speed of your computer!
Dump folder is ready in ROMDUMP directory!
Press any key to continue . . .
Why is it that I am unable to open source image ?
Looks like duke stix forgot to add a rename command in the batch file.
The wizard NBF WDATA start address for the OS is 80040000 and the tornado WDATA start address is 82040000, so rename 82040000-OS.nb to 80040000-OS.nb and it should work.
Phil
jm012a9749 said:
Looks like duke stix forgot to add a rename command in the batch file.
The wizard NBF WDATA start address for the OS is 80040000 and the tornado WDATA start address is 82040000, so rename 82040000-OS.nb to 80040000-OS.nb and it should work.
Phil
Click to expand...
Click to collapse
Actually im dumping using Mozbi Devpack for Wizard, thought it is the same, it works now.
Thanks
oioi
I'll get to changing that right now. didnt notice that!
Good tools and good explanations.
I dumped I rebuilt a Qtek ROM today for my wizard, and the advices of this thread were the biggest help.
Thanks and well done.
Customized ROM hanging in spash screen
Hello Duke,
I am currently in the process of customizing my own ROMs from other user builds thanks to the tools you provided. I am having problems though...I have used multiple nk.nbf (different os) files and dumped then rebuilded without modification just to make sure I have the technique correct. That is without modifying initflash or hv files and going right to rebuilding after dumping and I am hanging on the first screen. I then need to manually go to bootloader for reinstall.
I then checked with my modified ROMs following pdf religiously (ie deleting first 2 bytes and leaving last empty line-initflash...and adding REGEDIT4 and leaving last line saving as unicode-rgu...following instructions provided) and yet I continue to hang on the first screen.
Do you have any suggestions??
Thanks again,
vjgrace

Modifying DSM files? (Rom Cooking)

First off what program do you use to modify dsm files? Also in my OEM_Lang_0409, OEMAPPS and OEMDrivers folders after I make changes (delete unwanted files and folders) when I push the COOK buttom it goes through the buildOS program file and creates a bunch of dsm files in these folders above. My problem is when I look at the dsm files in each folder they contain all of the programs and files I have deleted and also some other files I dont want. When I try to modify the dsm files I get an error message when running buildOS program and It wont let me flash the rom. How can I modify these dsm files to get rid of the things that are no longer in the folder? What exactly does a dsm file control? Will getting rid of the names in the dsm files that are no longer in the system help me at all? When I look at other peoples cooked roms the dsm files that I am talking about match what files and programs are in the above folders. I hope this makes sence. Thanks for the help.

How to clean up my windows folder

How to clean up my windows folder
- Remove touchflo 2d
- remove Htc Home plugin
my folder size more than 136 mb :S make my deivce so heavy :S
Dr.Mazika said:
How to clean up my windows folder
- Remove touchflo 2d
- remove Htc Home plugin
my folder size more than 136 mb :S make my deivce so heavy :S
Click to expand...
Click to collapse
install a clean rom, or customize your own. the windows directory is going to be a little large regardless, the operating system is there..
what is the normal size of windows folder
any how can i customize my room to remove and add new applications
That's basically what got this community started... just about everyone here can testify to having looked into ROM Cooking... please research before asking how to do it, because I PROMISE there's a thread or two out there about it
Clean windows folder possible ?
I'm trying to cook my own rom but when I add an EXT module, all files are in Windows directory and the app.dat file only copy them in the app directory.
So is it realy possible to have a clean windows directory, how to put files directly in app folder? must I use an OEM module with initflashfile or ???
thanks all
superraoul said:
I'm trying to cook my own rom but when I add an EXT module, all files are in Windows directory and the app.dat file only copy them in the app directory.
So is it realy possible to have a clean windows directory, how to put files directly in app folder? must I use an OEM module with initflashfile or ???
thanks all
Click to expand...
Click to collapse
All files go into \windows. The first thing you need to ask is this: do I need to copy the file into another directory, like \program files? A lot of apps work just fine if you leave all of the files in \windows. The files are going to be in \windows in one form or another, so you save space by just running the app out of \windows. You need to change shortcut paths and sometimes registry key paths to get this to work, but in my experience, it works about 95% of the time. Usually, if you've got a multi-component application (several files besides just the .exe), the .exe will search for other files it needs to run in the same directory that the .exe is located in, so you're good to go if everything is in \windows. Some apps have sub-folders, so you'll have to get that folder and its contents into \windows. The best way to do this is with a .cab file or a zip file during customization (using a mortscript for the latter). Zip files are nice, because they install really quickly and are easy to make and edit.
Anyway, if you need to get files into another directory for whatever reason, I'd say that the app.dat method is probably the worst, because if you have multiple files, then you increase the file count in \windows by that amount. Put them in a zip file or a cab file, and then you'll reduce the file count to 1 for the particular package. You will also compress the files, and save some rom storage space.
You can also look into \extendir for another method to clean up the \windows directory.
You do need to be careful with some apps if they have an .ini file or an .xml file or something similar that is basically a settings file. It's usually better if these files aren't read only, so you may need to figure a way to copy the file into the \windows directory.

a5x max android pc rom cooking

Hello, I´m a newbie on this matters.
I´m trying to cook a custom rom from a stock rom for this android pc with RK3328 chip. The rom I´ve downloaded is an 8.1 android image version, an the app I used is RK3xxx_firmware_tools_5.78.35.00 that I´ve downloaded from the chinagadgetsreviews.
When I uncompressed the rom.img, system.img and boot.img with this app, I got three folders called: "Android", (with a "Image" subfolder with the boot.img, kernel.img, recovery.img... and a package-file file), "boot", (with a boot.img.unkrnl.dump folder who contains many folders and .rc files, boot.img.unkrnl.cfg file and boot.img.cfg file), and "system", (with the app, etc, bin... folders and the build.prop, compatibility_matrix.xml, manifest.xml and vendor files). Also got a system_statfile with these 3 folders.
I´d like to remove some apps from this rom and include others, and if it is possible, changing the recovery.img from it. The recovery partition has 64MB of size, and the original recovery.img has only 9057 KB. The recovery.img I´d like to install is the twrp_RK3328_v3110 adapted for this chip (who has only 5258 KB), but I wonder if I could simply replace the original recovery.img with this twrp one on the "Image" subfolder I said (renaming it first to recovery.img) and after repack the rom, or, like I'm afraid, more things have to be done.
Thanks a lot in advance.
Anybody doesn't know how?
porkero said:
Hello, I´m a newbie on this matters.
I´m trying to cook a custom rom from a stock rom for this android pc with RK3328 chip. The rom I´ve downloaded is an 8.1 android image version, an the app I used is RK3xxx_firmware_tools_5.78.35.00 that I´ve downloaded from the chinagadgetsreviews.
When I uncompressed the rom.img, system.img and boot.img with this app, I got three folders called: "Android", (with a "Image" subfolder with the boot.img, kernel.img, recovery.img... and a package-file file), "boot", (with a boot.img.unkrnl.dump folder who contains many folders and .rc files, boot.img.unkrnl.cfg file and boot.img.cfg file), and "system", (with the app, etc, bin... folders and the build.prop, compatibility_matrix.xml, manifest.xml and vendor files). Also got a system_statfile with these 3 folders.
I´d like to remove some apps from this rom and include others, and if it is possible, changing the recovery.img from it. The recovery partition has 64MB of size, and the original recovery.img has only 9057 KB. The recovery.img I´d like to install is the twrp_RK3328_v3110 adapted for this chip (who has only 5258 KB), but I wonder if I could simply replace the original recovery.img with this twrp one on the "Image" subfolder I said (renaming it first to recovery.img) and after repack the rom, or, like I'm afraid, more things have to be done.
Thanks a lot in advance.
Click to expand...
Click to collapse
All I can say is, extract the ROM until you get to the system folder then look for /system/app and /system/priv-app folders, delete the apps you don't want and add the ones you want. Then, remove your recovery.img and place your TWRP.img in its place then repack everything into the file format that you need then try flashing it.
If that doesn't work, you'll have to start doing your own research to get your ROM put together correctly.
Sent from my SM-S767VL using Tapatalk

It is possible to avoid folders (and files) auto creation? Unexpectedly, YES.

Dear friends,
for months I was struggling with the auto-created folders named LazyList and LOST.DIR
These are folders that are created automatically by the file system, but sometimes I have found, especially in the LOST.DIR folder, duplicated and previously deleted files, also big, very big ones.
Why a so great waste of storage?
So I wanted to get rid of that!
And after some "Guru meditations" I have found the trick to achieve it.
It is a very simple trick, that's related to the file system itself.
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Freedom to manage storage.
Man vs Filesystem: 1-0
Hope this will be useful to everyone that takes care of their storage
Uranya said:
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Click to expand...
Click to collapse
I must say I didn't believe it, so I tried to create a lost.dir folder and lost.dir file in the same directory on my computer.
And you were right!
Thanks for sharing!

Categories

Resources