ROM Porting Method For MediaTek Devices

Search This thread

Snigdho

Senior Member
Aug 3, 2014
51
45
Dhaka
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! :D
.
 

knightzero07

Senior Member
Sep 3, 2013
80
10
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.
 

Snigdho

Senior Member
Aug 3, 2014
51
45
Dhaka
Searching

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...
 

Mominul.Karim

New member
Aug 27, 2014
1
0
Dhaka
Thanks

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! :D
.

I tried. it worked.... but i am facing audio bug that means audio is not coming from phone's speaker.... any solution?
 

knightzero07

Senior Member
Sep 3, 2013
80
10
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.
 

aalakib07

Senior Member
Jun 6, 2014
76
91
Dhaka
LOL

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! :D
.

is it this ? :laugh:
 

nHNomy

New member
Sep 13, 2014
3
0
Porting Camera app from one custom rom to another custom rom. Help Needed

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! :D
.
Thats a really helpfull thread. I tried few custom rom. My stock rom show front camera 3mp and rear 13mp. With a custom rom figure it out that front is showing 8mp. Captured image with both the rom, and used photoshop to compare the size and the file shows larger along with the resolution. Now what i want to do is just port the camera app from one custom rom to another custom rom. Well they both are running well in my mtk phone. Can you help me out with it. Thanks for your everything.
 

Snigdho

Senior Member
Aug 3, 2014
51
45
Dhaka
Solution

Thats a really helpfull thread. I tried few custom rom. My stock rom show front camera 3mp and rear 13mp. With a custom rom figure it out that front is showing 8mp. Captured image with both the rom, and used photoshop to compare the size and the file shows larger along with the resolution. Now what i want to do is just port the camera app from one custom rom to another custom rom. Well they both are running well in my mtk phone. Can you help me out with it. Thanks for your everything.
Bro try replacing camera lib files from stock to port... hope it will work.. :)
 

nHNomy

New member
Sep 13, 2014
3
0
Thanks For reply

Bro try replacing camera lib files from stock to port... hope it will work.. :)

Let me give you some more details
Device,
Mtk6589
Stock Rom 4.2.2
Port Rom 4.2.1 Xperia UI
These roms are ported by either developer or facebook group members.

I am also facing another problem, When I port a rom, while flashing zip it shows, !ups you did it again" and it abort the process.

I am a newbie but I wanna learn the process.... :p
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    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! :D
    .
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone