Guide FIX RIL in CrossPorted ROMs for MT6580

watch_later 2017/11/28
comment 2 Comments


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


Now RIL Services will work %100 Inshallah in CrossPorted ROMs
avatar

nice one. works perfectly.
used 7zip to open the telephony-common.jar and extract classes.dex
then dex2jar to get a .jar. Could replace the files then with 7zip
and jar2dex to get the classes.dex again and replace it within telephony-common.jar

delete 1/15/2018
avatar

Okay, never mind. I used now "APK TOOLS" to decompile the .jar.

the method above was not working correctly. decompile with apk tools was fine and recompile was easy. works very nice.

delete 1/18/2018



sentiment_satisfied Emoticon