Rom Porting-ICS/JB porting guide(mt65xx)

Hello frnds,THIS guide is for all mtk user who have jb/ics kernal and want to port custom roms for thier device.

ICS/JB PORING CUSTOM ROM(MT65xx)

REQUIREMENTS-

* Windows XP/7/8 or linux which you like...
* 7-Zip
* Notepad++
* Stock ROM




LIMITATION-

1.your device must be mtk chipset(mt65xx)
2.The rom you want to port must be same kernal version.
3.Read careful,dont misplaced any file.

Start-


* Replace these from your Stock ROM to the ROM u want to PORT!! Lets Call it "PORT"

FILE LIST FOR REPLACING:
*system/vendor 
*system/usr 
*system/lib/modules 
*system/lib/hw 
*system/lib/libncurses.so 
*system/etc/firmware 
*system/etc/vold.fstab 
*system/etc/vold.fstab.nand 
*system/etc/bluetooth

For Fixing Problems...
*system/etc/permissions 
*system/etc/security 
*system/etc/audio *system/etc/wifi 
*system/lib/drm
 *system/lib/soundfx

* Now Replace the Stock Boot.img to Port ROM!

* Now Open The Port ROM folder and go to META-INF/google/android and open updater-script in Notepad++

* Do the same for the Stock ROM

* Now In the Port ROM's Updater Script, find a line that starts with this...

format(".......

and only replace the mmcblk0p.. with the stock one!

* Do the same for this line...

mount("...

Example:

This is the PORT one!!!


 format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
 mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");

This is the Stock one!!

 format("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");
 mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");




Now just Replace the "mmcblk0p3" from STOCK to PORT!!

It should look like this:

 format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/system");
 mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");




DO NOT REPLACE THE WHOLE LINE!

* Now go back to the Folder of Port ROM and You'll see 2 folders & 1 file named

-META-INF
-system
-boot.img

* Now Select these three and Click Right Mouse Button and Click on 7-Zip ->> Add to Archive

* Now a dialouge box should appear!

* Configure the Format like This:

Archive format: ZIP

Compression Level : Normal

Compression Method: Deflate

Dictoioany Size: 32k

Word Size 32

* Now Start Zipping and Push the ZIP to your Memory Card

* Go to Recovery >> Install ZIP & Wipe Data

Finished!!