1、安装adb
adb下载地址 http://adbshell.com/upload/adb.zip
platform-tools 下载地址 https://dl.google.com/android/repository/platform-tools_r31.0.1-windows.zip
2、配置adb环境变量
执行adb version 表示成功
3、使用数据线连接安卓手机,开启调试模式
4、使用 Runtime.getRuntime().exec 拨打电话
@ResponseBody
@RequestMapping("test6")
public List<String> test6(String phone) throws IOException {
String command = "E:\\platform-t