How to Port Nougat ROM for MTK Devices – MT6572/82/92/80

Port Nougat ROM for MTK Devices - MT6572/82/92/80
(Last Updated On: August 5, 2018)

How to Port Nougat ROM for MTK Devices – MT6572/82/92/80

In this post we will learn How to Port Nougat ROM for MTK Devices – MT6572/82/92/80. The Chipset like MT6580, MT6572, MT6582 & MT6592 are the most popular mediatek devices with 32 bit chipset. The guide we are presenting here is useful for porting ROM with same chipset and same kernel. This method is not only applicable for nougat ROMs but can also be used for Marshmallow as well as Lollipop ROMs


Requirements for Porting:

1. Both the ROM, i.e. Base ROM & Port ROM should have same Chipset. (Example: Both ROM should have Chipset of MT6580)



2. Both the ROM, i.e. Base ROM & Port ROM should have same Kernel. ( Example: Both ROM should have Kernel of 3. 18.19 or 3.10.72 or 3.18.35)

3. You can use Marshmallow or Lollipop ROM as a base to port Nougat ROM but should have same chipset and Kernel as mentioned above. If you use Nougat ROM as a base ROM to port other Nougat ROM, this is the best preference.

4. Apart from below mentioned files do not replace any other file, that may lead to bootloop or may give rise to so many bugs. Always be specific.

Porting ROM is not for lazy people as it requires lot of time and dedication and little brain as well.


Steps for Porting:

Follow this steps to Port Nougat ROM for MTK Devices – MT6572/82/92/80. Replace the same file from base ROM to port ROM. Do not replace any other file apart from this.

Step 1:Creating Folders:
Create Two folders as Base Rom & Port ROM. Copy and extract the base ROM & Port ROM to desired folder.

Step 2: META-INF Folder
– Go inside folder then go to com>google>android>updater-script and then edit mount points of “system” and “data”.
– Mount points like this “mmcblk0p6” this is my device mount point of “system” and “mmcblk0p8” this is mount point of “data”
– You have to replace these mount points with your device mount points.
– Install disk info app and you can see the mount points of your device there.



Step 3:System/etc Folder
Replace these file or folders:

bluetooth (whole folder)
firmware (whole folder)
wifi (whole folder) 
spn-conf
apns-conf

Step 4:System/lib Folder
Replace these file or folders:

libaudio.primary.default
libcam.camadapter
libcam.exif
libcam.paramsmgr
libcamalgo
libcamdrv
libcameracustom
libdpframework
libfeatureio
libimageio
libimageio_plat_drv
libMali

Step 5:System/lib/hw Folder
Replace this file:

hwcomposer.mt65xx

Step 6: Editing boot.img
Unpack boot.img of both the ROM, i.e Base ROM & Port ROM & Replace these files:

kernel
unvented.rc

To learn how to unpack and repack the boot.img please visit this post: Unpack/Repack boot.img & Port Custom ROM

Step 7: Making Zip File
After repacking boot.img, zip the whole file & folders of port ROM. And finally your ROM is ready.



Video Tutorial & Explanation:

Leave a Reply

Leave a Reply