[FIX BUG] Fixing bugs when porting Custom ROMs For Qualcomm Snapdragon device!

23:42 Alex 0 Comments



This guide is for fixing bugs while porting Qualcomm snapdragon custom roms

Things you need to keep in mind. If you are doing any of the following you have to get back and start again.

1. Before porting a rom read the rom’s details what bugs it has. If the port rom has bugs you probably won’t be able to solve them.

2. Always research before you asks someone for help. If you ask simple questions which have already been answered annoys developers and then he will not going to reply ever. If   you can’t help yourself No one can.

Copy and replace the following files from Base (ROM-PORTING/BASE) to Port (ROM-PORTING/PORT) to solve the given issues:

No sound issue:

system/lib/hw/
audio.primary.msm8916.so
audio.primary.default.so

system/lib64/hw/
audio.primary.msm8916.so
audio.primary.default.so

Home or any other button not working:
system/usr/keylayout/
goodix.kl
gpio-keys.kl (important)
Generik.kl

External sd-card not showing:
Follow the Step 6 in ROM Porting section. 


Video hw encoding/decoding not working:
system/etc/firmware/
venus.*** (all files starting with ‘venus’)

Distorted Outgoing Sound during Phone call:
system/etc/acdbdata/MTP/
MTP_***.acdb (all files)

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

Led notification not working:
system/lib/hw/lights.msm8916.so
system/lib64/hw/lights.msm8916.so

Vibration not working:
system/lib/libhardware_legacy.so
system/lib64/libhardware_legacy.so

FM not working:
system/lib/qcomfm_jni.so
system/lib64/qcomfm_jni.so

Wifi not working:
system/lib/modules/wlan.ko
[Note: In MIUI, wlan.ko is renamed as pronto_wlan.ko and is also kept in system/lib/modules/pronto/ folder, so you have to replace in both the places.]

In some phones you may not find wlan.ko file. In that case you may try replacing these files (thanks @Divyansh747):
system/lib/libwcnss_qmi.so
system/lib64/libwcnss_qmi.so

For slow WiFi network and other WiFi related issues replace these files:
system/etc/wifi/ -- all files
system/etc/firmware/wlan/ -- all files

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]
·         
                                                                              
All major bugs have been covered if you are facing any bug or
if you have any more questions comment down below I will try to fix them. But I cannot guaranty to fix. And please do not report about any bugs that are already covered in this guide. I already try to fix them and gave the solutions.


0 comments:

Disable_Adblock

We know Ads suck, but at IrisBuddies we will not let them do that
As blocking is a good idea to get rid of stupid “Download Now” Buttons around the web
That’s not in our case. We think you won't find Ads on Our site terrible or annoying
Support us by Whitelisting “IrisBuddies” on your Adblocking Plugin or By disabling your AdBlocking software

If you think this is not good and we should allow AdBlocking Plugins
then Please Contact Us or write us on our Facebook Page
and we might allow it in near future.