All-in-one ROM porting guide
[mediatek] [qualcomm] [recovery]
[bug-fix] [cross-porting-mtk]
By kuberrocks96, (Kuber Sharma aka AlphaGeek),
Senior Member, on 13th February 2017, 05:09 PM
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* 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, and if you point the finger at me for messing up
* your device, I will laugh at you.
*/
Update
* Updated Bug Fix Guide for MTK
* Added SNAPDRAGON Bug fix guide.
* Guide to port TWRP also updated.
* Improved the thread.
* Added more fixes.
* Qualcomm porting guide added.
Base Rom
Base Rom is referred to the Stock rom or the Default Rom of your device
or sometimes the rom from which you will take base files (libs, apns,
modem etc.).
Port Rom
Port Rom is the rom which you will port for your device.
Like if you are working a rom of another device having similar
specifications and porting it for your device then it is called Port Rom.
Kernel
The kernel is a computer program that is the core of a computer's
operating system, with complete control over everything in the system.
The central or most important part of something.
In easy words kernel acts as the middle man between the Software and
the Hardware.
When porting a rom, you should check the Kernel version of the
Port Rom and the Base Rom.
They both should be similar,
like you can port only from:
3.18.xx to 3.18.xx only
3.10.xx to 3.10.xx only
In this Guide, I’ll tell one of the easiest way to –
BOOT UP THE ROM.
So, let’s begin.
This guide will focus on MT6735/MT6753 porting.
Device used is Coolpad Note 3 Lite
CPU: MT6735
Author’s Note:
When You Port a Rom, Change Files Wisely.
Don’t Just Copy Paste.
Porting a Rom Can Get Tough According to the Rom, Like
Porting an AOSP Build Can Be Easy but Porting a MiUI
Build is Considered One of the Toughest and Irritating
Thing.
Respect The Efforts by The Previous Developers.
Credits, When You Port a Rom Which Rom Was Made by
Someone, Ported by Someone or Bug Fixed by Someone –
So by Any Means If You Know the Source and the
Developer or Team Whose Build You Are Porting Pleaseso
Give Proper Credit.
Thanks.
NOW, FINALLY. LET'S TALK ABOUT THE PORTING GUIDE
WHICH YOU ALL ARE WAITING FOR.
What you guys need:
1. Base Rom
2. Port Rom
3. Notepad++
4. Boot.img repack or unpack tool
5. Brain
BOOT.IMG
BOOT.IMG contains all the magic, it has the KERNEL
inside which is one of the main thing.
Porting from Same CPU & GPU:
MT6753 TO MT6753 or MT6735 TO MT6735
Use this method (95% times working)
System/lib & System/lib64
1.libaudiocomponentengine.so
2.libaudiocustparam.so
3.libnvram.so
4.libnvramagentclient.so
5.libnvram_platform.so
6.libnvram_sec.so
7.libcustom_nvram.so
System/etc
./Firmware folder
apnconfig
spnconfig
agps_profile_conf2
media_codecs.xml
BLACK SCREEN AFTER LOGO???
REPLACE THIS LIB:- libcam.paramsmgr
To Fix Camera (sometimes bootloop, so try one by one):
from System/lib & lib64 and HW folder, replace all libs
starting like this:-
libcamera.mt6735 (mt6735 is according to my CPU)
libcameracustom.lib etc
libcamalgo.lib
Unpack Boot.img of both Base & Port Rom
replace kernel
and init.mt6735.rc (not recommended always)
and Fstab.mt6735
Done, now zip em and flash.😱😱😱
My Youtube Channel