device_phh_treble icon indicating copy to clipboard operation
device_phh_treble copied to clipboard

MTK final RIL fix

Open Deepflex opened this issue 6 years ago • 6 comments

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

Deepflex avatar Oct 09 '18 07:10 Deepflex

Some mtk devices(newer socs) have libmtk-ril.so instead of mtk-ril.so

Dinolek avatar Oct 09 '18 17:10 Dinolek

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 :)

Deepflex avatar Oct 10 '18 09:10 Deepflex

librilmtk.so is used by all, mtk-ril.so(without lib have only older socs) and libmtk-ril(with "-" have only newer socs).

Dinolek avatar Oct 10 '18 16:10 Dinolek

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

dimusa6 avatar Oct 15 '18 12:10 dimusa6

I think this is a better place

ghost avatar May 06 '19 19:05 ghost

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

phhusson avatar May 06 '19 19:05 phhusson