yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] janitux:
guys, that's just a warning, the permission thing unyaffsmbn is throwing will be fixed by the kitchen, so don't worry
[Optimus One, P500 Android Development] maddygy:
great thanks.. :):thumbup:
[Optimus One, P500 Android Development] arun_7:
useful thread ;)
[Optimus One, P500 Android Development] rahulsby:
good info
[Optimus One, P500 Android Development] adityameena26:
not working

none of these working for me..trying since last 5hrs..tried latesy cygwin too..but nthng works..:(
[Optimus One, P500 Android Development] samue11:
I would like to is it also can be use on other LG roms?

Bec I would to like to change the P940 rom from .kdz file to .zip file?

However

when i extract from .kdz to .dz file, it only extract. wdb file in the .cab file
[Optimus One, P500 Android Development] slarkpro:
hi pro i want to compile boot.img and system.img.ext4 on lg l7 rom how i do it? thanks
[Optimus One, P500 Android Development] TdiGuy:
Suggestion.

Once this thread is "finalized" i think it would be just great if a moderator takes a few minutes to delete unneeded posts to it (such as this one) and have it made into a sticky since this is a very useful tutorial that if all works well will likely not get many posts and slowly get buried otherwise.
[Optimus One, P500 Android Development] ayazm.140895:
Hello everyone I'm using ubuntu (and windows 7t too). I intend to skip cygwin installation. So, how to use unyaffsmbn on ubuntu 12.04 plz help me.
[Optimus One, P500 Android Development] FitAmp:
You don't need cygwin on Ubuntu... Just install the correct dependencies and you're good to go :)
[Optimus One, P500 Android Development] ayazm.140895:
I have gcc compiler but it says no input files.
[Optimus One, P500 Android Development] Levered:
i have do but not work...help me
[Optimus One, P500 Android Development] torque7:
I have done everything you said but It still showing error APPLICATION CLEAR IS NOT INSTALLED
[Optimus One, P500 Android Development] primekook:
Help !!!!!!!

Can you tell me when i placing mod.zip in rom what kind of changes i make in whole rom:confused:

For Ex- i place Adrenaline_Engine_CM_4.5 this mod in rom then what kind of changes i make in updater script ,build.prop etc please explain me detail because i am a beginner :confused::confused:
[Optimus One, P500 Android Development] Levered:
not works
[Optimus One, P500 Android Development] Dilshad969:
Can you explain me clearly please what should I do.

Do i have to specify the path. Which path I need to specify please give an example

---------- Post added at 04:37 PM ---------- Previous post was at 04:20 PM ----------

I edited .bash_profile but still it shows the error message of clear: command not found why?

The screenshots are below
[Optimus One, P500 Android Development] mosi hd2:
i installed java and installed cygwin (full install)

but when i type ./menu , cygwin says

scripts/check_binaries: line 22: clear: command not found

any soloution?
[Optimus One, P500 Android Development] Gurkirat_Singh:
Hey man thanks for this post.First when I installed cygwin I didn't even know that default means that then I click on it and it changed to install. After installing Booom problem solved.
[Optimus One, P500 Android Development] mohammedalmusimie:
customized rom

i have question, if i have custom kernels that i want to add to my new Rom, such one that enable JIT,Hd acceleration,OC...etc , how can i add them to my rom instead of flashing them after installing the rom?
[Optimus One, P500 Android Development] rawaaw:
How to assemble set of *.img and *.mbn back to dz image ?

For old models like GT540 DzCreate builds DZ but for P500 has no corresponding .ini file.
[Optimus One, P500 Android Development] janitux:
Well, you need to flash the zip trought custom recovery, i don't think we have a way to rebuild a .dz with this method

by the way, new version of the howto :D if you find any error, just let me know
[Optimus One, P500 Android Development] janitux:
I don't know for custom kernels, but if you want such things as enable hw accel or jit, you need to modify values on system/build.prop
[Optimus One, P500 Android Development] ruigui:
You have an option in kitchen that extracts boot.img to a temp folder. You can edit it there (can't help with that because i'm still learning how to tweak a kernel...).

Then in the same menu where it has the option to extract boot.img, is also an option to repack it.

I tried to create a section for P500 in .ini file, but it didn't work... If anyone knows this help would be welcome. Although i don't need/want to flash kernels with kdz, all info is always good info ;)

@ janitux

Good work
[Optimus One, P500 Android Development] mohammedalmusimie:
thanks! work great for me!
[Optimus One, P500 Android Development] tritant:
Chek this thread if you want to enable and disable easily this feature directly from your phone

http://xdaforums.com/showthread.php?t=868008
[Optimus One, P500 Android Development] diordna2:
whenever i try to open the kitchen menu i get this thing.what am i doing wrong?
[Optimus One, P500 Android Development] janitux:
You need to copy the kitchen folder to c:\cygwin\home\YOURUSER then you can do a

cd kitchen
./menu

from cygwin
[Optimus One, P500 Android Development] scifan:
Is there a way to proceed when you're working with a cab file with wdb & wdh files instead of KDZ?
[Optimus One, P500 Android Development] diordna2:
thanks.it worked.

can we use a live cd with linux instead of cygwin?what version is better?

could you include in the first post how to jit+ha the rom so we dont need to flash it after?(maybe the script for tweaks?)
[Optimus One, P500 Android Development] matrixceccano:
anyone can create a stock rom deodex,root etc...but with lg home launcher ?
[Optimus One, P500 Android Development] ruigui:
To enable those, you must edit /system/build.prop

Lines that are important:

debug.sf.hw=1 (0=disabled, 1=enabled)

dalvik.vm.execution-mode=int:jit (fast=disabled, jit=enabled)

dalvik.vm.heapsize=32m (default=24m, recommended=32m)

media.stagefright.enable-player=false (change to true, to increase benchmark values. But you'll have issues with media playing, and it gives no extra performance)

If you don't want to use cygwin, use any distro you like. You shouldn't have issues with any. You might want to use 32bit distros, just in case...

This tutorial is to help you to do that ;)

Just follow instructions and begin to customize your ROMs.
[Optimus One, P500 Android Development] janitux:
I couldn't extract files from wdb with lg utils, sorry. if you have success on this, tell me how and i'll see if i can adapt the files to the kitchen
[Optimus One, P500 Android Development] scifan:
I've tried that and keep getting a message about a missing _StartUpgrade or something like that...
[Optimus One, P500 Android Development] diordna2:
any way to install the apps from nandroid backup on the new builded rom?excepting titanium backup where i have to install the apps one by one
[Optimus One, P500 Android Development] ccdreadcc:
how to remove unwanted apps from the custom rom?

just remove it from Kitchen\WORKING_xxxxxx_xxxxxx\system\app ???
[Optimus One, P500 Android Development] janitux:
yes :) easy as cake
[Optimus One, P500 Android Development] Asuma06:
@janitux,

do i need to be using 32bit to cook?
[Optimus One, P500 Android Development] janitux:
haven't tried on any 64 bits platform, sorry :(
[Optimus One, P500 Android Development] domenic_s:
It works on a 64bit platform, tried on my win7 ultimate 64bit.
[Optimus One, P500 Android Development] Quiksilver78:
Is there a list somewhere of the apk files that are safe to delete?
[Optimus One, P500 Android Development] ccdreadcc:
dont you mean the list of apk's not safe to delete?
[Optimus One, P500 Android Development] Quiksilver78:
Either or :)

I much prefer a description of each .apk file and to make my own decisions
[Optimus One, P500 Android Development] Asuma06:
I need to downgrade my windows to 32bit...does not work on 64bit.
[Optimus One, P500 Android Development] Quiksilver78:
Works fine on Windows 7 64-bit (Home Premium)
[Optimus One, P500 Android Development] ccdreadcc:
works perfectly fine win 7 x64 ultimate for me...
[Optimus One, P500 Android Development] kpbotbot:
Just get VirtualBox and install a Linux distribution as a guest OS. Much better than completely changing/installing a new operating system on your computer.

Anyway, I have a small question. How do I change the default launcher? Or other apps?
[Optimus One, P500 Android Development] domenic_s:
Just remove the original ones (LG Home) and put the new apk (for example LauncherPro) into system/app/ in your working-folder.
[Optimus One, P500 Android Development] Asuma06:
I'm having a hardtime decrypting the LG500AT-xxx-xxx-xxx.dz return is error opening it. how do i solve that?
[Optimus One, P500 Android Development] kpbotbot:
Thanks. I was looking around other forums for an answer to that question, and I came across this. Made my day :)
[Optimus One, P500 Android Development] bazo666:
hi, when trying to compile unyaffsmbn i get this error

$ gcc -o unyaffsmbn unyaffsmbn.c
unyaffsmbn.c: In function `process_chunk':
unyaffsmbn.c:82: warning: passing arg 2 of `utimes' from incompatible pointer type
unyaffsmbn.c:87: warning: passing arg 2 of `lutimes' from incompatible pointer type
unyaffsmbn.c:92: warning: passing arg 2 of `utimes' from incompatible pointer type

how to fix this?
[Optimus One, P500 Android Development] janitux:
maybe is the version of gcc that you are using, try upgrading it
[Optimus One, P500 Android Development] bazo666:
i dont think so. i installed it today from the latest cygwin. but i will try to reinstall whole cygwin again.

edit: no change, still the same error message
[Optimus One, P500 Android Development] Kwen:
Its just warning, the exe should run fine afaik
[Optimus One, P500 Android Development] Der_Caveman:
Can you tell me where the configuration for LGHome and ADWLauncher is stored?
[Optimus One, P500 Android Development] kpbotbot:
I think it's in /data. Though I can't confirm since I can't browse the "partition".
[Optimus One, P500 Android Development] Der_Caveman:
Hmm, that's right.

But how to cook a custom rom with a "predefined" homescreen?

Must one flash /data to accomplish this?
[Optimus One, P500 Android Development] kpbotbot:
Just delete the old launcher and leave only one in /system/app.

Also, flashing to /data with the preffered settings may work too, but I haven't tried it yet, but should work...theoretically :)
[Optimus One, P500 Android Development] Der_Caveman:
Yeah- but then it's "empty".

What if I want youtube and weather widget "preinstalled" on my homescreen for example?
[Optimus One, P500 Android Development] kpbotbot:
Damn it. HAHAHAHAHAHAHA I meant just leave only one launcher in /system/app xD

EDIT: Finally fully understood. Ignore this and the ones before this xD

That I'm trying to figure out. If you know where the configs are stored in /data, then you can place that in the kitchen for building inclusion. I'm still figuring out how to extract .img files (help me out?) since I have to know where the configs are saved (:
[Optimus One, P500 Android Development] Der_Caveman:
Does this help?
[Optimus One, P500 Android Development] kpbotbot:
http://android-dls.com/wiki/index.p...cking.2C_Editing.2C_and_Re-Packing_the_images

^Might help (from the link you gave). Give me a few :) What gives me the hunch that the stuff are stored in /data is the fact that when I clear the launcher's data, it reverts to stock settings.

EDIT: I'll try dd-ing to a folder/usbstick. HAHAHAHAHAHAHAHAHAHAHA this might just work.
[Optimus One, P500 Android Development] kpbotbot:
Figured it out! (Sorry for double post).

dd-ing to the my flash disk doesn't work. There were no files extracted on the disk.

Then there's this: http://xdaforums.com/showthread.php?t=850252

Just ./unyaffsmbn the data.img file. You should then get a bunch of files. Most of the configuration files I've seen are in /data/. I'm not sure which one is for the launcher since this is an old nandroid backup of mine and I don't remember what launcher I was using back then. Just poke around (:

There might be an easier way to incorporate modifications to the homescreen though, but this is the most logical way I can think of. I'll google more.
[Optimus One, P500 Android Development] Stumpalump:
I'm running Ubuntu as my main os. Don't have windows installed. Would love it if tutorial could also include modified instructions for native Linux users.

Cheers!
[Optimus One, P500 Android Development] janitux:
i haven't been able to successfully run KP500-Utils-EN.exe to extract the firm on linux with wine, so, if you figure out a way to get the .dz from .kdz, you can easily follow the howto (Skip the cygwin part, use wine for running dzdecryptor; install build-essentials package and you are ready to build unyaffsmbn, you need java installed too, for the kitchen part)

I think that's it, i generally use ubuntu to build custom roms :)
[Optimus One, P500 Android Development] Der_Caveman:
Has anybody tried to use ReactOS in a virtual machine to run LGUtils?
[Optimus One, P500 Android Development] kpbotbot:
I just use VirtualBox to run Windows to finish some steps.
[Optimus One, P500 Android Development] Der_Caveman:
But then you have to own a license.
[Optimus One, P500 Android Development] kpbotbot:
Yeah, I know. I have Vista preinstalled on my laptop though (guessing I can use the license for a vbox install), so that can't be a problem on my case. This is the only way I know to extract dzs from within windows.

Tested the KP500 utils on wine. Can't load dlls xD

EDIT: The error I get

File KDZ (Ex C:\V10G.kdz): Z:\\media\\d\\android\\LG-Utils-0.4.2(2)\\V10E_00.kdz
Loading...
wine: Call from 0x7bc494f0 to unimplemented function MFC42.DLL.6877, aborting

I solved the error before that (dll import error by googling for the dll haha). This new one I have no idea how to solve.
[Optimus One, P500 Android Development] P500:
don't know if this has been answered before, but I think the system launches every app stored in system/app/, and, well, there's a launcher so it's being launched. just an opinion though :D
[Optimus One, P500 Android Development] majdi star:
hi

pleas help me i am not good in linux command because these i can't make stockrom.zip

