[Android General] Fire _Phoenix:
In this tutorial we will learn how to fix those bugs arise in ported roms .I will cover only main bugs

CAMERA BUG

There are many guides available over internet even on xda but there is still that issue faces by many guys. So now lets start to debug those bugs. first of all replace this file from your stock rom to port rom while porting or using root explorer. But be aware there is chance of system crashes when using root browsers

CAMERA can't connect fix

replace this libs from stock system/lib to port only if present on your stock rom

libae_v1.so

libAf.so

libaf_tune.so

libandroidfw.so

libawb.so

libawb1.so

libcamcommon.so

libcamera2ndk.so

libcamera_client.so

libcamera_metadata.so

libcameraservice.so

libcamisp2.0.so

libcamoem.so

libcamsensor.so

libfilterfw.so

libfilterpack_facedetect.so

libfilterpack_imageproc.so

libgifimage.so

libgui.so

libhardware.so

libhardware_legacy.so

libhwui.so

libimagepipeline.so

libImageProcessJni.so

libimage_type_recognition.so

libimg_utils.so

libjnigraphics.so

libjni_jpegutil_dream.so

libjni_mosaic_dream.so

libjpeg.so

liblsc.so

libspaf.so

libspafv1.so

libsprd_easy_hdr.so

libsprdjni_filtershow_filters.so

libsprdjni_jpegstream.so

libtsadvancedfilterJni.so

libts_face_beautify_hal.so

libui.so

libvbeffect.so

libsensorservice.so

libskia.so (not tested)

libsft_af_ctrl.so

libspafv.so

libspafv1.so

from system/lib/hw (for sensor too)

camera.sc8830.so

hwcomposer.sc8830.so

sensors.sc8830.so

from system/etc

media_profiles.xml (videocam)

from system/bin (for Auto rotation too)

cameraserver

sensorservice

service

servicemanager

AUDIO

same as sc7731/8830

replace this libs from stock to port rom

system/bin/audioserver

from system/etc for good quality sound

audio_effects.conf

audio_hw.xml

audio_para

audio_policy_configuration.xml

audio_policy_volumes.xml

codec_pga.xml

default_volume_tables.xml

audio_policy_configuration_stub.xml

tiny_hw.xml

From System/lib/hw (only if not working otherwise causes bootloop )

audio.primary.default.so

audio.primary.sc8830.so

audio.a2dp.default.so

audio_policy.default.so

From system/lib

libalsautils.so

libaudioutils.so

change All libs with libaudio***.so Only if not work or by one by one

libtinyalsa.so

libtinyxml.so (Not needed on many cases)

GPS(location) FIX

I have seen in many cases gps not working but this will fix it

from system/bin

gnss_download

gpsd

from system/etc

gnssbdmodem.bin

gnssfdl.bin

gnssmodem.bin

config.xml

supl.xml

from system/lib/hw

gps.default.so

sprd_gsp.sc8830.so

from system/lib

libgpspc.so

VoLTE FIX

replace this file from system/bin/sprdrild

system/etc

apns-conf.xml

old-apns-conf.xml

slog_modem.conf (for gps too)

spn-conf.xml

supl.xml

volte-conf.xml

from system/lib

libril.so

librilsprd.so

libril_tele.so

librilutils.so

libsprd-ril.so

libvideo_call_engine_jni.so

libvolte_video_service_jni.so

libvtmanager.so

After this you can see in settings enhance 4GLTE Mode auto activated Or you can toggle on/off

(carefully replace this libs one by one if not work above )

libreference-ril.so

libradio.so

libradio_metadata.so

libradioservice.so

VIDEO CALL BUGS

Related to telecom apps and missing lines in classes.dex and framework.jar

FM RADIO

first replace radio apps from your stock rom to port rom and see if it work (dreamRadio) if not then replace this files

from system/libs

libFMHalSource.so

libfmjni.so

libhardware.so

libhardware_legacy.so

touch screen show cursor

replace idc folder from stock to port system/usr/idc

For other bugs many guide available over net. This thread will updated too.

Creditswill updated soon