Lets learn how to Fix bugs in Qualcomm Snapdragon Custom ROM while porting. Most of the custom ROMs are not stable. When you are porting any custom ROM for Qualcomm Snapdragon device then its obvious that you will get few minor or major bugs issue.
Most of the bugs can be fixed and there is 100% 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 Qualcomm Snapdragon Custom ROM while porting.
Fix bugs in Qualcomm Snapdragon Custom ROM
When you find bugs in custom ROM while porting for your Fix bugs in Custom ROMs when porting for Qualcomm Snapdragon, 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.
1. Audio not working
system/lib/hw/ audio.primary.msm8916.so audio.primary.default.so system/lib64/hw/ audio.primary.msm8916.so audio.primary.default.so
2. Home or any other button not working:
system/usr/keylayout/ goodix.kl gpio-keys.kl (important) Generik.kl
3. Video hw encoding/decoding not working:
system/etc/firmware/ venus.*** (all files starting with ‘venus’)
4. Distorted Outgoing Sound during Phone call:
system/etc/acdbdata/MTP/ MTP_***.acdb (all files)
5. Sensors not working:
system/lib/hw/sensors.msm8916.so (or sensors.lsm6db0.so) system/lib64/hw/sensors.msm8916.so (or sensors.lsm6db0.so) system/lib/libsensorservice.so system/lib64/libsensorservice.so
4. Led notification not working:
5. Vibration not working:
6. FM not working:
7. Wifi not working:
system/lib/modules/wlan.ko system/lib/libwcnss_qmi.so system/lib64/libwcnss_qmi.so
8. For other wifi related issue
system/etc/wifi/ -- all files system/etc/firmware/wlan/ -- all files
9. Camera and flash not working:
system/vendor/lib/ libactuator_***.so (all files starting with ‘libactuator’) libchromatix_***.so (all files starting with ‘libchromatix’) libmmcamera_***.so (all files starting with ‘libmmcamera’) [Note: If such files are also available in your BASE/system/vendor/lib64/ then you have to copy those files also to their respective place in PORT]
WARNING: Do not replace any file unnecessarily, because it may give rise to new bugs in place of solving it. Always be specific!