PORT ANY ROM TO MTK DEVICE IN 5 MINS

PORT ANY ROM TO YOUR DEVICE

Now a days android Developers are rapidly updating the OS that the new phone, whichever we purchase either its nexus 5 or samsung S4. It becomes really Oldie or dump when we dont have a updated OS while other low grade phones do have.

So after all the thoughts and after many emails and on demands of my readers who want to know my method of porting the rom from other devices, i made this tutorial for them.



TALKED MUCH LETS GET TO WORK! :D

So first of all, i will start with, You should have proper knowledge on what you are doing and what this is all about. If you dont know whats going on with this post. You can hit the X(close) button and go to sleep as this is not for you. Plus Most Importantly you will need a Mind, in working Condition.

Please note that the rom you wanna port should be of same CPU Like Mtk6577=>Mtk6577. Also somehow you can upgrade a rom like mtk6577=>mtk6589 but you can never downgrade mtk6589=>mtk6577. In my experience you can take any resolution phone for port. I.e. once i ported a MMX 110 5'' display rom to my iball andi 4.5'' display. And it actually worked . Kudos!


This is a tutorial on how i port/make new roms for my lovely device and boosts its appearance and ram and overall experience.


Caution: Do it at your own risk. Don't blame me for anything. You are doing at you own will. If you broke something don't point finger at me. Just let me know ill try to help you out. If you don't know what's going on then you should probably read other posts on my blog.


Whats needed:



  1. A Pc/Laptop
  2. Java and all other android related things installed i.e. ADB ,etc 
  3. XDA kitchen
  4. Cygwin
  5. A Base rom( Which you have as stock or which is currently running smoothly) - Your stock rom
  6. A Port rom (which you wanna port) - A rom which is not meant for your device but have same specs and you want to port it to your phone.
  7. A Mind (MOST IMPORTANT) if not. Please Leave. xD :D
Okay Lets Go,

1> Download JAVA JDK from its official site or download from Here and install it. It will take few minutes.

2> Then Download Latest Android Kitchen from Here
3> Download Cygwin from Here
Run the Cygwin setup.exe and select the defaults for the installation paths, such as:
- install from internet
- install to C:\cygwin

Now read carefully:

At the 'Select Packages' screen, go to the 'Search' box to look for the following package:
* gcc (found under 'Devel')
- Click on the '+' symbol at the section it's found under
- Then find this single package (only the one with this exact name, not multiple similarly-named ones!) and click 'Skip' once so that it changes to show a version number
Go back to the Search box and repeat the above steps for the rest of the packages:
* perl (found under 'Interpreters')
* cpio (found under 'Utils')
* util-linux (found under 'Utils')
* ncurses (found under 'Utils')
* zip (found under 'Archive')
* unzip (found under 'Archive')
* wget (found under 'Web')

4> Press Next to process the installation and install the packages needed for making a custom roms.

5>When installation has been completed, click on your new Cygwin desktop shortcut. This will open a terminal session that will run some initialization.
With the Cygwin terminal still open, we need to configure the path to the Java application so that it can be executed within Cygwin.
Your Cygwin is now ready for the kitchen!
Please compare the following picture with your preparation:
Unzip the Android Kitchen to the C:\cygwin\home\Username folder 
Screenshot:


Now fire up cygwin and type command "cd kitchen" without inverted commas.

Then type ./menu and hit enter.
Now you will see a window like this.

Now i will directly guide you how i port roms and skip anything else:


Just enter "00" hit enter, and then "28" and hit enter


Now you will see a window asking two options,


Type "a" and hit enter.

now go to C:\cygwin\home\username\kitchen\original_update
and place the two roms 1)Stock or currently working rom 2) Port Rom


-Now Go back to the kitchen menu and hit enter. Now it will ask you to choose the stock rom. Choose the rom which is currently working for you and hit enter.


-Now it will ask you to choose the rom you wanna port. Choose it and hit enter.


-READ EVERYTHING CAREFULLY AND PRESS ENTER. Let it port the boot.imgs for you.

Have patience it will take some time. 
It will extract kernels, decompile it, port it, recompile it,etc. So let it work and have a cup of coffee in meanwhile. :D

-Now it will end and it will get back you to the porting menu. (CONSIDER THAT DONE AND EXIT)


-Now Go to the C:\cygwin\home\username\kitchen\ and you will see a working folder.


-Go to it. And now just copy the modified boot.img from that folder and copy it to the orginal ported rom you downloaded earlier from my previous posts or any other original ported rom you wanna port for your device.


-Open the rom zip file with Winrar and replace the boot.img


-Now just put it in root of SD CARD and flash it with your suitable recovery. If the specs of the port rom is same you will run the newly cooked rom without any errors XD

And if you hit an error let me know ill show you how to Solve that. 
Thanks readers. Have fun Porting.


Patch Solutions:

Copy "Stock Rom"  to "Port Rom" (if not worked) :-

\system\etc\firmware\modem.img - SIM1/ 2 not working
\system\lib\module\mtk_stp_wmt - Wi-Fi/ Bluetooth can't switch on
\system\usr\keylayout\Generic.kl - Home key doesn't work


For CAMERA - "can't connect to Camera or force closed":-


Just copy below listed file from "Stock ROM" to "Port ROM" :-



For android 4.0 (ICS) & 4.1 (JB).

\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so
\system\lib\libcameraprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so
\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission\android.hardware.camera.front.xml
\system\etc\permission\android.hardware.camera.xml

For FM Radio :- "FM Radio not working.":-

Just copy below listed file "Stock Rom" to "Port Rom" :-


\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so


For Sdcard not mounted correctly :-


Just copy below listed file "Stock Rom" to "Port Rom" :-


\system\etc\vold.fstab
\system\etc\vold.fstab.nand


For WiFi not working correctly :-


Just copy below listed file "Stock Rom" to "Port Rom" :-


\system\lib\modules\mtk_stp_wmt.ko
\system\lib\modules\mtk_wmt_wifi.ko 


For Bluetooth not working :-


Just copy below listed file "Stock Rom" to "Port Rom" :-


\system\lib\libbluetooth_mtk.so
\system\lib\libbluetoothem_mtk.so 

For GPS not working :-

Just copy below listed file "Stock Rom" to "Port Rom" :-


\system\xbin\libmnlp 

No comments:

Post a Comment