1. Normal Porting- AOSP, Stock Based, Customed/Modded Stock, Customed/Modded AOSP


2. Cyanogenmod 12 - 5.0.2


3. Cyanogenmod 12.1 - 5.1.1


4. MiUi 7- KK


5. Cross porting MT6582-MT6592 (vice-versa) AOSP, Stock Based, AOSP, Stock Based, Customed/Modded Stock, Customed/Modded AOSP


Normal Porting - MT6582/MT6592
Stock - Port
Files To Port

system/bin
                file: pq, vold, sdcard (optional)
system/etc:
                file: apns-conf.xml, custom.conf (port file - edit lines)
                folder: bluetooth, firmware, wifi, mddb (optional)
system/lib:
                file:-     libcamalgo.so, libcamdrv.so, libcameracustom.so, libdpframework.so,
                           libEGL.so, libMali.so, libsensorservice.so, libsync.so, libvcodecdrv.so
                           (note: all libaudio files only for fixing audio)
                folder: egl (libEGL_mali.so, libGLES_android.so)
                          hw (copy all file from stock to port - replace existing)
                          modules (copy all file from stock to port - replace existing)
system/vendor:
                replace from stock to port - replace existing and leave not on stock

system/xbin:
                file: libmnlp_mt6592, mnld, (and other rooting files needed)
               

Cyanogenmod 12

Copy stock to port (boot.img)
stock/zImage and stock/ramdisk/ueventd.rc

system/etc:
                folder: firmware (modem_1_wg_n.img or whole firmware folder)
system/lib:
                file: libMali.so,libaudio.primary.default.so,libcamdrv.so,libcamalgo.so,libcameracustom.so
                folder: hw (gralloc.default.so, gralloc.mt6592.so, hwcomposer.mt6592.so)

Cyanogenmod 12.1

Copy stock to port (boot.img)
stock/zImage and stock/ramdisk/ueventd.rc

system/bin: (boot_logo_updater, ipod, logwrapper, netd)
system/etc:
                folder: firmware (modem_1_wg_n.img or whole firmware folder)
                hostapd folder, permissions (android.hardware.camera.xml, android.hardware.microphone.xml)
system/lib:
                hw folder: camera.default.so
                file: libfeatureio.so, libfeatureio.so, libimageio_plat_drv.so, libipod.so, libMali.so, libshowlogo.so

Porting MIUI 7

System Files (Patch Files)

system/bin (mtkbt, vold, sdcard(optional))

system/etc
                folder: firmware and mddb

system/lib
                folder: hw
                files:   libcameracustom.so
                           libcameraservice.so
                           libfeatureio.so
                           libMali.so
                           libshowlogo.so
                           libaudio*.so (optional if bug on sound)

system/vendor: copy whole folder to port, replace if existing

system/xbin: libmnlp_mt6592, mnld


Boot.img porting

-copy stock kernel to port boot.img
-compare and edit port init.rc w/ stock init.rc
-copy sepolicy and ueventd.rc from stock to port

Crossporting MT6582 - MT6592 (vice-versa)

stock to port rom

boot.img:
copy ramdisk/init.rc and init.environ.rc bootclash lines from stock to port

system/bin
                copy all file and replace existing

system/etc
                delete bluetooth and mddb folder from port
                copy bluetooth and mddb folder from stock to port
                copy firmware folder from stock to port - replace existing files
                copy permissions folder (platform.xml, handheld_core_hardware.xml) optional/bug fix
                edit port custom.conf

system/lib
                must delete files from stock before copy paste to port
                libandroid.so,libandroid_runtime.so,libandroid_servers.so
                libandroidfw.so,libjavacore.so,libjavacrypto.so
                libwebrtc_audio_preprocessing.so,libwebviewchromium.so,libwebviewchromium_plat_support.so
                *now copy whole lib folder to port libfolder and replace existing file consider hw/modules

system/vendor
                copy stock vendor to port - replace existing

system/xbin
                delete libmnlp_mt6582 from port
                copy libmnlp_mt6592, mnld from stock to port
               
build.prop:
replace all mt6582 lines to mt6592 vice-versa
replace lines if xport mt6582 - mt6592
mediatek.wlan.chip=MTK_CONNSYS_MT6592

mediatek.wlan.module.postfix=_mtk_connsys_mt6592


credits to Me, Bhadmus Olaide, and. You all.


For questions, pls use the comment box.



Post a Comment

 
Top