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
Port Rom : As Explained Above , Start finding our Port Rom ... Some Links are given below :-
MTK BOOTIMG Tools :- Download
Notepad ++ :- 32Bit64 Bit
WinRaR :- 86/32 Bit -- 64 Bit
Lets Start Porting ...
Good Luck
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 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
Post A Comment:
0 comments: