nodejs 调用adb拨号
async function exec (adbCmd:string) { let adbPath = 'D:\\prog\\adb\\windows\\adb.exe' let cmdMsg = await new Promise((resolve, reject) => { const child = execFile(adbPath, adbCmd.split(' '), (error:any, stdout:any, stderr:any) => { if (error) { reject(error) } resolve(stdout) }) }) return cmdMsg } async function call(phone:any, deviceid:any) { let param:any = ('shell am start -a android.intent.action.CALL -d tel:'+phone) if (deviceid) { param = '-s ' + deviceid + ' ' + param } return await exec(param) }