Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,560 Members 53,316 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] [GUIDE] Port MTK65xx To Your Device | Update 20-11-2013 | Beginners Friendly

Tip us?
 
A N D Y
Old
(Last edited by A N D Y; 17th May 2014 at 02:15 PM.)
#1  
A N D Y's Avatar
Recognized Contributor - OP
Thanks Meter 828
Posts: 356
Join Date: Feb 2013
Location: Heaven
Tutorial [DEV] [GUIDE] Port MTK65xx To Your Device | Update 20-11-2013 | Beginners Friendly

Code:
/*
 * ~ Please READ ME ~
 *
 * I do not guarantee any successful porting. I am not responsible
 * for bricked devices, dead SD cards, or a broken device. 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. But I will try
 * my best to explain all the necessities, so you won't mess up your Device.
 *
 * ~ END OF AGREEMENT ~
 */
So, Many Of You May be MTK Device User than you are at right place to fill your device with many awesome roms!
.
EASIEST & FASTEST GUIDE TO PORT MTK ROMS TO YOUR DEVICE...
BASE ROM:
Rom which is from you device Developer.
PORT ROM:
Rom You Are Going To Port.
THE GUIDE MAY WORK FOR ALMOST EVERY MTK65xx DEVICE.
HANDLE WITH CARE

LETS GET STARTED:
What All is Required:
  • WinRAR
  • Notepad++
  • Useful Brain...

Take A Clean Base To Port The Rom i.e. must be bugless...
Now Do As Follows:

1. Go to /system/etc/firmware in both the roms… drag and drop below files from base to port
  • catcher_filter.bin
  • DSP_ROM
  • modem.img
  • mt662x_patch_e3_hdr.bin
  • mt662x_patch_e6_hdr.bin
  • S_ANDRO_SFL.ini
  • WIFI_RAM_CODE
  • WIFI_RAM_CODE_E6
  • WIFI_RAM_CODE_MT6628
  • WMT.cfg
2. Go to /system/etc/permissions in both the roms… drag and drop below files from base to port
  • com.google.android.maps.xml
  • com.google.android.media.effects.xml
  • com.google.widevine.software.drm.xml
  • android.hardware.camera.front.xml
  • android.hardware.camera.xml
3. Go to /system/framework in both the roms… drag and drop below files from base to port
  • com.google.android.maps.jar
  • com.google.android.media.effects.jar
  • com.google.widevine.software.drm.jar
4. Go to /system/lib/modules in both the roms… drag and drop below files from base to port
  • ccci.ko
  • ccci_plat.ko
  • ccmni.ko
  • mtk_fm_drv.ko
  • mtk_fm_priv.ko
  • mtk_hif_sdio.ko
  • mtk_hif_sdio_mt6628.ko
  • mtk_stp_bt.ko
  • mtk_stp_bt_mt6628.ko
  • mtk_stp_gps.ko
  • mtk_stp_gps_mt6628.ko
  • mtk_stp_uart.ko
  • mtk_stp_uart_mt6628.ko
  • mtk_stp_wmt.ko
  • mtk_stp_wmt_mt6628.ko
  • mtk_wmt_wifi.ko
  • mtk_wmt_wifi_mt6628.ko

5. Go to /system/lib in both the roms… drag and drop below files from base to port
  • libaudio.a2dp.default.so
  • libaudio.primary.default.so
  • libaudiocompensationfilter.so
  • libaudiocustparam.so
  • libaudiosetting.so
  • libaudioeffect_jni.so
  • libaudioflinger.so
  • libbluetoothem_mtk.so
  • libbluetooth_mtk.so
  • libcameraservice.so
  • libcamera_client.so
  • libcameraprofile.so
  • libcamalgo.so
  • libcameracustom.so
  • libfmar1000.so
  • libfmcust.so
  • libfmjni.so
  • libfmmt6616.so
  • libfmmt6620.so
  • libfmmt6626.so
  • libfmmt6628.so
  • libmhal.so
  • libmhalcontent.so
  • libmhalmdp.so
  • libmhalpipe.so
  • libmhalscenario.so
  • libmhalutility.so
  • libmhaldrv.so
  • libsurfaceflinger.so {Black Screen Bug} (if port is successful and only touch is working, try replacing this lib to get the screen back)
6. Go to /system/usr/keylayout in both the roms… drag and drop below files from base to port
  • Generic.kl (regarding Power Buttons & Soft Keys)
7. Go to /system/usr in both the roms… drag and drop below files from base to port
  • Whole ‘srec’ folder
8. Go to /system/xbin in both the roms… drag and drop below files from base to port
  • libmnlp
  • mnld
9. Open /system/build.prop file of port rom using notepad++ and put the same values as base rom for
  • ro.build.display.id=
  • ro.product.model=
  • ro.product.brand=
  • ro.product.locale.language=
  • ro.product.locale.region=
  • fmradio.driver.chip=
  • mediatek.wlan.chip=
  • mediatek.wlan.module.postfix=
10. Open /META-INF/com/google/android/updater-script of port rom using notepad++ and put the same values as base rom for
  • symlink("/system/lib/modules/wlan_mt662x.ko", "/system/lib/modules/wlan.ko");
11. Go to /META-INF/ in both the roms… drag and drop below files from base to port
  • CERT.RSA
  • CERT.SF
  • MANIFEST.MF
Internal Memory Fix:
If You Face Bug Something like 0.00B internal storage then you can use this file to fix it.
  • In system/etc replace vold.fstab & vold.fstab.nand from base to port
Credits:
yuweng
rishabh.raj37
A N D Y
yasirmujtaba

Android Device Family:
Xolo Q1100, with 1.4 GHz Qualcomm MSM8228 and 4.3 Android Version
Xolo A700, with 1.0 GHz MediaTek 6577 and 4.0.4 Android Version
Xolo Q700i, with 1.2 GHz MediaTek 6589 and 4.3 Android Version
Sony Tipo ST21i. with 800 MHz Qualcomm MSM7225AA and 4.1.2 Android Version

The Following 30 Users Say Thank You to A N D Y For This Useful Post: [ Click to Expand ]
 
A N D Y
Old
(Last edited by A N D Y; 18th February 2014 at 11:25 AM.)
#2  
A N D Y's Avatar
Recognized Contributor - OP
Thanks Meter 828
Posts: 356
Join Date: Feb 2013
Location: Heaven
FOR MIUI
Copy telocation.db and yellowpage.db From /system/etc folder to yours..
Copy content-types.properties file From /system/lib to yours..
Copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
Note:It is needed for backup & themes app to work
Copy liblbesec.so from miui 4 to /system/lib and give permission on updater-script
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
It is needed for superuser app from miui to work
Change values Some of the Values in build.prop of your ROM:
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x (version number)
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg

Android Device Family:
Xolo Q1100, with 1.4 GHz Qualcomm MSM8228 and 4.3 Android Version
Xolo A700, with 1.0 GHz MediaTek 6577 and 4.0.4 Android Version
Xolo Q700i, with 1.2 GHz MediaTek 6589 and 4.3 Android Version
Sony Tipo ST21i. with 800 MHz Qualcomm MSM7225AA and 4.1.2 Android Version

The Following 8 Users Say Thank You to A N D Y For This Useful Post: [ Click to Expand ]
 
iel0000
Old
#3  
iel0000's Avatar
Senior Member
Thanks Meter 13
Posts: 110
Join Date: Jan 2012
Location: Angeles City
just wanna ask..is it ok if i dont copy the srec folder cause i cant find it..also yhe meta-inf folder as i only have the system.img of my base rom
 
A N D Y
Old
#4  
A N D Y's Avatar
Recognized Contributor - OP
Thanks Meter 828
Posts: 356
Join Date: Feb 2013
Location: Heaven
Quote:
Originally Posted by iel0000 View Post
just wanna ask..is it ok if i dont copy the srec folder cause i cant find it..also yhe meta-inf folder as i only have the system.img of my base rom
If You Don't Have "srec" folder no need to worry but for system.img you need to extract the img by ext4 method:
http://forum.xda-developers.com/show....php?t=2285831

Android Device Family:
Xolo Q1100, with 1.4 GHz Qualcomm MSM8228 and 4.3 Android Version
Xolo A700, with 1.0 GHz MediaTek 6577 and 4.0.4 Android Version
Xolo Q700i, with 1.2 GHz MediaTek 6589 and 4.3 Android Version
Sony Tipo ST21i. with 800 MHz Qualcomm MSM7225AA and 4.1.2 Android Version

The Following 5 Users Say Thank You to A N D Y For This Useful Post: [ Click to Expand ]
 
iel0000
Old
#5  
iel0000's Avatar
Senior Member
Thanks Meter 13
Posts: 110
Join Date: Jan 2012
Location: Angeles City
Quote:
Originally Posted by A N D Y View Post
If You Don't Have "srec" folder no need to worry but for system.img you need to extract the img by ext4 method:
http://forum.xda-developers.com/show....php?t=2285831
how about theses files?
CERT.RSA
CERT.SF
MANIFEST.MF

i dont have them cause i dont have a flashable stock rom..
 
A N D Y
Old
#6  
A N D Y's Avatar
Recognized Contributor - OP
Thanks Meter 828
Posts: 356
Join Date: Feb 2013
Location: Heaven
Quote:
Originally Posted by iel0000 View Post
how about theses files?
CERT.RSA
CERT.SF
MANIFEST.MF

i dont have them cause i dont have a flashable stock rom..
Don't Worry Try The one in the Ported Rom!

Android Device Family:
Xolo Q1100, with 1.4 GHz Qualcomm MSM8228 and 4.3 Android Version
Xolo A700, with 1.0 GHz MediaTek 6577 and 4.0.4 Android Version
Xolo Q700i, with 1.2 GHz MediaTek 6589 and 4.3 Android Version
Sony Tipo ST21i. with 800 MHz Qualcomm MSM7225AA and 4.1.2 Android Version

The Following 3 Users Say Thank You to A N D Y For This Useful Post: [ Click to Expand ]
 
iel0000
Old
#7  
iel0000's Avatar
Senior Member
Thanks Meter 13
Posts: 110
Join Date: Jan 2012
Location: Angeles City
cant also find these
com.google.android.media.effects.jar
com.google.android.media.effects.xml

sorry for the noob questions..i just want to port a rom to my device as we dont have developers
 
xjammetx
Old
(Last edited by xjammetx; 5th October 2013 at 06:24 PM.) Reason: double post
#8  
Senior Member
Thanks Meter 31
Posts: 169
Join Date: Mar 2012
Location: Las Islas Pilipinas!
it worked!
i ported an miui from newman n1, the ics 4.0.4 with no bugs to my cherry mobile blaze / Ming Ren A2 clone.
btw, this is not a dual sim display miui, i need to go to settings anytime i wan to use the other sim.
anyone who knows where to get a dual sim display miui?



Cherry Mobile Blaze
MIUI!

Have no fear, how others think of you or will judge you, for your greatness, will silence them all.
 
iel0000
Old
#9  
iel0000's Avatar
Senior Member
Thanks Meter 13
Posts: 110
Join Date: Jan 2012
Location: Angeles City
Quote:
Originally Posted by xjammetx View Post
it worked!
i ported an miui from newman n1, the ics 4.0.4 with no bugs to my cherry mobile blaze / Ming Ren A2 clone.
btw, this is not a dual sim display miui, i need to go to settings anytime i wan to use the other sim.
anyone who knows where to get a dual sim display miui?
what boot.img did you use? stock from cherry mobile?
 
A N D Y
Old
#10  
A N D Y's Avatar
Recognized Contributor - OP
Thanks Meter 828
Posts: 356
Join Date: Feb 2013
Location: Heaven
Quote:
Originally Posted by iel0000 View Post
what boot.img did you use? stock from cherry mobile?
Don't Try boot.img(Kernel) from the port rom or you'll brick your device!

Android Device Family:
Xolo Q1100, with 1.4 GHz Qualcomm MSM8228 and 4.3 Android Version
Xolo A700, with 1.0 GHz MediaTek 6577 and 4.0.4 Android Version
Xolo Q700i, with 1.2 GHz MediaTek 6589 and 4.3 Android Version
Sony Tipo ST21i. with 800 MHz Qualcomm MSM7225AA and 4.1.2 Android Version


The Following 2 Users Say Thank You to A N D Y For This Useful Post: [ Click to Expand ]
Tags
mediatek, mediatek porting guide, mtk device port, mtk65xx port
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes