1 - Decompile framework/telephony-common.jar From LineageOS working RIL
2 - Coby /telephony-common/smali/com/android/internal/telephony/MT6580.smali
3 - Decompile framework/telephony-common.jar From CrossPort ROM
4 - Delete (for example) from CrossPort ROM/telephony-common/smali/com/android/internal/telephony/MT6735.smali OR MediaTekRIL.smail
5 - Pest MT6580.smali
6 - Recompile framework/telephony-common.jar
7 - add in ramdisk/default.prop from BOOT.IMG
# fix ril
ro.telephony.ril_class=MT6580
ro.telephony.ril.config=signalstrength
ro.telephony.sim.count=2
persist.gemini.sim_num=2
ril.current.share_modem=2
# end
8 - add in System/build.prop
# fix ril
ro.telephony.ril.config=writeaidonly,signalstrength
ro.telephony.ril_class=MT6580
ril.specific.sm_cause=0
ril.external.md=0
ril.first.md=1
ril.flightmode.poweroffMD=1
ril.telephony.mode=0
ril.read.imsi=1
ril.radiooff.poweroffMD=0
ril.current.share_modem=2
rild.libpath=/system/lib/mtk-ril.so
rild.libargs=-d /dev/ttyC0
ro.telephony.sim.count=2
ro.telephony.default_network=3
ro.ril.enable.amr.wideband=1
ro.ril.def.preferred.network=3
ro.mtk_rild_read_imsi=1
ro.build.version.all_codenames=REL
ro.sim_me_lock_mode=0
ro.gemini.smart_sim_switch=false
ro.mtk_eap_sim_aka=1
ro.mtk_sim_hot_swap=1
ro.sim_refresh_reset_by_modem=1
ro.gsm.2nd_data_retry_config=max_retries=1,15000
persist.gemini.sim_num=2
persist.radio.multisim.config=dsds
persist.radio.default.sim=0
keyguard.no_require_sim=true
# end