Rom Porting-FIXING BUGS











Hello Frnds,this is my second guidein category romporting.

this guide is based on fixing bugs after porting a rom.

contain fixes of bluetooth, camera, sdcard, radio, No Signal and many more issues in any Custom ROM for MT65xx\67xx device. This is universal guide and will work on all MT65xx\mt67xx devices.



Replace From Stock To Port :



To fix Radio and No Signal :


- \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


To fix Bluetooth :


- \system\lib\libbluetooth_mtk.so

- \system\lib\libbluetoothem_mtk.so


To fix Wifi :


- \system\lib\modules\mtk_stp_wmt.ko


- \system\lib\modules\mtk_wmt_wifi.ko


To fix Storage :
For 4.2.2


- \system\etc\vold.fstab


- \system\etc\vold.fstab.nand

For 4.4.x and 5.1.1


- /system/bin/vold

- /system/bin/pq

- decompile framework-res.apk of both stock and port and replace storage_list.xml and recompile


To Fix Camera :


- \system\lib\hw\camera.default.so

- \system\lib\libcamera_client.so

- \system\lib\libcameracustom.so

- \system\lib\libcameraprofile.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.front.xml

- \system\etc\permission\android.hardware.camera.xml


To Fix Bootloop :


- libandroid_runtime.so

- libandroid_servers.so

- libmedia_jni.so

- Repack boot.image


Fix Sensors :


- /system/bin/akmd*

- /system/lib/libsensors- so

- /system/lib/libms3c_yamaha- so

- /system/etc/firmware (folder)

- /system/bin/servicemanager


To Fix GPS :


- /system/xbin/ibmnlp

- /system/etc/gps.conf


Fix Touchscreen :


- /system/usr


- /system/usr\keylayout\Generic.kl ->fix HomeKey


Fix Sound/Audio :

First Replace :

- \system\lib\libaudio.primary.default.so

If it doesn't work then replace all :

- \system\lib\libaudio* .so



So, this is it. I hope you were able to fix issues and bugs in your Custom ROM for MTK. If you have any more bug fixes then please comment them below.


Credits :


- Ajit Guraya
- jawaad_s
- Scrack