Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,541 Members 54,251 Now Online
XDA Developers Android and Mobile Development Forum

ROM Porting Method For MediaTek Devices

Tip us?
 
Snigdho
Old
#1  
Snigdho's Avatar
Member - OP
Thanks Meter 91
Posts: 42
Join Date: Aug 2014
Location: Dhaka
Default ROM Porting Method For MediaTek Devices

Now I will described you about ROM porting
method for MTK phone (same SoC )
See details below :-
You need to have custom recovery for flash your new
created rom.

Note
:- Stock Rom is :- Current Rom of your handset.

(Flashable zip)
Port Rom is :- Which Rom you want to port.
(Flashable Zip)
Stock Rom & Port Rom need to be same version of
android. That means if your "Port Rom" is JB Rom,
You need to choice JB Rom as Stock.
1) First you choice a flashable zip rom for port
which is same processor as your stock rom.
2) Extract your Stock rom in a folder & rename the
folder to "Stock rom"
3) Extract your Port rom in a folder & rename the
folder to "Port Rom"
4) Now open the "Port Rom" folder & "Stock Rom"
folder side by side.
5) Now copy & replace "boot.img" from "Stock Rom/"
to "Port Rom/" folder.
6) Go to "system/etc/firmware/" folder & copy &
replace all file from Stock Rom to Port Rom.
7) Now go to "system/lib/module" folder & copy &
replace all file from Stock Rom to Port Rom.
8.) Now go to "system/usr/keylayout" folder & copy
& replace all files from Stock Rom to Port Rom.
9) Copy & replace "META-INF" folder from "Stock
Rom/" to "Port Rom/" folder. (Optional)
10) Now create zip of "Port Rom" folder, flash it via
CWM.
If your new ported rom not booted or stuck in boot
animation, Try again with replace "system/vendor"
folder from "Stock Rom" to "Port Rom".
That's it
--------: Tips for patch:--------
.
Copy "Stock Rom" to "Port Rom" (if not worked)
:-
\system\etc\firmware\modem.img - SIM1/ 2 not
working
\system\lib\module\mtk_stp_wmt - Wi-Fi/
Bluetooth can't switch on
\system\usr\keylayout\Generic.kl - Home key
doesn't work
For CAMERA - "can't connect to Camera or force
closed":-
Just copy below listed file from "Stock ROM" to "Port
ROM" :-
This tips only worked with android version 4.0
(ICS) & 4.1 (JB).
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so
\system\lib\libcameraprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so
\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission
\android.hardware.camera.fro nt.xml
\system\etc\permission
\android.hardware.camera.xml
For FM Radio :- "FM Radio not working.":-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
For Sdcard not mounted correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\vold.fstab
\system\etc\vold.fstab.nand
For WiFi not working correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\modules\mtk_stp_wmt.ko
\system\lib\modules\mtk_wmt_wifi.ko
For Bluetooth not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\libbluetooth_mtk.so
\system\lib\libbluetoothem_mtk.so
For GPS not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\xbin\libmnlp

.
Attention:- Your ported rom may not booted,
Because all Rom Should not work on all device. But
you can try another one.
If you face any problem with your ported rom
comments on bellow. I will help you to fix it.
.
NB- The Thread Is Copied I don't know who is the writter...
A big thanks to him!
.
.
Don't Forget To Hit The "THANKS" Button If I Have Helped You! Its Free....
.
About Me
 
Name : Snigdho Hasan
Current Device : Walton Primo E2
Current ROM : Emotion UI
Current Recovery : CTR 2.5
Country : Bangladesh
My Facebook : Click Here

.
.
The Following 4 Users Say Thank You to Snigdho For This Useful Post: [ Click to Expand ]
 
knightzero07
Old
#2  
Member
Thanks Meter 10
Posts: 75
Join Date: Sep 2013
How about for screen bug? any idea for such? Like brightness doesn't change at all. Its always set to full brightness then once screen is off, it will not light up but phone still functioning as normal.
The Following User Says Thank You to knightzero07 For This Useful Post: [ Click to Expand ]
 
Snigdho
Old
#3  
Snigdho's Avatar
Member - OP
Thanks Meter 91
Posts: 42
Join Date: Aug 2014
Location: Dhaka
Default Searching

