mtk porting guide for begners
PORTING GUIDE FOR MTK 64BIT
Hello , Friends!
I am pawan kumar from team porters.
I am also a beginner like you. I have searched many sites about how to port. finally I have ported my own roms. so I have decided to help new people who are new and having interested in porting with basic knowledge of flashing roms. so I have made this guide so clear and easy with using simple terms and by picture representing. such that every user can understand and can port a rom by using this guide. and follow bug fixing guide along with this to fix bugs in your port rom.
I am pawan kumar from team porters.
I am also a beginner like you. I have searched many sites about how to port. finally I have ported my own roms. so I have decided to help new people who are new and having interested in porting with basic knowledge of flashing roms. so I have made this guide so clear and easy with using simple terms and by picture representing. such that every user can understand and can port a rom by using this guide. and follow bug fixing guide along with this to fix bugs in your port rom.
Lets get
started.
MAIN REQUIREMENTS :-
Base rom
Port rom
Mtk extractor / Calvik image kitchen
7zipper or win rar.
Note pad++
Meta-inf generator.
ADB Tool.
Brief explaination:-
BASE ROM?
It is nothing but your stock rom.
Ex: I own coolpad note3 lite. The rom of coolpad
note3 lite is called base rom for me.
PORT ROM?
It is nothing but the one you want to port it to
your device.
Ex: I want to port a rom from lenovo k4 note. That is
port rom for me.
MTK EXTRATOR/ CALVIK IMAGE KITCHEN?
These are the tools which are helpful to unpack and
repack boot.img or system.img files.
MTK EXTRATOR
IMAGE KITCHEN
MTK EXTRATOR
IMAGE KITCHEN
7ZIP OR WINRAR?
This is a simple tool to zip and unzip files. Which
is mainly useful to flash your custom rom. Or to unpack the port rom and base
rom contents.
7zip
WIN RAR
7zip
WIN RAR
META-INF generator?
If you dont know how to create updater scripts or
your rom doesn’t contain meta-inf try this meta-inf generator.
ADB?
Adb is a command tool. Which is gives a lot of
useful information. If your rom wont boot up then do this as given below
Open ADB
Give command :- adb shell logcat > log.txt
This command tells you
where the error is. Or which file causing the error.
You can also use TWRP (Team Win Recovery Project) recovery to copy log.
After flashing your rom. Just go to ADB side load. Then click on copy log. Log will be copied to your external storage( i.e external storage or OTG) with the name of recovery.log open it using es explorer (or) note pad++
Note:-
1) This guide is only for same chipset versions
like MT6735 to MT6735/53 or in a vice versa. This can be used to port mt67xz to
mt67xz also.
2) Bugs in port rom will be transferred to base
rom. So better choose a stable rom for porting.
3) You can only port same kernel versions. That means
3.10.xz
to 3.10.xz (lollipop based kernel to lollipop based kernals)
3.18.xz
to 3.18.xz (marshmallow based kernel to same)
Kernel is nothing but a
computer programme which can have a control over the system.
4) My small advise:- if it is your first rom try with
pure roms like aosp or cm based builds. Porting miui builds is considered as
toughest and time taking thing.
Now lets get started with step wise procedure.
Step1:-
Create two new folders
i)
Base rom
ii)
Port rom
Place your base rom files
inside base rom folder and your port rom files in port rom folder.( unzip your
files using 7zipper r winrar)
Step 2:-
Always replace the port rom
files with base rom files # keep this in mind #
Now open system folder go
to etc folder
Replace these files
Replace firmware folder
inside etc folder. And also replace the below files
agps_profile_conf2
media_codecs.xml
apnconfig
spnconfig
spnconfig
Step3:-
Now go to
lib and lib64 folders just replace these 7 files libaudiocomponentengine.so
libaudiocustparam.so
libnvram.so
libnvramagentclient.so
libnvram_platform.so
libnvram_sec.so
libcustom_nvram.so
libaudiocustparam.so
libnvram.so
libnvramagentclient.so
libnvram_platform.so
libnvram_sec.so
libcustom_nvram.so
And hw folder to fix hardware.
And also change these files one by one to fix boot
loop which are like libcameramt67xz
And libcameracustom.lib
And libcamlgo.lib
Step4:- this is very important step and you have to
pay your full concentration and attention towards this step.
Unpack boot.img of both roms.
Replace
Kernel.img
Go to ramdisk and replace
Int.mt67xz.rc
Fstabmt67xz
Now repack boot.img
Step5:-
Now replace the boot.img with edited boot.img
Step6:- now zip them and flash the rom.
To be a recovery flashable
Your ROM should atleast contain these things.
System
Meta-inf
Boot.img
and it must be in zip format.rar or .archive wont flash
IF YOUR ROM DOESNT BOOT UP THEN FOLLOW ADB TOOL GIVEN ABOVE.
Comments
Post a Comment