[UPDATED][INFO]Tips for cooking your own ROM - Now has howto for adding franco.Kernel

Bytecode

Inactive Recognized Developer
Dec 30, 2010
2,684
4,487
0
22
/dev/null
Hi there pals! It seems that the actual wish of n00bz is cooking their own rom. Well,i got some tips for you now.

*Kernel:
The Linux kernel is the center of the entire Android system. Today i'm gonna show how to put it in your rom:You'll need the kitchen. Multiupload.com - upload your files to multiple file hosting sites! Extract rom,then go to advanced options. Select option 20 and then option w. You'll find a new folder,BOOT-EXTRACTED. You'll find in this folder a file named zImage. Replace it with the fixed one that you can find in kernel folder of zip file,select option b and cook. THEN copy:
/zipfile/system/lib/modules/tun.ko
to /WORKING/system/lib/modules
/zipfile/system/lib/modules/wireless.ko to /WORKING/system/lib/modules


*Frameworks
For customizing your UI and make it cool,you'll need the kitchen.Multiupload.com - upload your files to multiple file hosting sites!
Extract it and go to advanced options. Select option 11,wait and in WORKING open framework-res.apk w/ 7-zip and customize all you want. If you want to put another framework than the stock one,extract the original one and keep META-INF folder. Replace stock one with the custom one in framework folder,and open it with 7zip. Replace META-INF folder in apk with extracted one and cook.

*WiFix
How to apply WiFix?
Download this:http://www.multiupload.com/CVBPXA46DB. Extract downloaded file and extract rom with kitchen. In kitchen go to advanced options and select option 20,then option w. Open BOOT-EXTRACTED folder and in boot.img-ramdisk open init.thunderg.rc and put in this string:
Code:
on property:init.svc.wpa_supplicant=running
    exec /system/bin/sh /system/etc/setwifi.sh
then select option b.Copy setwifi.sh in /WORKING/system/etc and iwmulticall in /WORKING/system/xbin .Now,in /META-INF/com/google/android/ open updater-script and add these strings:
Code:
symlink("iwmulticall", "/system/xbin/iwconfig");
symlink("iwmulticall", "/system/xbin/iwgetid");
symlink("iwmulticall", "/system/xbin/iwlist");
symlink("iwmulticall", "/system/xbin/iwpriv");
symlink("iwmulticall", "/system/xbin/iwspy");
set_perm(0, 0, 0755, "/system/xbin/iwmulticall");
set_perm(0, 0, 0755, "/system/etc/setwifi.sh");
in WORKING folder go in system folder. Open build.prop and search for this string:
Code:
 wifi.supplicant_scan_interval=20(Replace 20 with 260)
*Enable hardware acceleration
in Working folder go in system folder and open build.prop. Search for this string:
Code:
debug.sf.hw=0(Replace 0 with 1)
Cook it.

*Heap size
In working folder go in system folder and open build.prop. Search for this string:
Code:
dalvik.vm.heapsize=24m(replace 24 with 32 or 40)
Cook.

*ZRam module
Download zram.zip from here and extract it. Copy:
/zram.zip/system/bin/zramconfig to /WORKING/system/bin
/zram.zip/system/etc/zram.sh to /WORKING/system/etc
/zram.zip/system/etc/init.d/00remount to /WORKING/system/etc/init.d
/zram.zip/system/etc/init.d/00zram to /WORKING/system/etc/init.d

*Stagefright player
Open /WORKING/system/build.prop with a text editor(Notepad++) and search for
Code:
media.stagefright.enable-player=false
and replace false with true to enable it,replace true with false to disable it.


More tips are on the way!
 
Last edited:

mprou

Senior Member
Mar 23, 2011
417
46
0
Athens
+1 for sticky. All developer's could share usefull tips in this thead and maybe this way more ppl will get the courage to try and cook their own roms:) I'm trying to get into the cooking bussiness myself so every little tip is more than usefull:)
 

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
Just a small revision the the META-INF\com\google\android\update-script syntex. I kept getting errors in my update-script check, and found Ciaox had posted the version below in another forum (that was not english, but I recognized the code!).

Code:
symlink iwmulticall SYSTEM:xbin/iwconfig
symlink iwmulticall SYSTEM:xbin/iwgetid
symlink iwmulticall SYSTEM:xbin/iwlist
symlink iwmulticall SYSTEM:xbin/iwpriv
symlink iwmulticall SYSTEM:xbin/iwspy
set_perm 0 0 0755 SYSTEM:xbin/iwmulticall
set_perm 0 0 0755 SYSTEM:etc/setwifi.sh
I also found the supplicant scan interval bit in the boot.img-ramdisk/init.thunderg.rc file. I made this bit match the code in the build.prop. We'll see how well this goes here soon...
Code:
wifi.supplicant_scan_interval=20#(Replace 20 with 260)
I am moments away from flashing UD4 with the wifi fix incorporated.

Newbees, remember to use Notepad++ or other script editor instead of plain notepad. The language changed to script makes this stuff 100x easier to see and it also edits the script better from what I read about linux scripts. I speak from experience as a newbee myself!

Brian - Atlanta, GA
 

Bytecode

Inactive Recognized Developer
Dec 30, 2010
2,684
4,487
0
22
/dev/null
You're getting errors in update-script because syntax in first post is for Edify,not Amend.

Sent from my LG Optimus One P500 using XDA Premium App
 

DesigningOne

Senior Member
Jan 29, 2011
79
2
0
I thought about that last night. Unfortunately, wifi is still draining battery. I'm running Ubuntdroid4, & 3g runs very smooth. If I didn't run wifi so much at home & use internet primarily I wouldn't mess with it so much. Off to do some more research...

Sent from my LG-P509 using XDA App