Quote:
Originally Posted by knightzero07 View Post
How about for screen bug? any idea for such? Like brightness doesn't change at all. Its always set to full brightness then once screen is off, it will not light up but phone still functioning as normal.
Well bro I have never faced such bug :P but I am searching for the fix of this bug...
.
Don't Forget To Hit The "THANKS" Button If I Have Helped You! Its Free....
.
About Me
 
Name : Snigdho Hasan
Current Device : Walton Primo E2
Current ROM : Emotion UI
Current Recovery : CTR 2.5
Country : Bangladesh
My Facebook : Click Here

.
.
The Following 2 Users Say Thank You to Snigdho For This Useful Post: [ Click to Expand ]
 
Mominul.Karim
Old
#4  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Aug 2014
Location: Dhaka
Default Thanks

Quote:
Originally Posted by Snigdho View Post
Now I will described you about ROM porting
method for MTK phone (same SoC )
See details below :-
You need to have custom recovery for flash your new
created rom.

Note
:- Stock Rom is :- Current Rom of your handset.

(Flashable zip)
Port Rom is :- Which Rom you want to port.
(Flashable Zip)
Stock Rom & Port Rom need to be same version of
android. That means if your "Port Rom" is JB Rom,
You need to choice JB Rom as Stock.
1) First you choice a flashable zip rom for port
which is same processor as your stock rom.
2) Extract your Stock rom in a folder & rename the
folder to "Stock rom"
3) Extract your Port rom in a folder & rename the
folder to "Port Rom"
4) Now open the "Port Rom" folder & "Stock Rom"
folder side by side.
5) Now copy & replace "boot.img" from "Stock Rom/"
to "Port Rom/" folder.
6) Go to "system/etc/firmware/" folder & copy &
replace all file from Stock Rom to Port Rom.
7) Now go to "system/lib/module" folder & copy &
replace all file from Stock Rom to Port Rom.
8.) Now go to "system/usr/keylayout" folder & copy
& replace all files from Stock Rom to Port Rom.
9) Copy & replace "META-INF" folder from "Stock
Rom/" to "Port Rom/" folder. (Optional)
10) Now create zip of "Port Rom" folder, flash it via
CWM.
If your new ported rom not booted or stuck in boot
animation, Try again with replace "system/vendor"
folder from "Stock Rom" to "Port Rom".
That's it
--------: Tips for patch:--------
.
Copy "Stock Rom" to "Port Rom" (if not worked)
:-
\system\etc\firmware\modem.img - SIM1/ 2 not
working
\system\lib\module\mtk_stp_wmt - Wi-Fi/
Bluetooth can't switch on
\system\usr\keylayout\Generic.kl - Home key
doesn't work
For CAMERA - "can't connect to Camera or force
closed":-
Just copy below listed file from "Stock ROM" to "Port
ROM" :-
This tips only worked with android version 4.0
(ICS) & 4.1 (JB).
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so
\system\lib\libcameraprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so
\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission
\android.hardware.camera.fro nt.xml
\system\etc\permission
\android.hardware.camera.xml
For FM Radio :- "FM Radio not working.":-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
For Sdcard not mounted correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\vold.fstab
\system\etc\vold.fstab.nand
For WiFi not working correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\modules\mtk_stp_wmt.ko
\system\lib\modules\mtk_wmt_wifi.ko
For Bluetooth not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\libbluetooth_mtk.so
\system\lib\libbluetoothem_mtk.so
For GPS not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\xbin\libmnlp

.
Attention:- Your ported rom may not booted,
Because all Rom Should not work on all device. But
you can try another one.
If you face any problem with your ported rom
comments on bellow. I will help you to fix it.
.
NB- The Thread Is Copied I don't know who is the writter...
A big thanks to him!
.
I tried. it worked.... but i am facing audio bug that means audio is not coming from phone's speaker.... any solution?
 
knightzero07
Old
#5  
Member
Thanks Meter 10
Posts: 75
Join Date: Sep 2013
I've searched around on few forums but I've never seen any bug like this. There where brightness and auto brightness fixes but they don't work since this is different from those kind of bugs.
 
