[Android Software Development] digyvijaykumar123:
PORTING ROMS FOR MEDIATEK​

FEATURE OF THIS GUIDE- NOOB -> EXPERT

I DONT KNOW THE METHOD I USE TO PORT WILL WORK FOR OTHER CHIPSET DEVICES OR NOT AS I ONLY USED MEDIATEK DEVICE.

IF YOU ARE IN A HURRY THEN SEE HERE MY 1-MIN PORTING GUIDE.

AND YOU CAN FIND HERE MY TRICKY CONCEPT- "X" TO SAVE MONEY,TIME,NET DATA.

Credits

[MENTION=673068]dsixda[/MENTION] for awesome android kitchen [MENTION=5119815]rua1[/MENTION] for Mtk Dorid Tools [MENTION=3226651]knzo[/MENTION] for tweaks [MENTION=1372986]https[/MENTION]://www.otaupdatecenter.pro/ and their team for OTA. [MENTION=5782468]tech mashido[/MENTION] As Helper

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WORK BEGINS

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

THINGS NEEDED

​

(INSTALL BELOW THINGS AS PER YOUR OS BIT VERSION,IF YOU HAVE 32 BIT OS THEN INSTALL 32 BIT STUFFS AND IF YOU HAVE 64 BIT OS THEN CHOOSE 64 BIT STUFFS.

WIndows Running PC or Laptop.

JAVA - Download

Cygwin - Download

7zip Compressor-Download

Notepad++ -Download

Android Kitchen- Download

Time(as per you how much take to understand)

Your Base Rom(stock Rom,in any format-CWM flashable or SP_tools Flashable,Prefer to have Both)

CWM Recovery

SD card & Card Reader.(some phones do not have SD slot so no worry for them,i have alternative way)

APKTOOL- DOWNLOAD

SP_Flash Tools to Unbrick In case Device Get Bricked- Download

SETTING UP IMPORTANT THINGS FIRST​

JAVA

Download Java From Above link as per your OS type.

Install it by running its setup like normal softwares.

CYGWIN

Download Cygwin From Above link.

Extract the Zip

By default it will be installed at c:\cygwin .i also recommend to install at default location.

Run Setup and Select "Install from Local Directory"

Then is will ask for packages location.Verify it.

Hit next-next and finish at the end.

Now you see a Cygwin folder under "C" drive and a shortcut Icon at desktop.

*For some 64 BIT users this method might not work,they can download setup from here-Download & install it from internet instead from local packages and select all packages during installation.

7ZiP

Download 7Zip From Above link as per your OS type.

Install it by running its setup like normal softwares.

Notepad++

Download Notepad++ From Above link as per your OS type.

Install it by running its setup like normal softwares.

dsixda's Android Kitchen

Download dsixda's Android Kitchen From Above link.

Extract it and then it will be like this- Android-Kitchen-0.224\Android-Kitchen-0.224\orgianal_update,tools etc....

Now open Android-Kitchen-0.224 folder and you will again find Android-Kitchen-0.224 folder,then rename it to only " kitchen " (small letters).

Now directory will look like this- Android-Kitchen-0.224\kitchen\orgianal_update,tools etc....

Now copy that kitchen folder which we renamed and paste to c:\cygwin\home"your_username""paste here"

Now your cygwin directory will look like this- C:\cygwin\home\your_username\kitchen\orignal_update,tools,etc.....

To check Kitchen is working,open cygwin from desktop and type - "cd kitchen" and hit enter(small letters).

If no error shown then you have sucessfully installed it or if error like- bash:cd :kitchen:No such file or dirctory hen you should check above steps again.

>>OPENING KITCHEN- open cygwin,type "cd kitchen" hit enter,now type " ./menu " and hit enter.Now kitchen will load.

PORTING CWM RECOVERY(PORT IF YOUR DEVICE DO NOT HAVE IT)- ROOT REQUIRE

Download and install ADB drivers on PC first.DOWNLOAD

Get MTK Droid tools From Here and Extract-HERE

Now go to developers option and enable USB debugging.If you cant find Developers option then go to settings/about Phone and press 7 times on BUILD NUMBER then you will see Developers option under settings.

Open MTK Droid tools on pc and then plug your device(turned on) via usb cable.Now the tool will recognise your device and connect to it(if asked for root permission on device then grant).

If the colour indicator in the bottom left corner is green in MTK Droid Tools,then you already have root shell,and can go on to the next step, if it is yellow, click on the root button at the bottom, and wait for the progress bar, if the indicator stays yellow, or you get an error message, this probably means you do not have Busybox installed, you can install it from the Google play store. When the indicator turns to green you have root shell which is necessary for this operation.

Now click on 'root,backup,recovery' and then select 'to use boot from phone'

Now click on 'recovery and boot'

Then you will see a dialogue box will appear asking if you want to 'make cwm recovery automatically' click yes.

The tool will then create the recovery and then another dialogue box will appear asking to 'install created recovery to phone', click yes.

Now you reboot into recovery mode and check that it is working fine or not.

You can find generated cwm recovery under MTK Droid Tools location.

If you want to revert to stock recovery then take recovery.img from your stock rom(sp_tools) and paste into sd card.And then install mobileuncletools from playstore and click on update recovery and select your stock recovery from SD.Same method for installing CWM recovery.

WHICH ROMS YOU CAN PORT​

Port rom should be of same android version as your stock rom.Like if your stock rom is 4.2 then you should only try with 4.2.In some cased you can port higher versions like kikat too,it will require Custom kernel but we are skipping that.

The device from you porting should have same chipset,like if your device is MT6589 then you shoul only try with MT6589 chip-sets.You can port from MT6589T to MT6589 or MT659M but you cannot port from MT6592.

Choose the port rom from most close specification device,like screen size,screen resolution,dual-sim,etc....higher resolution to lower resolution resolution or lower to higher can be ported but not all boots up.

Some Sites To get Port Rom:-

anzhuodiy.com

romzj.com

dashi.com

shendu.com

needrom.com