[Android Q&A, Help & Troubleshooting] HERCULES:
::)HELLO guys..I::)HELLO guys..I'm here to guide you how to port custom ROMs for your mtk and snapdragon device..this guide is noob friendly.. Just follow the steps as given.:o

NOTE--IM AND XDA TOO NOT RESPONSIBLE FOR ANY DAMAGES FOR YOUR DEVICES..FLASHING CUSTOM ROMS VOIDS WARRENTY

So let's start ..:)

FOR MEDIATECH PHONES

Works for..

MT6589 to MT6577

MT6582 to MT6572

MT6577 to MT6575

Also with SAME SOC LIKE

MT6589 TO MT6589

MT6572 TO MT6572

MT6582 TO MT6582

ETC...

No Need of Source Code

No Need of Kernel Source

No Need of **ANDROID KITCHEN

No Need of LINUX...

Requirements:

* A Brain

* Patience

* Windows XP/7/8

* 7-Zip

* Notepad++

* Bootimg Unpack/Repack Tools for Windows!

* Stock ROM

* And a Little Respect!!

So now Lets Begin...

PORTING For Same SoCs ( Ex: MT6572 to MT6572)

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

*now you need to replace some files from stock to port ROM...first delete them all mentioned from port ROM and then transfer from stockâ˜º

FILES NEEDS TO BE REPLACED.

Code:

*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:good:

For Fixing Problems...

Code:

*system/etc/permissions

*system/etc/security

*system/etc/audio

*system/etc/wifi

*system/lib/drm

*system/lisystem/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!!!

Code:

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

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

This is the Stock one!!

Code:

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:

Code:

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

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

DO NOT REPLACE THE WHOLE LINE!:eek:

NOW COME TO THE MOST IMPORTANT PART..WITHOUT THIS STCOSTEP,ROM WILL NOT BOOT UP.

DOWNLOAD FIRST BOOT IMG UNPACK REPACK TOOL...

then you need to create two folder like "stock" and "port"(sometimes the tool caintain both the folder)...

Put the both boot.IMG in their respective folders..(stock boot.IMG in stock and port.boot.IMG in port folder.

Now unpack both the boot.IMG

Then copy and replace the port kernel with stock one..I.e.transfer your stock kernel to port folder..and finally repack itâ˜ºâ˜º.

* 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!!

DONT FORGET TO HIT THANKS TO MY PROFIKE...IF YOU HIT THANKS YOUR ROM WILL 100% BOOT u??

The ROM porting for snapdragon soc and cross porting on mtk is on my next threadâ˜?

CREDITS
[MENTION=6592939]HERCULES[/MENTION]