device_phh_treble
device_phh_treble copied to clipboard
MTK final RIL fix
For some users of MTK devices problem with RIL is still here, they are have connection and etc / but it is very unstable, SMS and MMS can't be sended + all time cignal is empty at status bar. Following lines solve problem
Some mtk devices(newer socs) have libmtk-ril.so instead of mtk-ril.so
Yes :) MTk devices use mtk-ril and librilmtk This sollution is fully working :) Checked on my MTK devices with mtk-ril and librilmtk in vendor :)
librilmtk.so is used by all, mtk-ril.so(without lib have only older socs) and libmtk-ril(with "-" have only newer socs).
Same error for me at send SMS when I tried your commit. Log info:
10-15 14:28:37.420 899 905 I RILC : No need to cache the request 10-15 14:28:37.422 3186 3186 D SubscriptionController: [getSubId]- numSubIds == 0, return DummySubIds slotIndex=1 10-15 14:28:37.656 899 929 I AT : [0] AT< +CMS ERROR: 62194 (RIL_CMD_NRT_8, tid:530696033520) 10-15 14:28:37.657 899 905 E RILC : Invalid response: NULL 10-15 14:28:37.659 3186 3205 D RILJ : [3852]< SEND_SMS error 1 [SUB0] 10-15 14:28:37.660 3186 3205 D RilRequest: [3852]< SEND_SMS error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE ret={ mMessageRef = 0, mErrorCode = 0, mAckPdu = } 10-15 14:28:37.712 3186 3198 D SubscriptionController: [getPhoneId] asked for default subId=3 10-15 14:28:37.728 1955 3647 D PhoneNumberUtils: slotId:0 subId:3 country:null emergencyNumbers: 112,-1;911,-1
I think this is a better place
well, I must say, I can't see how doing
setprop rild.libpath mtk-ril.so
setprop rild.libargs -d /dev/ttyC0
right before rebooting would do anything since they are non-persistent properties