i don't what it problem ...Please verify that the write commands healthy or not through the image below.

thankyou

majdi star
[Optimus One, P500 Android Development] kpbotbot:
You're trying to cd to the folder "zip". cd is a change directory command and zip archives the files in the command line argument.

It's pretty clear in the instructions:

cd ..
zip -r stockrom.zip boot.img system/
[Optimus One, P500 Android Development] majdi star:
thank you in first i try new and these is the result ..

majdi star
[Optimus One, P500 Android Development] kpbotbot:
Maybe it's already zipped. It just didn't update the terminal output (not sure). What's the filesize of stockrom.zip?

Also, I don't use cygwin, so uhh, I have no idea what the problem may be when you'll get a very small stockrom.zip file :D
[Optimus One, P500 Android Development] majdi star:
ok

I think I understand the way this is the result I would have to look below them ... and make sure it's correct

Another thing why stop loading at 69% Is this true or is there something error happened

Thank you very much

majdi star
[Optimus One, P500 Android Development] janitux:
majdi star: commands are executed as one per line, write the line, hit enter, then the next one :) (btw, it its ok about the percent number, there is one "percent% deflated" per line, it's just telling you the level of compression about that file; you should have the stockrom.zip anyway)
[Optimus One, P500 Android Development] majdi star:
hi ..

thank you very much , i was write command line by line . like these

mkdir system (enter)

cd system (enter)

../unyaffsmbn.exe ../system.mbn (enter)

find bin -type l -exec rm {} + (enter)

cd .. (enter)

zip -r stockrom.zip boot.img system/ (enter)

but when End .....

i don't found stockrom.zip

but i found system file and content it Multi files size it 125 MB and content

(app,bin,etc,fonts,framework,lib,media,sd,sounds,usr,xbin,) all these file not ziped just

thank you very much .

majdi star
[Optimus One, P500 Android Development] janitux:
madji, can you send me a pm with a screenshot please? (Please include every command you've run)
[Optimus One, P500 Android Development] majdi star:
Thank you for onset, Some of the expression I do not understand this because I am not a developer like you.. what do's mean "pm"

I know I am annoying at times and I apologize for that and this is because I am not a developer like you ... but I would like to be a professional developer and this is thanks to your help Thank you very much for your cooperation with me and if possible to explain to me what you mean by "PM"

THANK YOU VERY MUCH ...

majdi star
[Optimus One, P500 Android Development] kpbotbot:
PM means private message. Private message him.
[Optimus One, P500 Android Development] ubi4e:
Hi there, could this tutorial work even on Lg-e720? Or may i edit something? Thanks a lot.
[Optimus One, P500 Android Development] janitux:
i'm not really familiar with the chic (I just own the optimus one), but i saw that it uses kdz for firmwares too, i think it's worth a shot :) (No idea how to install the rom anyway :()
[Optimus One, P500 Android Development] majdi star:
hi

thank for all to help me to make the first rom ...

i want share it with you ....

but i found some problems in my rom and i don't know how to Solve the problems

the first one i can't install the "[GPL] GNM OC BETA [p500 & p509] Kernel" (i installed it but do not work )

the second i am add app2sd but it not work too

last thing What is the benefit of

BusyBox

Zipalign all Apk files

Deodex all Apk files

majdi star .........
[Optimus One, P500 Android Development] maktucali:
cool cool cool
[Optimus One, P500 Android Development] janitux:
For the kernel, i honestly have no idea :P and for app2sd, yo just need to create the ext2/ext3 partition on your sd card (check any custom rom thread and you'll have instructions).
[Optimus One, P500 Android Development] Lawful123:
can this be done?

Can I cook my own rom then install it on my phone then change the background add my own widgets an apps then make a backup of my rom using amon-ra then distribute that rom for other people to use??
[Optimus One, P500 Android Development] jeerasak2k:
I use your your topic for custom my own rom v10g. It work with root and ...

Thank You.
[Optimus One, P500 Android Development] unisorsebastian:
can someone share a custom rom with root permision for optimus one android 2.2.2?
[Optimus One, P500 Android Development] sadun91:
why the dzdecrypt cannot open?

stuck at no 2.
[Optimus One, P500 Android Development] Xumit:
Thanks for the guide! I'm starting soon :D
[Optimus One, P500 Android Development] Xumit:
Just created my first rom :) Works fine and guide is works just awesome :)
[Optimus One, P500 Android Development] scorpionking674:
tried porting the LG GT540 sense rom but it didnt worked, stucks after the LG BOOTA animation with a black screen.
[Optimus One, P500 Android Development] daniequy:
All works well, i've done my first rom. :)

I have some questions:

1.-How to set custom apps to be instaled by default? I tried replacing and adding apps in SYSTEM/APP but it does not seems to work, i'm missing something.

I would like to change:

-launcher (delete de original and replace it with other)

-add some apps

-delete some apps

2.-I want to change the default boot animation

I need some light here, thanks for this great tutorial.
[Optimus One, P500 Android Development] DJBhardwaj:
I don't get point #5

please someone help me out with understanding it :(
[Optimus One, P500 Android Development] andy572:
Might be that its possible to cook a rom in windows, but i prefer Linux.

I use only the HTC kitchen and the midnight commander - its easy to unpack/pack a rom and modify/edit files.

Here a short explanation:

1.) Install VirtualBox (its freeware)

2.) Download and install ubuntu 9.x or 10.x