Snigdho
Old
#6  
Snigdho's Avatar
Member - OP
Thanks Meter 91
Posts: 42
Join Date: Aug 2014
Location: Dhaka
Default Solution

Quote:
Originally Posted by Mominul.Karim View Post
I tried. it worked.... but i am facing audio bug that means audio is not coming from phone's speaker.... any solution?
I am glad that it worked and for the audio bug you can replace audio lib files from stock to the port one
.
Don't Forget To Hit The "THANKS" Button If I Have Helped You! Its Free....
.
About Me
 
Name : Snigdho Hasan
Current Device : Walton Primo E2
Current ROM : Emotion UI
Current Recovery : CTR 2.5
Country : Bangladesh
My Facebook : Click Here

.
.
The Following User Says Thank You to Snigdho For This Useful Post: [ Click to Expand ]
 
aalakib07
Old
#7  
aalakib07's Avatar
Member
Thanks Meter 109
Posts: 43
Join Date: Jun 2014
Location: Rajshahi
Default LOL

Quote:
Originally Posted by Snigdho View Post
Now I will described you about ROM porting
method for MTK phone (same SoC )
See details below :-
You need to have custom recovery for flash your new
created rom.

Note
:- Stock Rom is :- Current Rom of your handset.

(Flashable zip)
Port Rom is :- Which Rom you want to port.
(Flashable Zip)
Stock Rom & Port Rom need to be same version of
android. That means if your "Port Rom" is JB Rom,
You need to choice JB Rom as Stock.
1) First you choice a flashable zip rom for port
which is same processor as your stock rom.
2) Extract your Stock rom in a folder & rename the
folder to "Stock rom"
3) Extract your Port rom in a folder & rename the
folder to "Port Rom"
4) Now open the "Port Rom" folder & "Stock Rom"
folder side by side.
5) Now copy & replace "boot.img" from "Stock Rom/"
to "Port Rom/" folder.
6) Go to "system/etc/firmware/" folder & copy &
replace all file from Stock Rom to Port Rom.
7) Now go to "system/lib/module" folder & copy &
replace all file from Stock Rom to Port Rom.
8.) Now go to "system/usr/keylayout" folder & copy
& replace all files from Stock Rom to Port Rom.
9) Copy & replace "META-INF" folder from "Stock
Rom/" to "Port Rom/" folder. (Optional)
10) Now create zip of "Port Rom" folder, flash it via
CWM.
If your new ported rom not booted or stuck in boot
animation, Try again with replace "system/vendor"
folder from "Stock Rom" to "Port Rom".
That's it
--------: Tips for patch:--------
.
Copy "Stock Rom" to "Port Rom" (if not worked)
:-
\system\etc\firmware\modem.img - SIM1/ 2 not
working
\system\lib\module\mtk_stp_wmt - Wi-Fi/
Bluetooth can't switch on
\system\usr\keylayout\Generic.kl - Home key
doesn't work
For CAMERA - "can't connect to Camera or force
closed":-
Just copy below listed file from "Stock ROM" to "Port
ROM" :-
This tips only worked with android version 4.0
(ICS) & 4.1 (JB).
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so
\system\lib\libcameraprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so
\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission
\android.hardware.camera.fro nt.xml
\system\etc\permission
\android.hardware.camera.xml
For FM Radio :- "FM Radio not working.":-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
For Sdcard not mounted correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\etc\vold.fstab
\system\etc\vold.fstab.nand
For WiFi not working correctly :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\modules\mtk_stp_wmt.ko
\system\lib\modules\mtk_wmt_wifi.ko
For Bluetooth not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\lib\libbluetooth_mtk.so
\system\lib\libbluetoothem_mtk.so
For GPS not working :-
Just copy below listed file "Stock Rom" to "Port
Rom" :-
\system\xbin\libmnlp

.
Attention:- Your ported rom may not booted,
Because all Rom Should not work on all device. But
you can try another one.
If you face any problem with your ported rom
comments on bellow. I will help you to fix it.
.
NB- The Thread Is Copied I don't know who is the writter...
A big thanks to him!
.
is it this ?
Contact me on facebook | gmail

The Following 2 Users Say Thank You to aalakib07 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes