6/24/2014
[GUID E] [POR T] [ROM ] Al l About M edi atek R OM Por ti ng - xda- devel oper s 5,687,61 5 MEMBERS MEMBERS
User Name
Remember Me?
NEWS
F ORUM
WIKI
XDA TV
Forgot your password?
Type To Find Your Your Device ...
Search All Forums
> Android Development and Hacking > Hacking > Miscellaneous Android Development > Development > [GUID [GUIDE] E] [PORT] [ROM] [ROM] All About Me diatek ROM Porting Search this thread
POST REPLY
+
V IEW FIRST UNREAD
Lik e
Tw e e t
+1
Page 1 of 9
1
2
3
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting Adding Credits 31st March 2014, 05:45 PM (Last edited b y Xtreme.Ornob; 4th April 2014 at 06:51 PM.) Reason: Adding
Xtreme.Ornob
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting
*** ##TUTORIAL ...
Member - OP Thanks Meter 92
HOW to Port ROMs...
Posts: 65 Join Date: Mar 2013 Location: Chittagong MORE INFO
>
For Begineers & Advanced Users
>
>>
MOST MOS T THAN THANKE KED DI ALL-TIME
Tip us?
#1
2 1 1 1 1
W el ell. .. .. itit wo wor Xtreme.Ornob U gotta try & Xtr trem eme. e.Or Orn n Okay !! :) (qu Xtreme.Ornob Y ou ou c an an t ry ry .. .. … Xtrem treme.Or e.Orno no Y es es .. .. . Re Repl a … Xtreme.Ornob
Almost Any Device to Any Device!
ONLY FO FOR R ME MEDIAT DIATE EK SoCs In This T his Guide You'll Learn.. How to Port ROMs From the Same CPU And Also..
HOW TO PORT ROM FROM A DIFFERENT SoC!!!!! Works for-
MT6589 to MT6577 MT6582 to MT6572 XDA PORTAL POST
MT6577 to MT6575 Only ICS to ICS & JB to JB May also work with 4.1 to 4.2
Easily Func ti t o S av av One o fea tu r Op en W ak e Pos iti Impro Earlie Earl ie little litt le bi
No Need of Source Code
http://for um.xda- devel oper s.com/showthr ead.php?t= 2701283
1/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
No Need of Kernel Source No Need of **ANDROID KITCHEN
Don’t Goo l Galax Andr o – XDA Androi for the
No Need of LINUX... Requirements: * A Brain * Patience * Windows XP/7/8 * 7-Zip * Notepad++ * Bootimg Unpack/Repack Tools for Windows! * Stock ROM * And a Little Respect!! So now Lets Begin... PORTING For Same SoCs ( Ex: MT6572 to MT6572) * Replace these from your Stock ROM to the ROM u want to PORT!! Lets Call it "PORT" FILE LIST FOR REPLACING: *system/vendor *system/usr *system/lib/modules *system/lib/hw *system/lib/libncurses.so *system/etc/firmware *system/etc/vold.fstab *system/etc/vold.fstab.nand *system/etc/bluetooth For Fixing Problems... *system/etc/permissions *system/etc/security *system/etc/audio *system/etc/wifi *system/lib/drm *system/lib/egl *system/lib/soundfx * Now Replace the Stock Boot.img to Port ROM! * Now Open The Port ROM folder and go to METAINF/google/android and open updater-script in Notepad++ http://forum.xda-developers.com/showthread.php?t=2701283
2/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
* Do the same for the Stock ROM * Now In the Port ROM's Updater Script, find a line that starts with this... format("....... and only replace the mmcblk0p.. with the stock one! * Do the same for this line... mount("... Example: This is the PORT one!!! format("ext4", "EMM C", "/dev/block/mmcblk0p5", "0", "/system"); mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system"); This is the Stock one!! format("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system"); mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system"); Now just Replace the "mmcblk0p3" from STOCK to PORT!! It should look like this: format("ext4", "EMM C", "/dev/block/mmcblk0p3", "0", "/system"); mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system"); DO NOT REPLACE THE WHOLE LINE! * Now go back to the Folder of Port ROM and You'll see 2 folders & 1 file named -META-INF -system -boot.img * Now Select these three and Click Right Mouse Button and Click on 7-Zip ->> Add to Archive * Now a dialouge box should appear! * Configure the Format like This: http://forum.xda-developers.com/showthread.php?t=2701283
3/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
Archive format: ZIP Compression Level : Normal Compression M ethod: Deflate Dictoioany Size: 32k Word Size 32 * Now Start Zipping and Push the ZIP to your Memory Card * Go to Recovery >> Install ZIP & Wipe Data Finished!! Now was that so hard?? Its a Really Easy thing to d0!! Now Come to the Hard Part!! Porting From Different SoCs ( Ex: MT6582 to MT7572 ) Read this carefully & apply the way i say! * Take the ROM u want to port & name it PORT! * Take your Stock ROM & Name it Stock * Now Replace These files from Stock to PORT--
*system/vendor *system/usr *system/lib/modules *system/lib/hw *system/lib/libncurses.so *system/etc/firmware *system/etc/vold.fstab *system/etc/vold.fstab.nand *system/etc/bluetooth * Now Open build.prop in notepad++ & Search for this line ro.mediatek.platform=MT65xx Now Replace this (MT65xx) with your CPU!! For Example ro.mediatek.platform=MT6572
http://forum.xda-developers.com/showthread.php?t=2701283
4/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
* Now Go To META-INF/google/android and open updaterscript in notepad++ * Add this line between the lines of "set_perm" set_perm(0, 0, 0644, "/system/vendor/lib/hw/gralloc.mt65xx.so"); [Replace the mt65xx with your cpu] Example: set_perm(0, 0, 0644, "/system/vendor/lib/hw/gralloc.mt6572.so"); * Now Go back to the Rom folder and Take the boot.img and decompile it with any bootimg-unpack tool! * Now delete the zimage and rename boot.img-ramdisk to PORT-Ramdisk * Now Do the Same for Stock boot.img and open the folder named PORT-ramdisk and copy all the files from PORTramdisk to boot.img-ramdisk of your Stock boot.img * Now Go to boot.img-ramdisk and open init.rc * Now find these lines and replace with your cpu #Create Chip Property on early_property:ro.hardware=mt6582 setprop ro.mtk.hardware mt6589 on early_property:ro.hardware=mt6589 setprop ro.mtk.hardware mt6589
example : #Create Chip Property on early_property:ro.hardware=mt6582 setprop ro.mtk.hardware mt6572 on early_property:ro.hardware=mt6589 setprop ro.mtk.hardware mt6572
* Now Compile your New boot.img and Pack your New ROM and Flash!! Cheers!!!! http://forum.xda-developers.com/showthread.php?t=2701283
5/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
Porting Lewa OS5 ROM: * Replace These files from Stock to LeWa OS5 ROM *system/vendor *system/usr *system/lib/modules *system/lib/hw *system/etc/firmware *system/etc/vold.fstab *system/etc/vold.fstab.nand *system/etc/bluetooth * Replace Stock boot.img to Lewa OS5 ROM * Unpack boot.img * Open init.rc * Find these lines on early_property:ro.build.type=user write /proc/bootprof "INIT: user build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatek-op.jar on early_property:ro.build.type=userdebug write /proc/bootprof "INIT: userdebug build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatek-op.jar
on early_property:ro.build.type=e ng write /proc/bootprof "INIT: eng build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatekop.jar:/system/framework/emma.jar
* Now Add this line in the end of 1t and 3rd line http://forum.xda-developers.com/showthread.php?t=2701283
6/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
:/system/framework/lewa-framework.jar Example: on early_property:ro.build.type=user write /proc/bootprof "INIT: user build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatekop.jar:/system/framework/lewa-framework.jar on early_property:ro.build.type=userdebug write /proc/bootprof "INIT: userdebug build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatek-op.jar
on early_property:ro.build.type=e ng write /proc/bootprof "INIT: eng build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatekop.jar:/system/framework/emma.jar:/system/framework/lewa-framework.jar
* Now Compile the new boot.img and Repack your New Lewa OS5 ROM Porting MiUI ROM Replace These files from Stock to MiUI ROM *system/vendor *system/usr *system/lib/modules *system/lib/hw *system/etc/firmware *system/etc/vold.fstab *system/etc/vold.fstab.nand *system/etc/bluetooth * Replace Stock boot.img to Lewa OS5 ROM
http://forum.xda-developers.com/showthread.php?t=2701283
7/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
* Unpack boot.img * Open init.rc * Find these lines on early_property:ro.build.type=user write /proc/bootprof "INIT: user build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatek-op.jar on early_property:ro.build.type=userdebug write /proc/bootprof "INIT: userdebug build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatek-op.jar
on early_property:ro.build.type=e ng write /proc/bootprof "INIT: eng build setting" export BOOTCLASSPATH /system/framework/core.jar:/system /framework/core junit.jar:/syste m/framew ork/bouncycastle.jar: /syste m/framew ork/ext.jar:/system /framework/frame w common.jar:/system/framework/mmscommon.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framew xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatekframework.jar:/system/framework/secondaryframework.jar:/system/framework/CustomProperties.jar:/system/framework/mediatektelephony-common.jar:/system/framework/mediatekop.jar:/system/framework/emma.jar
* Do the Same as Lewa and add this line in the end of 1st and 3rd line. :/system/framework/miui-framework.jar * Compile the New Boot.img and Repack your new ROM and FLash!! Cheers!! Enjoy your New ROM and Give Credits to me for if I Helped you!
For Advanced Users: PORTING FIX: Framework: http://forum.xda-developers.com/showthread.php?t=2701283
8/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
* decompile framework.jar * Go to \smali\com\mediatek * Replace All Files from STOCK to this Folder * Now go to \smali\com\android\server * Replace All Files from STOCK to this Folder * Compile framework.jar and Push to Device! * This Should FIX Bootloop, Mms.apk, Phone.apk, Settings.apk, Contacts.apk Force Close * Fixing Other Problems: Files related to Specific hardware: * Replace if Not Working!! * Camrea: \system\lib\libcamalgo.so \system\lib\libmhaldrv.so \system\lib\libcamera_client.so \system\lib\libcameracustom.so \system\lib\libcameraprofile.so \system\lib\libcameraservice.so * GPS: /system/xbin/libmnlp * Bluetooth & Wifi: /system/lib/libbluetooth_mtk.so /system/lib/libbluetoothem_mtk.so * Radio:
\system\lib\libaudio.a2dp.default.so \system\lib\libaudio.primary.default.so \system\lib\libaudiocompensationfilter.so \system\lib\libaudiocustparam.so http://forum.xda-developers.com/showthread.php?t=2701283
9/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
\system\lib\libaudioeffect_jni.so \system\lib\libaudioflinger.so \system\lib\libaudiosetting.so \system\lib\libfmar1000.so \system\lib\libfmcust.so \system\lib\libfmjni.so \system\lib\libfmmt6616.so \system\lib\libfmmt6620.so \system\lib\libfmmt6626.so \system\lib\libfmmt6628.so
* For Fixing Wifi & FM-Radio do this! (NOT NEEDED IN MT6572) fmradio.driver.chip=1 (Change it to 3 if yours is MT6628) mediatek.wlan.chip=MT6620 (Replace mediatek.wlan.chip=MT6620 to your WLAM Chip Type Ex: mediatek.wlan.chip=MT6628 for MT6628) mediatek.wlan.module.postfix=_mt6620 (Replace mediatek.wlan.module.postfix=_mt6620 to your WLAM Chip Type Ex: mediatek.wlan.module.postfix=_mt6628 for MT6628) * Now open updater-script and Find this line or ADD a New one(If Not Found)!! symlink("wlan_mt6620.ko", "/system/lib/modules/wlan.ko") (Replace wlan_mt6620.ko to your WLAM Chip Type Ex: wlan_mt6628.ko for MT6628)
It Took Me 2Days & 5 Hours to Collect Data & Write this Thing! I didn't Eat or Drink Water Properly,I Didn't Sleep Properly, I Created This just for you all! So That No ONE Ever Says Modontek Again! Its Against Humanity! Please Value my Work & Do Not Blame me if it Doesnt Work! I Work Day & Night to Learn More & More! http://forum.xda-developers.com/showthread.php?t=2701283
10/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
I Respect All the Developers & Modders of Android But Some Jerks Just Dont know How to Behave like a Human! Some Developers Behave like they are the BEST! LOL! But It's NOT TRUE! We Can't Be the Best! We Are All the Same! We all are the Students of XDA-University! We all use Others Work! Why Not Work together? Why Not Develop our Knowledge More & More!?? I Don't think I Own any Respect from anyone! But I Think I Own Respect for my Works & Contributions to Andoid Open Source Project! I Believe in Humanity! Please Do NOT Copy This and Take Credits! If This Was Helpful to you in Any Way... Just Mention my Name in your ROM and Give me Some Credits!
Written by Xtreme Ornob Official Developer of XVipre™ Coming Soon: Creating Your Own ROMs, I ntegrating ROM Info & Developer Info into ROM Sorry for my BAD ENGLISH!! :P :P Like my Page: XVipre ROM Officially Released on Facebook Group WALTON Primo F2 Solutions & Devs Thanks to @yuweng for The Tutorial on MTK ROM Porting Some Points are copied from his post! Group Links:
REPLY The Following 67 Users Say Thank You to Xtreme.Ornob For This Useful Post: [ Click to Expand ]
DNRDustin
1st April 2014, 01:42 AM
#2
First of all, thanks for the great guide! Im on an Alcatel One Touch Fierce OT-7024w MT6589 metropcs. Will this work across chip variations(6589m, 6589t)? Does this work from one phone with the same chipset as another(evolve to fierce)? Is a locked bootloader a problem for this process.
http://forum.xda-developers.com/showthread.php?t=2701283
11/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers
Member Thanks Meter 6 Posts: 37 Join Date: Apr 2011 Location: Sonoma County, Ca MORE INFO
> REPLY
vneogi199
#3
1st April 2014, 12:22 PM
Great stuff. Very helpful.[emoji1] Sent from my C2305 using Tapatalk
Senior Member Thanks Meter 223 Posts: 124 Join Date: Dec 2013 MORE INFO
>
My Proj ects: Note 3 ROM for CANVAS 2 PLUS Pure Xperia ROM for CANVAS 2 PLUS Pure Xperia Z2 style ROM for CANVAS 2 PLUS
REPLY
kuldeepraj
#4
3rd April 2014, 0 3:08 AM
Nice guide tried three roms for port all booted but u should add remedy for different problems like display upside down WiFi/blutooth not switching on audio not coming out network problem etc. Sent from my A114 using Tapatalk Senior Member Thanks Meter 60 Posts: 261 Join Date: Mar 2013 Location: indore MORE INFO
> REPLY
kasuyin
3rd April 2014, 0 4:22 AM
#5
gracias he portado Xolo a 600 - i9091 clon pero aparece el logo desaparece nada mas. : Crying:
Junior Member Thanks Meter 2
perdon por mi ingles
Posts: 20 Join Date: Nov 2011
REPLY
iZLeeP
3rd April 2014, 0 7:32 AM
#6
Thanks! You should re-arrange the OP so it is easier to read and follow.
Senior Member Thanks Meter 92 Posts: 336 Join Date: Jan 2014 Location: Manila MORE INFO
>
http://forum.xda-developers.com/showthread.php?t=2701283
12/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers REPLY
AshuGite
#7
3rd April 2014, 0 8:58 AM
very well done.. good information.. People Remember You Only For The Problems You Solved And The Problems You Created...... Some Developments from Me-Booster Script Beta 1 (Super Performer) Gionee P2 Pure AOSP Gionee P2 Stock Rom
Member Thanks Meter 81 Posts: 93 Join Date: Oct 2012 Location: Off the Edge!!! MORE INFO
Some Other Works Visit Here
> REPLY
Xtreme.Ornob
#8
4th April 2014, 06:28 PM
Yes it will work! but i dont know about alcatel as i t has a " custpack" partition! well good luck! Quote: Member - OP
Originally Post ed by DNRDustin
Thanks Meter 92
First of all, thanks for the great guide!
Posts: 65 Join Date: Mar 2013 Location: Chittagong
Im on an Alcatel One Touch Fierce OT-7024w MT6589 metropcs. Will this work across chip variations(6589m, 6589t)? Does this work from one phone with the same chipset as another(evolve to fierce)? Is a lock ed bootloader a problem for this process.
MORE INFO
> REPLY
Xtreme.Ornob
#9
4th April 2014, 06:30 PM
Glad u like it! Quote: Member - OP
Originally Post ed by vneogi199
Thanks Meter 92
Great s tuff. Very helpful.[emoji1]
Posts: 65 Join Date: Mar 2013 Location: Chittagong
Sent from my C2305 using Tapatalk
MORE INFO
>
REPLY
Xtreme.Ornob
#10
4th April 2014, 06:33 PM
Well glad it worked!
and i already added the fix problems section! and i dont think anyone will face the "upside down
display" problem! :P well thanks for feedback! Quote: Member - OP
Originally Post ed by kuldeepraj
Thanks Meter 92
Nice guide tried three roms for port all booted but u should add remedy for different problems like display upside down WiFi/b lutooth not switching on audio not c oming out network problem etc .
Posts: 65 Join Date: Mar 2013 Location: Chittagong MORE INFO
Sent from my A114 using Tapatalk
> REPLY
TAGS guide, mediatek, mtk, porting, rom
1
2
3
>
>>
Page 1 of 9
POST REPLY
+
SUBSCRIBE
VIEW FIRST UNREAD
Search this t hread
http://forum.xda-developers.com/showthread.php?t=2701283
13/14
6/24/2014
[GUIDE] [PORT] [ROM] All About Mediatek ROM Porting - xda-developers > Android Development and Hacking > Miscellaneous Android Development > [GUIDE] [PORT] [ROM] All About Media tek ROM Porting « Previous Thread | Next Thread »
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who w ant to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a develop er?
More Info: Contact | Rules | Change Log | Suggest Content | Privacy Policy | XDA App Copyright© xda-developers. Powered by Searchlight © 2014 Axivo Inc. Hosted by Leaseweb.
-- XDA 2013 Beta
http://forum.xda-developers.com/showthread.php?t=2701283
14/14