Call/Send SMS with SIM card 1 and 2 with qpython3

765 Views Asked by At

I have managed to make a call and send an SMS with sl4a for python but it is using the default selected SIM in android system settings.

Is there a way to force SIM 1 or 2 from inside the python code?

import sl4a

droid = sl4a.Android()

droid.phoneCallNumber("number") 
#works

droid.smsSend("number", "text")
#works
1

There are 1 best solutions below

1
Nagarjun On
import androidhelper
droid = androidhelper.Android()

To make a call

droid.phoneCall("Phone number")