Third step:
If you get bugs after booting. Replace from base rom to port rom :
* sensor
Code:
uneventd.qcom.rc (compare boot) uneventd.rc (compare boot)
* sound
system / lib / hw / audio.primary. **** audio.primary.default.so
system / lib64 / hw / audio.primary. **** audio.primary.default.so
* sound 2 (slow or loud speaker)
Code: system / etc / mixer_paths.xml (compare with base)
* bug sound 3 (speaker phone) system / etc / acdbdata / MTP / MTP _ ***. Acdb (all files)
* navbar button & fingerprint
Code: system / usr / keylayout / goodix.kl gpio-keys.kl Generic.kl msgxxxx.kl (choose one that matches your device)
* video, ril & fingerprint
Code: system / etc / firmware / (all files)
* sensor Code:
system / lib / hw / sensors.**** .so system / lib64 / hw / sensors.**** .so
system / lib / libsensorservice.so system / lib64 / libsensorservice.so
* notification led, brightness & torch
Code:
system / lib / hw / lights. ****
system / lib64 / hw / lights. ****
* vibration
Code:
system / lib / libhardware_legacy.so
system / lib64 / libhardware_legacy.so
* FM radio
Code:
system / lib / qcomfm_jni.so
system / lib64 / qcomfm_jni.so
* wifi
Code:
system / lib / modules /
Code:
system / lib / libwcnss_qmi.so
system / lib64 / libwcnss_qmi.so
* slow wifi connect
Code: system / etc / wifi / - all files
system / etc / firmware / wlan / - all files
* camera and flash
Code:
system / vendor / lib / :-) libactuator _ ***. so (all that starts with libactuator) libchromatix _ ***. so (all that starts with libchromatix) libmmcamera _ ***. so (everything that starts with libmmcamera) libmmcamera2 _ ***.
so (everything that starts with 'libmmcamera2') liboemcamera.so (ignore if it's fixed without replacing this) ------------------------- system / lib / :-) libmm-qcamera.so libmmcamera_interface.co
system / lib / hw / camera. ****