How To Port Custom Rom for MediaTek Devices

How To Port Custom Rom for MediaTek Devices

Porting MediaTek ROM is just piece of cake, In this tutorials we are going to explain how to port port MediaTek ROM such as__(Jellybean- JB 4.2.2 to JB 4.2.2) – MTK5672/MT5672, MTK6577/MT6577, MTK6582/MT6582, MTK6589/MT6589


How To Port Custom Rom for MediaTek Devices

How To Port Custom Rom for MediaTek Devices



Modification of your android device such as Rooting or flashing Custom Recovery/ROM/tweaker’s results to void of the warranty of the device. (We) RaphsonBD and its authors will not responsible for bricked devices / dead SD-card or any damage in your device which is incurred in the process of installing tweaker/ recovery / rom / firmware / rooting / unlocking or any development process the device. We highly advice you to take a backup of your device prior to performing the process. Please do some research if you have any concerns about features included in this ROM, before flashing it! You are choosing to make these modifications. Nevertheless if you need any help, just comments here. We will always pleased to help you.


Downloads And Requirements

  1. PC/Desktop/Laptop
  2. Stock ROM ( Original ROM Of your MTK Chipset based device)
  3. Port ROM ( Which ROM you want to Port)
  4. Winrar
  5. Notepad++ – Download Link


Porting Process

All the Things you have to do at your won Risk. I will not be responsible for any kind of Brick/Damage of your phone.

Step  –  1

First of Download both “Stock ROM” and which “Portable ROM”. Usually you find Stock ROM on your handset manufacturer official forum. Stock ROM and Portable ROM both ROM can be found in .ZIP format. First Unzip them both, than Create a New Folder anywhere in you computer and rename it

  • System

Inside the system folder create 2 “New Folders” and rename them as

  • etc
  • lib
MediaTeK ROM Porting Guide

Step –  2

Now You have to copy some files from your Stock ROM to newly created System folder. Open your Stock ROM folder and System folder.

MTK Porting Guide

Copy From Stock ROM etc” folder to “System\etc” folder
  • Folder
    • firmware 
    • permission 
    • security 
    • wide-dhcpv6
  • Files
    • vold.fstab
    • vold.fstab.nand

Copy From Stock ROM “lib” folder to System\lib” folder

  • Folder
    • hw
    • drm
    • modules
    • soundfx
  • Files

Now copy full “usr” and “vendor” folder from Stock Rom to System folder.


Step – 3

Go to the Port ROM folder.You need to delete some 3 folders from Port Rom system folder are below.

  • system\etc\firmware
  • system\lib\hw
  • system\lib\modules

Now paste “System” folder (Created with Stock ROM files) and replace files and folders to the Port ROM System Folder (Not inside the Port ROM System Folder)

MTK Porting Guide

File copied completed.. Now you have to edit Mount Point . Go to Port Rom META-INF\com\google\ android open updater-script with Notepad++ change the mount point. Find the line /dev/block/mmcblk0p and you will get the line like below.

format(“ext4”, “EMMC”, “/dev/block/mmcblk0p5“, “0”, “/system”);
mount(“ext4”, “EMMC”, “/dev/block/mmcblk0p5“, “/system”);
mount(“ext4”, “EMMC”, “/dev/block/mmcblk0p7“, “/data”);

Mount point I marked in red color 5 & 7 now change it as per your device mount point. (Do not need to change the whole line.) If your device mount point for system is 3 then make it 3 instead of 5. If your device mount point for data is 5 then make it 5 instead of 7. To know your device mount point run MTK Droid Root and Tools and connect your device. Then click Block Map.

MTK Block

Now use WinRar to Archive your Ported ROM to make it flashable via Custom Recovery.
Configure the Archive Format like This:
  1. Archive format: ZIP
  2. Compression Level : Normal
  3. Compression Method: Deflate
  4. Dictoioany Size: 32k
  5. Word Size: 32
First time it will take time for create system folder but after that you can Ported ROM for your device with in five minutes.  After Zip Archive complete you can copy the Ported ROM.Zip in your SD card. Go to your phone’s Custom Recovery > Install ZIP & Wipe Data. This is the very basic method to Port Custom Rom for MediaTek Devices.

Related Post



  1. this method for 64 bit?

  2. this tutorial not working on this rom :

    can u please update it

    issue 1 : cant find these files

    issue 2 : META-INF\com\google\ android open updater-script
    unable to find these lines

  3. Hello i successful run the rom in my device but the SIM card is not detected how can i fix it

  4. … [Trackback]

    […] Read More Info here on that Topic: […]

  5. … [Trackback]

    […] Find More Information here to that Topic: […]

    Leave a reply

    Compare items
    • Total (0)