[Miscellaneous Android Development] yuweng:
Please refer to this post . . . :cowboy:

For detail specific on MT6575 SoC, refer to this NEW Thread by xXx~~~SHLOK~~~xXx & DarkFrenzy . . . :good:

For detail specific on MT6577 SoC, refer to this NEW Thread by Avenger4droid

All MT65xx android phones are plagued by the same problem, No Custom ROMs & there are just too many models out there... :o

DEVs that are developing custom rom for it are only a handful. If you have the same model as these DEV then you are very lucky indeed to get cwmr & custom roms from them. But what about those hundreds if not thousands of MT65xx out there ?

No worries, you can port any Custom ROMs to your device quite easily using Master Shifu dsixda's Android Kitchen.... Links for that is below my signature... :cool: Even though they are for MT6573, some of them are still relevant... :o Many have successfully ported numerous of MT6573/ 75/ 77 custom/ stock ROMs out of it.... Full Credits & Special Thanks to Master Shifu dsixda for making such a Super Easy to use & Fabulous Android Kitchen...

Below is what i found out when porting ROM, you may need to patch the following below from your stock ROM for it to work...

modem.img - SIM1/ 2 not working

libcameracustom.so - Camera no auto-focus

mtk_stp_wmt - Wi-Fi/ Bluetooth can't switch on

Generic.kl - Home key doesn't work

So here is my quick & easy patching tut for porting Lewa OS to MT6577 based Ulefone Star N9776. Everything works except for FM radio... :o Added on May 06 2013 - Hmm, it seems many never follow the whole thread & begin porting using this tut... :o Read this post here & here first, rest of the procedure is same... Thanks to fellow xda members that has contributed to this thread... ;)

Another one here for Porting Master Shifu bgcngm's V970 Custom ROM to Lenovo A789... Everything is working on this one...

Recently, i get just too many PMs regarding ROM porting & i don't know everything... :laugh:

So i'm starting this thread & hopefully to get more involvement from fellow xda members to share their experiences as what are the other files needs to be patched to get it fully working...

Pls include...

1. Name of your device

2. ROM that you ported from

3. What are the things that is not working initially

4. What are the file names & location to patch it

Cheers... :cool:

-------------------------------

Where to hunt for ROMs to port... :D

anzhuodiy.com

romzj.com

dashi.com

shendu.com

-------------------------------

Added on Feb 25, 2013

Operation to Support & Reward our MTK SoC Developers

Head up to here & show your support...

-------------------------------

Added on Mar 31, 2013

- Patching MT6628 ROM to work on MT6620 & vice-versa

Thanks to kumar abhishek for letting me know that it is possible to patch MT6628 to MT6620, i found out Star N9770 which is from the same company as my Star N9776, some Chinese manage to patch it, everything works & this info found out by s_bd on china-iphone so i use that as base to find out which file is the culprit... :cowboy:

Below is what i found out, need only these few files (patch from stock to ported ROM) & everything works...

This is of course minimum patching because its from the same manufacturer... ;)

FMradio

system/etc/firmware/mt6620_patch_e3_hdr.bin

system/etc/firmware/mt6620_patch_e6_hdr.bin-> If yours is MT6628, you'll need to patch all mt6628_fm_*_*.bin too

system/etc/firmware/WMT.CFG-> This is the antenna cfg, without this, FMradio cannot receive clearly

system/lib/modules/mtk_fm_drv.ko

system/lib/libfmcust.so

Wi-Fi & BT

system/lib/modules/mtk_stp_wmt.ko

system/lib/modules/mtk_wmt_wifi.ko -> After patching, both works & can be individually switch on/ off

system/lib/libbluetooth_mtk.so

system/lib/libbluetoothem_mtk.so -> MTK Engineering will show MT6628 if not patch...

system/etc/firmware -> if yours is MT6628, you'll need to patch all WIFI_RAM_CODE_* too

GPS

system/xbin/libmnlp -> This culprit file is the GPS. Took me the longest time to find out

Found out recent for porting Lenovo s890 (MT6628 to my MT6620), some apps at system/vendor/operator/ is blocking GPS so just delete all apps & use MTK Engineering mode to confirmed it... :fingers-crossed:

build.prop

fmradio.driver.chip=1 -> if yours is MT6628 then change it to 3

mediatek.wlan.chip=MT6620 -> if yours is MT6628 then change last digit to 8

mediatek.wlan.module.postfix=_mt6620 -> if yours is MT6628 then change last digit to 8

updater-script

symlink("wlan_mt6620.ko", "/system/lib/modules/wlan.ko"); -> if yours is MT6628 then change last digit to 8

Happy Porting...

-------------------------------

Added on April 02, 2013 -

Camera patch for Lewa ROM

If your Lewa cam is not working in spite of all the known patching methods then refer to here... :cool:

For patching Lewa Lenovo A60 cam auto-focus you'll need the following below from your Stock base ROM patch to Lewa & auto-focus will work...

system/lib/libcamalgo.so

system/lib/libcameracustom.so

system/lib/libmhaldrv.so

Summary of Lewa ROM for MT65xx

Jelly Bean

MT6628 based

MT6589 SoC

LeWa_AMOI_N828_JB2

Jelly Bean

MT6628 based

MT6577 SoC

LeWa_Jiayu_G2S_JB_ROM

LeWa_Lenovo_S890_JB_ROM

LeWa_ZTE_V889S_JB_ROM

LeWa_Lenovo_P770_JB_ROM

LeWa_Huawei_U8836D

Jelly Bean

MT6620 based

LeWa_Jiayu_G3_JB_ROM

LeWa_Jiayu_G2S_JB_ROM

LeWa_Jiayu_G2L_JB_ROM

LeWa_Jiayu_G2H_JB_ROM

LeWa_ROM_DAKELE_MC001_JB

LeWa_ROM_UMI_X1_JB

LeWa_ROM_AMOI_N820_JB

LeWa_ROM_AMOI_N821_JB

MT6575

LeWa_ROM_JIAYU_G2_JB

For starter better not use Dakele, G3, G2L, G2H b'cos it includes uboot.img meant for those device & it may require much more additional patching... :cool:

ICS

MT6620 based

MT6577 SoC

LeWa_Lenovo_A789

LeWa_GLX_L100_ROM

LeWa_NEWMAN_N1_ROM

LeWa_GiONEE_GN700W_ROM

LeWa_ZOPO_ZP900_ROM

MT6575

LeWa_Lenovo_A750

LeWa_ROM_Lenovo_P700

LeWa_Konka_E900_ROM

GB

LeWa_A60_ROM

-------------------------------

Added on April 21, 2013 -

Basic Ethics

Ethical ROM Porter... :cool:

-------------------------------

Added on May 06, 2013 -

Factory ROM backup

i get too many pm, many brick their device & they didn't back up their Factory ROM first...

-------------------------------

Added on June 23, 2013 -

MT65xx Lewa OS Porting Tool

Since many are interested in porting LeWa, attach is my simple program that does everything automatically for you...

However, on the 2nd part, you'll have to identify what is not working & patch it yourself... :cowboy:

Credits to Igor Pavlov & Master Shifu Michfood...

Happy Porting LeWa ROM...

-------------------------------

Hmm, it seems many are having trouble with this LeWa Porting tool... :o

Upon checking Master Shifu Michfood's Russian thread, found out that the below must be met or this tool will fail to operate...

Requirement on your MTK devices -> Root access to ADB

The default.prop at boot.img should be as below...

ro.secure=[COLOR="Blue"][B]0[/B][/COLOR]
ro.debuggable=[COLOR="blue"][B]1[/B][/COLOR]
persist.service.adb.enable=[COLOR="blue"][B]1[/B][/COLOR]

Use Master Shifu's Repack Utils, make the changes, re-download boot.img via SPFT then only use this tool again... :cowboy:

This tool operates with your device fully booted up, not at CWM or fastboot...

Extract this tool to your Desktop otherwise disable UAC if you use this program at other folder or it will not work properly... :o

-------------------------------

Added on June 24, 2013 -

MTK FirmwareAdapter Tool

Just found out that Russian Master Shifu back37 has shared his brand new ROM porting tool here...

With this tool, ROM porting on MTK devices is a breeze but as i always says always make a backup copy first via CWM/ TWRP before starting always or you might end up here... :cool:

Added on May 5, 2014

Just found out that Master Shifu has just started his thread here . . . :good:

-------------------------------

Added on July 01, 2013 -

ANDROID_firmware_tool_v2.1 for MTK devices

This is another great app by Russian Master Shifu Michfood for modding apps, framework, deodex; great for ROM Cooker AKA the MTK Android Kitchen...

You can even use its Wireless ADB app to avoid constant USB charging that might spoil your battery in the long run...

Master Shifu told me its hard for him to maintain several threads so you gotta ask all your questions there... :cowboy:

To change the language to English refer to below...

v2.3 is a Donationware now, if you wanna try out then download this full older version here... :cowboy: if you find it useful then upgrade to V.2.3 & support Master Shifu Michfood work...

-------------------------------

Solutions link

FM radio, camera, 3G data fix - MT6577

MT6515 i9300 LeWa Port

Porting tips

How to choose which ROM

LeWa Porting tips

init.rc cam fix

Another LeWa porting tips

Wi-Fi fix

Cellular Network fix

Virtual key & porting tips

Another LeWa porting tips

Cam fix MT6589

Updater-script Wi-Fi fix

Android Kitchen to repack back boot.img

MT6589 BT fix

MT6577 vold.fstab swap

Another vold.fstab fix

bootloop fix

Another cam fix

Another cam fix

Another cam fix

LeWa lockscreen mod

Cam Mpx fix

Cam focus fix

Another LeWa lockscreen mod tips

Compass fix

Another LeWa fix

Another Android Kitchen tips

ROM porting for Alcatel MTK devices

edify_def for Android Kitchen

MIUI Roaming Fix

MT6620 to MT6628

Another Android Kitchen tips

MIUI porting tips

Another cam fix

MTK Engineering Mode

Storage FC fix

USB mount to PC fix

MT6589 audio fix (2)

MT6589 ROM Porting tips

Another cam fix

Another Android Kitchen tips

Unpack/ Repack boot.img & camera fix

Another LeWa porting tips

Another cam fix

Another porting tips

Haptic feedback fix

Another porting tips

Resize icon

Flip screen explained

Brightness fix

Another porting tips

Touch Screen problem & solution

Another porting tips

Another MIUI porting tips (2)

Another porting tips

Another Android Kitchen porting tips

Another sdcard fix

Another cam fix

Another vold.fstab fix

Another porting tips

Another cam fix

Another cam fix

Another porting tips

Button fix

Porting 4.2.2 for MT6577

Porting MT6589 to 77 (2) (3)

Phone.apk FC fix

Dialer FC fix

Another porting tips

Date & Time fix

Porting from MT6589 ROM to MT6577 with AMOI 4.2.2 base Q&A

LeWa OS5 Porting Tips

Fix sd mount in device

Another cam fix (2) (3)

Another cam fix (2)

Another cam fix tips

ROM Index for Porting

Another sdcard fix (2) (3) (4)

Porting Tools Updated Version

MT6575 audio & micro sim fix

MT6582 media player fix

Another SIM fix

Another storage fix