Hi everyone in this tutorial i’m going to show you How To Fix Bugs In A Ported Custom Rom.The following guide is for people who know all the basics of porting and have successfully booted the rom.Well everyone can port the rom and boot it but the real game starts when fixing the bugs that occur during porting.In this tutorial im going to cover all the files that are need to be replaced from stock rom to port rom,After this im sure that 80% of the bugs will be fixed but you have to keep in mind that some of the bugs are device specific and bugs these will be fixed by your own research,You have to work hard to get a result,But im sure every bug that encounter for you can be fixed by this tutorial.So lets get started.
The following files should be replaced from Stock Rom to Port Rom to fix the Bugs :
FOR LOLLIPOP ROM’S
FM Radio :
- systemlib & lib64libfmcust.so
- systemlib & lib64libfmmt6620.so
- systemlib & lib64libfmmt6627.so
- systemlib & lib64libfmmt6628.so
- systemlib & lib64libfmmt6630.so
Sensors :
- /system/bin/akmd*
- /system/bin/sensorservice
- /system/lib & lib64/libsensorservice.so
- /system/lib & lib64/libem_sensor_jni.so
Bluetooth :
- /system/lib & lib64/hw/bluetooth.default.so
- /system/lib & lib64/libbluetooth_mtk.so
- /system/lib & lib64/libbluetoothem_mtk.so
- /system/vendor/lib/hw/audio.a2dp.blueangel.so
- /system/vendor/lib/hw/bluetooth.blueangel.so
- /system/etc/bluetooth (folder)
WIFI :
- /system/bin/netcfg
- /system/bin/dhcpcd
- /system/bin/hostapd
- /system/bin/hostapd_cli
- /system/bin/wlan*
- /system/bin/wpa*
- /system/bin/netd -> Fix wifi hotspot
- /system/lib & lib64/libhardware_legacy.so
- /system/etc/firmware (folder)
Camera :
- /system/etc/media_codecs.xml
- /system/etc/permissions/media_codecs.xml
- /system/lib & lib64/hw/camera.mt6735.so
- /system/lib & lib64/lib3a.so
- /system/lib & lib64/liba3m.so
- /system/lib & lib64/libaudioflinger.so
- systemlib & lib64libc.so
- system/lib & lib64libcamalgo.so
- system/lib & lib64libcameracustom.so
- systemlib & lib64libcam.camadapter.so
- systemlib & lib64libcam.camnode.so
- systemlib & lib64libcam.client.so
- systemlib & lib64libmhal.so
- systemlib & lib64libcam.halsensor.so
- systemlib & lib64libmhaldrv.so
- systemlib & lib64libcam.iopipe.so
- systemlib & lib64libcam.metadataprovider.so
- systemlib & lib64libcam.paramsmgr.so
- systemlib & lib64libcam.sdkclient.so
- systemlib & lib64libdpframework.so
- systemlib & lib64libexif.so
- systemlib & lib64libfeatureio.so
- systemlib & lib64libja3m.so
- systemlib & lib64libgui.so
- systemlib & lib64libvcodecdrv.so
- systemlib & lib64libOmx*.so ->fix camcoder
Camera Focus :
- /system/lib/libcameraservice.so
- /system/lib/libfeatureio.so
SD Card/Memory :
- /systemetcrecovery.fstab -> edit file for swap internal and external
- /system/bin/vold
- if still not fixed
- /system/bin/ext4_resize
- /system/bin/make_ext4fs
- /system/bin/memsicd
- /system/bin/memsicd3416x
- /system/bin/mke2fs
- /system/bin/sdcard
- /system/bin/sdiotool
- /system/bin/resize2fs
GPS :
- /systemxbinmnld
- /system/etc/gps.conf
- /system/etc/agps_profiles_conf2.xml
Touch Screen(Haptic) :
- /system/usr
- /system/usrkeylayoutGeneric.kl ->fix HomeKey
Sim 1/2 – RIL :
- /systemetcfirmware (folder)
- /system/bin/mtkrild
- /system/bin/mtkrildmd2
- systemlib-lib64mtk-ril.so
- systemlib-lib64mtk-rilmd2.so
Audio/Sound :
- systemlib-lib64libaudio* .so
- systemlib-lib64hwaudio.primary.default.so
- systemlib-lib64hwaudio.primary.mt6735.so
- systemlib-lib64/libcustom_nvram.so
- systembinaudiocmdservice_atci
- systembinaudiotest
Some Other :
- systemlib-lib64libhardware_legacy –> Fix Vibration
- systemliblibshowlogo.so –> Fix offline charging
FOR MARSHMALLOW ROM’S
Fix Offline Charging/Lib :
- libshowlogo.so
Fingerprint Sensor/Bin :
- fingerprintd
- gx_fpd
- libfp_client.so – lib64 folder
- libfpalgorithm.so – lib64 folder
- libfphal.so – lib64 folder
- libfpservice.so – lib64 folder
- fingerprint.default.so -lib64/HW
Fix Sensors/Bin :
- geomagneticd
- lsm303md
- mc6420d
- msensord
- orientationd
- sensorservice
- libsensorservice.so – lib and lib64
Fix Camera/Lib :
- lib3a.so
- lib3a_sample.so
- liba3m.so
- libacdk.so
- libc.so
- libcam.camadapter.so
- libcam.camnode.so
- libcam.camshot.so
- libcam.client.so
- libcam.device1.so
- libcam.device3.so
- libcam.exif.so
- libcam.exif.v3.so
- libcam.hal3a.v3.dng.so
- libcam.hal3a.v3.so
- libcam.halsensor.so
- libcam.iopipe.so
- libcam.jni.lomohaljni.so
- libcam.metadata.so
- libcam.metadataprovider.so
- libcam.paramsmgr.so
- libcam.sdkclient.so
- libcam.utils.cpuctrl.so
- libcam.utils.sensorlistener.so
- libcam.utils.so
- libcam_hwutils.so
- libcam_mmp.so
- libcam_platform.so
- libcam_utils.so
- libcam1_utils.so
- libcam3_app.so
- libcam3_hwnode.so
- libcam3_hwpipeline.so
- libcam3_pipeline.so
- libcam3_utils.so
- libcamalgo.so
- libcamdrv.so
- libcamera_client.so
- libcamera_metadata.so
- libcameracustom.so
- libcameraservice.so
- libdpframework.so
- libdrmframework.so
- libdrmframework_jni.so
- libexif.so
- libfeatureio.cfb.so
- libfeatureio.featurefactory.so
- libfeatureio.so
- libfeatureiodrv.so
- libft2.so
- libgui.so
- libgui_ext.so
- libh264enc_sa.ca7.so
- libh264enc_sb.ca7.so
- libHEVCdec_sa.ca7.android.so
- libimageio.so
- libimageio_plat_drv.so
- libja3m.so
- libjni_eglfence.so
- libjni_filtershow_filters.so
- libjni_jpegstream.so
- libjni_slow_motion.so
- libjnigraphics.so
- libjpeg.so
- libJpgDecPipe.so
- libJpgEncPipe.so
- libjtranscode.so
- libm.so
- libm4u.so
- libmhalImageCodec.so
- libmp4enc_sa.ca7.so
- libmp4enc_xa.ca7.so
- libmsbc_mtk.so
- libmtk_vt_wrapper.so
- libmtkcamera_client.so
- libmtkjpeg.so
- libmtklimiter.so
- libMtkOmxAdpcmDec.so
- libMtkOmxAdpcmEnc.so
- libMtkOmxAlacDec.so
- libMtkOmxApeDec.so
- libMtkOmxCore.so
- libMtkOmxFlacDec.so
- libMtkOmxG711Dec.so
- libMtkOmxGsmDec.so
- libMtkOmxMp3Dec.so
- libMtkOmxRawDec.so
- libMtkOmxVdecEx.so
- libMtkOmxVenc.so
- libMtkOmxVorbisEnc.so
- libmtkplayer.so
- libmtkshifter.so
- libmtksqlite3_android.so
- libmtksqlite3_custom.so
- libMtkVideoSpeedEffect.so
- libMtkVideoTranscoder.so
- libn3d3a.so
- libpng.so
- libSwJpgCodec.so
- libvc1dec_sa.ca7.so
- libvcodec_cap.so
- libvcodec_oal.so
- libvcodec_utility.so
- libvcodecdrv.so
- libvorbisidec.so
- libvp8dec_sa.ca7.so
- libvp8enc_sa.ca7.so
- libvp9dec_sa.ca7.so
-
/Lib64
- lib3a.so
- lib3a_sample.so
- liba3m.so
- libacdk.so
- libc.so
- libcam.camadapter.so
- libcam.camnode.so
- libcam.camshot.so
- libcam.client.so
- libcam.device1.so
- libcam.device3.so
- libcam.exif.so
- libcam.exif.v3.so
- libcam.hal3a.v3.dng.so
- libcam.hal3a.v3.so
- libcam.halsensor.so
- libcam.iopipe.so
- libcam.jni.lomohaljni.so
- libcam.metadata.so
- libcam.metadataprovider.so
- libcam.paramsmgr.so
- libcam.sdkclient.so
- libcam.utils.cpuctrl.so
- libcam.utils.sensorlistener.so
- libcam.utils.so
- libcam_hwutils.so
- libcam_mmp.so
- libcam_platform.so
- libcam_utils.so
- libcam1_utils.so
- libcam3_app.so
- libcam3_hwnode.so
- libcam3_hwpipeline.so
- libcam3_pipeline.so
- libcam3_utils.so
- libcamalgo.so
- libcamdrv.so
- libcamera_client.so
- libcamera_metadata.so
- libcameracustom.so
- libcameraservice.so
- libdpframework.so
- libdrmframework.so
- libdrmframework_jni.so
- libexif.so
- libfeatureio.cfb.so
- libfeatureio.featurefactory.so
- libfeatureio.so
- libfeatureiodrv.so
- libft2.so
- libgui.so
- libgui_ext.so
- libh264enc_sa.ca7.so
- libimageio.so
- libimageio_plat_drv.so
- libimg_utils.so
- libja3m.so
- libjni_eglfence.so
- libjni_filtershow_filters.so
- libjni_jpegstream.so
- libjni_slow_motion.so
- libjnigraphics.so
- libjpeg.so
- libJpgDecPipe.so
- libJpgEncPipe.so
- libjtranscode.so
- libm.so
- libm4u.so
- libmhalImageCodec.so
- libmtkcamera_client.so
- libmtkjpeg.so
- libmtklimiter.so
- libMtkOmxCore.so
- libmtkplayer.so
- libmtkshifter.so
- libmtksqlite3_android.so
- libmtksqlite3_custom.so
- libMtkVideoSpeedEffect.so
- libMtkVideoTranscoder.so
- libn3d3a.so
- libpng.so
- libSwJpgCodec.so
- libvcodec_cap.so
- libvcodec_oal.so
- libvcodec_utility.so
- libvcodecdrv.so
- libvorbisidec.so
Also Read : How To Extract System.Img And Boot.Img
FIX RIL/Bin:
- gsm0710muxd
- gsm0710muxdmd2
- mtkrild
- mtkrildmd2
-
/ETC
- firmware (folder)
- mddb (folder)
- apns-conf.xml
- spn-conf.xml
- trustzone.bin
-
LIB & LIB64
- libc2kril.so
- libc2kutils.so
- libreference-ril.so
- libril.so
- librilmtk.so
- librilmtkmd2.so
- librilutils.so
- libviatelecom-withuim-ril.so
- mtk-ril.so
- mtk-rilmd2.so
- volte_imsm.so
CREDITS : MAD SKILL SKILL FOR THIS AWESOME GUIDE ON FIXING BUGS IN A PORTED CUSTOM ROM IN LOLLIPOP AND MARSHMALLOW CUSTOM ROM’S 🙂