Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经设法使用 sl4a for python 拨打电话并发送短信,但它使用的是 android 系统设置中默认选择的 SIM 卡。
有没有办法从 python 代码中强制 SIM 1 或 2?
import sl4a droid = sl4a.Android() droid.phoneCallNumber("number") #works droid.smsSend("number", "text") #works
import androidhelper droid = androidhelper.Android()
拨打电话
droid.phoneCall("Phone number")