auto可以打电话吗?
autojs吧
全部回复
仅看楼主
level 4
枫少通城 楼主
auto可以打电话吗?
2019年04月21日 09点04分 1
level 13
写了一个供你参考。。
let tel_num = "10010";
tryCallByShell() || tryCallByIntent();
function tryCallByShell() {
return !shell("am start -a android.intent.action.CALL tel:" + tel_num, true).code;
}
function tryCallByIntent() {
let call_intent = {
action: "CALL",
data: "tel:" + tel_num,
};
app.startActivity(call_intent);
}
2019年04月21日 11点04分 2
startActivity和shell 两种方法选一个自己喜欢的就好 第一个我加了强制root 第二个如果也要root的话 可以添加属性"root: true"
2019年04月21日 11点04分
打不了电话啊
2019年04月22日 00点04分
level 4
枫少通城 楼主
root(•̀⌄•́)啊
2019年04月22日 00点04分 3
level 4
枫少通城 楼主
打不了电话啊
2019年04月22日 00点04分 4
代码仅供参考 不保证一定可用 另外我的设备已root 测试可用
2019年04月22日 01点04分
免root不行?
2019年04月22日 01点04分
level 4
枫少通城 楼主
免root不行?
2019年04月22日 01点04分 5
暂时没有非Root机型帮你测试
2019年04月22日 01点04分
level 4
枫少通城 楼主
那只能用软件了
2019年04月22日 02点04分 6
1