3.) (Re-)Start the virtual machine with the ubuntu linux os

4.) Install midnight commander (its a 2 pane file explorer for the shell)

5.) Install the JDK (u dont need the java sdk!) from oracle: ::::::important::::: choose a 32bit version, NOT 64bit - its not working!

6.) Install build system and other stuff as described here: http://source.android.com

7.) Install HTC kitchen

This steps should be enough to cook/edit/modify with success a rom:)
[Optimus One, P500 Android Development] 4silvertooth:
Its the source code to unyaffsmbn which is needed to extract system.mbn file but if you don't wont to compile it I have compiled it and will post the exe later (around at 9pm ist) if you want.
[Optimus One, P500 Android Development] 4silvertooth:
All the kitchen work is possible in windows.. I have tried it and we can modify edit the KDZ and make custom rom but to compile kernel and apps Ubuntu is best the 64 bit version works with hardware virtualization.
[Optimus One, P500 Android Development] andy572:
As i wrote - might be. but windows cant copy the correct file permissions, so u have to hold your hand on the update script or u get (possibly) a security leaked rom...
[Optimus One, P500 Android Development] DJBhardwaj:
guys guys!

I have the stockrom.zip extracted

whats next ?? :(
[Optimus One, P500 Android Development] andy572:
you see the zip contents^^

ok, to modify a rom u mostly need to know WHAT u would like to modify.

Images in a rom are always at the same place: <extracted APK file>/res/drawable-mdpi. Look here what you want to modify.

To extract a APK, use winzip, winrar or something else.

ATTENTION: once u have extracted a apk file, its useless when u re-compress it

because the file signature gets invalid. to avoid problems, open the apk later again

in your compression software (winzip,winrar...) and drag/drop files directly to the

drawable-mdpi folder.

if u're ready with your mods, open the htc kitchen again and enter "99" to cook the rom.
[Optimus One, P500 Android Development] DJBhardwaj:
could you please link me to download HTC Kitchen ?

and when i open the "stockrom.zip"

it has these parts and folders :-

1) System

- app (folder)

- bin (folder)

- etc (folder)

- fonts (folder)

- framework (folder)

- lib (folder)

- Media (folder)

- Sounds (folder)

- usr (folder)

- xbin (folder)

- build.prop (File)

2) Boot.img

what to do now ?

what things could i modify ?
[Optimus One, P500 Android Development] 4silvertooth:
Well remove the apk you don't wont from the app folder also there's odex file with same name. And there's framework-res Apk where all the GUI stuff goes use uot (Google) to modify it.
[Optimus One, P500 Android Development] r291:
Link is on the first page. You're using Cygwin right?
[Optimus One, P500 Android Development] andy572:
1) System

- app (folder) = installed applications by system (user cant remove this apps by uninstall via GUI or market)

- bin (folder) = system binary (executable) files

- etc (folder) = system wide configurations

- fonts (folder) = fonts :D

- framework (folder) = android framework, here u only need the framework-res.apk and systemUI.apk to skin the theme

- lib (folder) = system wide libraries

- Media (folder) = sounds and bootanimation

- Sounds (folder) = sounds by LG added (not a standard folder in every rom)

- usr (folder) = user binaries and libraries, some extra system data (keyboard layouts and other)

- xbin (folder) = extra bin folder, some more binary files (busybox etc)

- build.prop (File) = system basic configuration, readed by android (java-)system

2) Boot.img = contains kernel-zimage, init scripts and initrd.image

as i wrote, u need to know what u would like to do. if u will change system binaries, add or remove something. if u want to modify the UI, do so by modifying the framework-res.apk, systemui.apk and some other apps.
[Optimus One, P500 Android Development] 4silvertooth:
Apk-tools can be used to pack unpack individual apk and modify the content for changing icons and stuff. Google apk-tools