Official TWRP Recovery Lands on Micromax Canvas Magnus

With the recent release of Android One, Micromax and MediaTek released fully buildable … more

Update Overload: SuperSU Heavily Updated

There are apps and apps out there. Very few can reach the level of popularity required to stay at … more

Lollipop Leak Available for the Sprint Galaxy S5

Since the Android 5.0Lollipop’s official release not too long ago, we’ve seen … more

CPU Spy Gets an Android Lollipop Makeover

At some point in the distant past, you probably heard of CPU Spy for Android by XDARetired … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

ROM Porting Method For MediaTek Devices

OP Snigdho

4th September 2014, 06:56 AM   |  #1  
Snigdho's Avatar
OP Member
Flag Dhaka
Thanks Meter: 30
 
41 posts
Join Date:Joined: Aug 2014
More
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!
.
The Following 2 Users Say Thank You to Snigdho For This Useful Post: [ View ]
4th September 2014, 07:04 AM   |  #2  
Member
Thanks Meter: 9
 
80 posts
Join Date:Joined: 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.
4th September 2014, 07:07 AM   |  #3  
Snigdho's Avatar
OP Member
Flag Dhaka
Thanks Meter: 30
 
41 posts
Join Date:Joined: Aug 2014
More
Searching
Quote:
Originally Posted by knightzero07

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...
4th September 2014, 07:11 AM   |  #4  
Account currently disabled
Flag Dhaka
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2014
More
Thanks
Quote:
Originally Posted by Snigdho

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?
4th September 2014, 07:12 AM   |  #5  
Member
Thanks Meter: 9
 
80 posts
Join Date:Joined: 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.
4th September 2014, 07:13 AM   |  #6  
Snigdho's Avatar
OP Member
Flag Dhaka
Thanks Meter: 30
 
41 posts
Join Date:Joined: Aug 2014
More
Solution
Quote:
Originally Posted by Mominul.Karim

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
4th September 2014, 11:42 AM   |  #7  
Abdullah Al Akib's Avatar
Member
Flag Rajshahi
Thanks Meter: 40
 
48 posts
Join Date:Joined: Jun 2014
More
LOL
Quote:
Originally Posted by Snigdho

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 ?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes