Cross Porting (MTK) Most of the the 32bit ARM7 soc of MTK's building Files are 60-70% same.. So yup its possible to port from diff Soc
Its Works for 6592-6582-6572-6589-6577-6575(not tried) and vise versa…
NB: Must be same kernel(SDK) (4.2.x-4.2.x), (4.4.x-4.4.x), (5.0.x-5.0.x)
1. Extract stock & port in separate folders
2. Delete App,fonts, framwork, priv app, media, res, build.prop from stock..
3. Now copy those foleders from port rom
4. Open port bin folder and copy factory, installd, servicemanager, now paste replace in your stock rom
5. Now copy all files from port's bin and paste in Sock's bin & skip all existing.. So that it will only add extras of your port rom
6. Now open lib foler of your port rom..
Replace andoidfw, androidservers, androiruntime, libart, artcompiler,art dissemler, blutooth_jni, fmjni, cmtraces, cm glesv1, cmgles v2, libdvm, libmedia, libmedia_jni, jniinputIME, hwm, hui, javacore, javacrypto, webap, webviewchromium, webrtc_audio_preprocessing, wechromium_plat_support in ur stock lib..
7. Now copy all files from lib and replace in stock lib by skipping existing. Same as bin you did before.
8. Similarly now copy and paste all files by skipking exting to stock from port's etc , etc/permission, lib/hw, vendor, xbin.
9. Edit build.prop
Change rotation & density as per you device
Change chipset acc to Your's MT65xx
Then wlan and consys=65xx
Now zip and flash enjoy..
N.B. cross porting comes with limitation and bugs.. But 92-82 can be fully bugless ,,
I will write about bug fixing in my next TUT.
copy and replace this file from stock to port
\bin\atcid
\bin\audiocmdservice_atci
\bin\drvbd
\bin\ipod
\bin\nvram_agent_binder
\bin\nvram_daemon
\bin\pq
\bin\sdcard
\bin\vold
\etc\bluetooth
\etc\firmware
\etc\wifi
\etc\apns-conf.xml
\etc\selective-spn-conf.xml
\etc\spn-conf.xml
\etc\virtual-spn-conf-by-efpnn.xml
\etc\virtual-spn-conf-by-efspn.xml
\etc\virtual-spn-conf-by-imsi.xml
\etc\permissions\handheld_core_hardware.xml
\etc\permissions\platform.xml
\lib\egl
\lib\hw
\lib\lib3a.so
\lib\libaal.so
\lib\libaal_cust.so
\lib\libaudio-resampler.so
\lib\libaudio.primary.default.so
\lib\libaudiocompensationfilter.so
\lib\libaudiocomponentengine.so
\lib\libaudiocustparam.so
\lib\libaudiodcrflt.so
\lib\libaudioeffect_jni.so
\lib\libaudioflinger.so
\lib\libaudiosetting.so
\lib\libaudioutils.so
\lib\libbessound_hd_mtk.so
\lib\libbessound_mtk.so
\lib\libbluetoothem_mtk.so
\lib\libBnMtkCodec.so
\lib\libbtcusttable.so
\lib\libbtsession.so
\lib\libcamalgo.so
\lib\libcamdrv.so
\lib\libcameracustom.so
\lib\libcameraservice.so
\lib\libcustom_nvram.so
\lib\libdpframework.so
\lib\libfeatureio.so
\lib\libft.so
\lib\libhardware_legacy.so
\lib\libimageio.so
\lib\libimageio_plat_drv.so
\lib\libinput.so
\lib\libinputservice.so
\lib\libJpgDecPipe.so
\lib\libMali.so
\lib\libmnl.so
\lib\libmtk_drvb.so
\lib\libnvram.so
\lib\librilmtk.so
\lib\librilmtkmd2.so
\lib\libRSCpuRef.so
\lib\libRSDriver.so
\lib\libsensorservice.so
\lib\libshowlogo.so
\lib\libspeech_enh_lib.so
\lib\libsync.so
\lib\libvcodecdrv.so
\lib\libvcodec_oal.so
\lib\libvcodec_utility.so
\lib\mtk-ril.so
\lib\mtk-rilmd2.so
\vendor\lib
2. unpack boot.img then replace your devices kernel.
3. replace all words in build.prop 6592 to 6582 To the point!
When you found a bug when porting a ROMs, you can try to fix using this methods!
Just replace it from Stock ROM to your Custom ROMs.
~~For MTK~~
Bootloop when porting
*libandroid_runtime.so
*libandroid_servers.so
*libmedia_jni.so
*Repack boot.image
RadioFM
\system\bin\fmradio
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
Sensors
/system/bin/akmd*
/system/lib/libsensors.so
/system/lib/libms3c_yamaha.so
/system/etc/firmware (folder)
/system/bin/servicemanager
Bluetooth\Wifi not turning On\Off
\system\lib\module\mtk_stp_wmt
Bluetooth
/system/bin/bd_prov
/system/bin/uim*
/system/bin/hcid
/system/bin/bluetooth*
/system/bin/hciattach
/system/bin/sdptool
/system/xbin/hciconfig
/system/bin/brcm_patchram_plus
/system/lib/libbluetooth_mtk.so
/system/lib/libbluetoothem_mtk.so
Wifi
/system/bin/netcfg
/system/bin/dhcpcd
/system/bin/ifconfig
/system/bin/hostap
/system/bin/hostapd
/system/bin/hostapd_bin
/system/bin/pcscd
/system/bin/wlan*
/system/bin/wpa*
/system/bin/netd -> Fix wifi hotspot
/system/lib/libhardwarelegacy.so -> Fix wifi /system/lib/modules/mtk_stp_wmt.ko/system/lib/modules/mtk_wmt_wifi.ko
/system/etc/wifi (folder)
/system/etc/firmware (folder)
Camera
/system/etc/media_profiles.xml
/system/lib/libcamera.so
/system/lib/liboemcamera.so
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so\system\lib\libcamer aprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission\android.hardware.camera.fro nt.xml
\system\lib\libOmx*.so ->fix camcoder
SD card/Memory
/system/bin/vold
\system\etc\vold.fstab -> edit file for swap internal and external
\system\etc\vold.fstab.nand
GPS
\system\xbin\libmnlp
/system/etc/gps.conf
Touch Screen(Haptic)
/system/usr
/system/usr\keylayout\Generic.kl ->fix HomeKey
Sim1/2 (RIL)
\system\etc\firmware\modem.img
\system\etc\permission (RIL)
/system/bin/stmd
/system/bin/rild*
/system/etc/rril
Audio/Sound
\system\lib\libaudio* .so
Ads
/system/etc/hosts ->replace with new files or use tweak.
FIX BUGS LINK
No comments:
Post a Comment