All Guides For MT65**-SamarV-121

Image result for mtk porting guide


[*]Normal Porting Guide For Marshmallow Base roms

Replace From Stock

/ETC

-Firmwere
-bluetooth
-mddb (If Present)
-ril
-wifi
-Fmr
-apns-conf.xml
-spn-conf.xml
-agps_profiles_conf.xml
-virtual-spn-conf-by-efgid1.xml
-virtual-spn-conf-by-efpnn.xml
-virtual-spn-conf-by-efspn.xml
-virtual-spn-conf-by-imsi.xml

/LIB
-libcameracustom.so (Fix Can't Connect)
-libdpframework.so (Fix Green Camera)
-libcam.paramsmgr.so (Fix Megapixel)
-libfeatureio.so (Fix Focus)
-libaudio.primary.mt65**.so
-libcamlgo.so
-libcamdrv.so
-libcam.exif.so
-libimagio.so
-hw/gralloc.default.so
-hw/gralloc.mt6592.so
-hw/hwcomposer.mt65**.so
-hw/lights.default.so
-hw/sensors.mt65**.so

Boot.img
Kernel
Unventd.rc(only if u r getting stuck at logo , otherwise No need)



[*]Normal Porting Guide For Lollipop Base roms

Lib

libMali.so
hwcomposer.mt65**.so
libaudio.primary.default.so
libcameracustom.so
libcamalgo.so
libcamdrv.so
libfeatureio.so

ETC
 firmware
Boot.img

Kernel
Unventd.rc(only if u r getting stuck at logo , otherwise no need)



[*]Cross/Sprout Porting Guide
MT6582-6592,MT6592-MT6582,3.4.67-3.10.xx,sprout to genericmtk,3.10.xx-3.4.67,.........................
/system
Delete These Folders From Base rom
-addon.d
-apps
-font 
-framework
-media
-priv.app
-build.prop
& Replace These Folders FromPort rom to Base rom


Bin
Merge extra bins 

    /etc/permission 
    Delete every thing from base except below two files
    handheld_core_hardware.xml
    platform.xml
    And copy all files from port to base


      /Lib
      Merge extra Libs  
      Take These Libs From Port rom and replace it to base rom's lib folder
      -libandroidserver.so
      -libanddoidruntime.so
      -libandroidfw.so
      -libwebview*
      -libjava*


      Also Take Storagelist.xml From base rom

        boot.img 
        -Use Base rom's boot
        -Just take init.environ.rc Of Port rom's boot



        [*]How to take logcat :
        Getting to the point
        1) Unpack boot.img , open default.prop
        Change ro.secure to 0 , ro.adb.secure to 0 and ro.debuggable to 1..
        2) Download adb fastboot essentials. 
        Extract it .. Open the folder. Press shift key and right click.. Open command prompt
        First use : adb devices
        Type
        Adb logcat > filename.txt
        Check lines of E\, W\, F\
        ROM will boot soon 
        3) When the phone is in bootloop:-
        As soon as adb detects the device
        This means that the logcat will be same in the file named filename. Disconnect phone after 10-12 seconds.. That much log is enough... Guys port ROMs ... Take logsIn the log ,Check the files related to the errors and fix them one by one 
        ------------------------------------Thnx Team Rampage---------------------------------------------



        Thanks:-
        Google
        XDA
        Fire855
        Yazad Madan
        Kishan P Patel


        smi-le ss