|SOLVED| Fix bugs in Custom ROMs when porting for MT65XX Device

Fix bugs in Custom ROMs when porting for MT65XX (Last Updated On: August 13, 2018)


Lets learn how to Fix bugs in Custom ROMs when porting for MT65XX Device. Most of the custom ROMs are not stable. When you are porting any custom ROM for your mediatek device then its obvious that you will get few minor or major bugs issue.

Most of th bugs can be fixed and there is 100{a6a2ccbe3a1bde101eb0dc81a08c939046e090b2ec3d1cbbe9428f5f624854cb} chance that the custom ROM will work perfectly on your device being totally bugless. While there are also few bugs which are almost impossible to get fixed. So in this article we will discuss how to fix bugs in Custom ROMs for kitkat or lollipop version of any mediatek devices.

Fix bugs in Custom ROMs when porting for MT65XX Device

When you find bugs in custom ROM while porting for your mediatek devices like MT6592, MT6582, MT6735, MT6582 or any other mediatek devices, i.e MT6xxx, then you can apply these fix to your custom ROM. Just you need is extracted system.img file of your official stock ROM and sytem folder of custom ROM that you are going to fix.

Just replace these files from stock ROM to Custom ROM to the same location as mentioned here.

WARNING: Do not replace any file unnecessarily, because it may give rise to new bugs in place of solving it. Always be specific!

1. Audio/Sound


(If above doesn’t work replace all files starting with libaudio.xxxx in System/lib/)
(if this above cause bootloop replace only libaudio.a2dp.default.so

2. Ads


->replace with new files or use tweak.

3. Bluetooth\Wifi not turning On\Off


4. Bluetooth


5. Bootloop when porting


*Repack boot.image

6. Black Screen After Logo


7. Camera

\system\lib\libcameracustom.so\system\lib\libcamer aprofile.so
\system\lib\libmhal.so\system\lib\libmhalcontent.s o
\system\etc\permission\android.hardware.camera.fro nt.xml
\system\lib\libOmx*.so   -> fix camcoder

#Camera not working or forced closed

Replace all files from \system\lib\ starting with libcam*.so

#Camera showing wrong model in pic property

Change model in build.prop

#If still not working then replace


8. Flipped or Inverted Touch Screen


9. GPS


10. LED Notification Not Working


11. Network/3G Network

\system\etc\ virtual-spn-conf-by-IMSli

12. Radio/FM


13. Rescent Menu Not Working


14. Screen Resoultion Problem
Open build.prop and add following lines to it.


(240 is just an example your dp may be different)

15. Sensors

/system/etc/firmware (folder)

16. Storage/Memory
#For 4.2.2

\system\etc\vold.fstab -> edit file for swap internal and external

#For 4.4.x and 5.1.1

(If still not working replace fstab.mt6xx from boot.img and repack)

#If storage is not mounting then
Decompile framework-res.apk or simply open it with win.rar and replace the following


17. Sim1/2 (RIL)

\system\etc\permission (RIL)

18. Touch Screen(Haptic)

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

19. Video Pixelation


20. Wifi

/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)

21. Power & Volume Key Not Working

Replace Generic.kl

If still does not work

Replace whole usr folder

22. Navigation Bar Not Present
Open build.prop & add a line
To enable navigation bar


To disable navigation bar


23. 2G/3G Toggle

mddb folder if

24. Camera Not Connected/Green


25. To fix Compass

Replace libsensorservice.so from /lib

26. Flashlight Not Working

Replace libfeatureio.so from /lib

27. Wallpaper giving Black Screen/not working

Replace libjppeg.so from /system/lib/

So this is how you can Fix bugs in Custom ROMs when porting for MT65XX Device. Best of luck in Advance and Happy Porting.
Comment below if you need fix for any other bugs.

If you successfully port your ROM, always give credits to the Port and Base Rom developers. Also give credits to the people from whom you took help. Always be generous in giving credits because it will not take anything from you, on the other hand it will increase your reputation and strengthen people’s faith in your work.

Recommended For You


    1. which rom you are using. If you are trying to fix audio mic calls for Lineage OS or or any nougat roms then sim 2 call mic issue wnt be solved. becuase its the source bug

  1. the camera is with a green filter, I can not fix it, it is not totally green, you know?

    porting the camera it turns totally green but putting only the libdpframework.so, it gets a green filter, does anyone know how to fix it?

    sorry my English..

Ask a Question ?