slider

Recent

Ads Inside Post

Animation - Scroll IMG (yes/no)

Fixed Menu (yes/no)

Related Posts No. (ex: 9)

PageNavi Results No. (ex: 7)

Text Widget

About me

Number of Posts

no of posts

Random Post Number

random

Slider Display

SLIDER

RECENT$type=list-tab$date=0$au=0$c=5

REPLIES$type=list-tab$com=0$c=4$src=recent-comments

RANDOM$type=list-tab$date=0$au=0$c=5$src=random-posts

RECENT WITH THUMBS$type=blogging$m=0$cate=0$sn=0$rm=0$c=4$va=0

SCIENCE$type=right$va=0$count=3

Powered by Blogger.
cm13,1,customroms,2,Guide,1,KK,3,LP,6,MIUI,1,MM,12,MODs,2,ROMs,21,RR,1,rr_mm_5.6.8,1,

Recent Post Number

recent post no

Related Post Number

RPN

Total Pageviews

Flickr

Recent

Comment

Subscribe Here

Navigation-Menus (Do Not Edit Here!)

POLITICS$type=left$va=0$count=3

ARCHITECT$type=one$count=3

BY READERS$type=blogging$cate=2$count=4

FASHION$type=two$h=0$meta=0$rm=0$snip=0

Followers

Pages - Menu

Popular

Most Popular

Navigation

[GUIDE][MT6582 - 6592 - 6572] How To Port Cyanogenmod Based Roms For Mediatek Devices

How To Port CM Based Roms For Mtk Devices

Hi Future Porters ... Today we are going to Learn Porting CM Based roms either CM11 OR 12 OR 13 ... This Guide is completely user-friendly ... From Pro to Newbies ... This Guide is intended For Everyone ... Lets Start

First Taking All The Things Ready

This is a very important stage of taking all the necessary Thins ready ... So lets take a look the Things 

Stock Rom : Please select the stock rom of your device according to what you are working on your Port Rom.For Example , 
  • If Port Rom is Marshmallow Based (6.0) and Kernel 3.4.67 - Always Take A Stock Rom which has same Android version and kernel version ...
  • If Port Rom is MT 6582 and Your Stock Rom Must be MT6582
  • If Port Rom is MT6592 and your Stock Rom is MT6582 and vice versa ... This Thing Is now termed as CROSS-PORTING and u can cross-port roms to your device with another guide --> HERE (Soon)
  • Some Roms Already Ported For Unite 2 can also be taken as Stock Rom , HERE
MTK BOOTIMG Tools :- Download
Notepad ++ :- 32Bit64 Bit
WinRaR :- 86/32 Bit -- 64 Bit

Lets Start Porting ...

Good Luck

  • First Make 2 Folders named Port Rom and Stock Rom in any Folder
  • Now copy Stock Rom zip in Stock Rom Folder and Port Rom zip in Port Rom Folder
  • Install WinRaR ... Now select the Stock Rom.zip and Rigt-click and select extract Files and Then Click on ok .. Do This Same For Port Rom.zip

  • After Successful Extract Of  Both the Roms... Your Folder will look like this...
  • Now Extract the same with MTK BootIMG ... Open Both Stock And Port folders on different window ...
  • Copy Boot,img Of STOCK rom in Stock folder and Boot.img of PORT rom in Port folder and open unpack.bat on both stock and port folder ...

  • Your Folder will look like this ...
  • Now copy Kernel From STOCK And Replace It in PORT ... Now go to initrd and Copy unevented.rc from STOCK And Replace it in PORT .. Now Go Back and open Repack.bat ... Now Your Folder will look like this...
  • Now Copy boot-new.img and copy it on Port Rom's Folder ... Now delete Boot.img From Port Rom's Folder and Rename boot-new.img to boot.img
  • Now Navigate to META-INF\com\google\android on both the Roms ... Your Folder will look like this...
  • Install Notepad ++ ... Now right-click updater-script of Stock Rom's and select edit with notepad ++ ... Do the same for Port Rom's updater script .. Now the screen will look like this
  • Now find the lines starting with mount (There can be more than 1) ... Now Compare these mount lines of Port Rom with Stock Rom ... NOTE :- Only Compare if they both have same mount type which means there should same matching like /system or /data on both sides ... In the below picture I am comparing only /system mount line ...For most of the time the word mmcblk0p5 or mmcblk06 or mmcblk07 is different so replace the last number of your Stock rom's updater script to Port Rom's Updater Script
  • Now Compare the same with /data mount line ... 
  • After Comparing ... Save Port Rom's updater script and close it ... Now Open system folder in Both Port Rom and Stock Rom ...Open Build.prop of both roms with notepad ++ (right-click and edit with notepad ++) ... The screen will look like this...
  • Now Replace the lines given below from Stock's Build.pop to Port's Build.prop...
  • Now Save The Build.prop Of PORT ROM and Close it ...
  • Now open system/etc in Both the Roms and delete firmware folder from Port Rom and Copy Firmware Folder from Stock Roms to Port Rom in etc...
  • Now Open System/libs and replace these files from Stock Files to Port Files
  • libaudio.primary.default.so
  • libcamalgo.so
  • libcamdrv.so
  • libcameracustom.so
  • libEGL.so
  • libMali.so
  • Now come back to Rom Directory of PORT ROM and select all files as shown and right-click and select Add To Archive then choose a name of your Choice ... NOTE :- ALWAYS SELECT ARCHIVE FORMAT TO ZIP 
After Archiving ... U will get a zip in the same folder ... copy it to you sd card and flash and enjoy ... you can occur many bugs in rom .. so don't worry ... my next bug fixing guide will be soon
Share
Banner

Manjot Sidhu

Post A Comment:

0 comments: