1.0.1 • Published 2 years ago
node-js-adb v1.0.1
nodeJs-adb
介绍
nodeJs使用的adb封装库
软件架构
软件架构说明
安装教程
- 切换到node.js项目根目录
- npm install --save node-js-adb
使用说明
const adb = require('node-js-adb');//引入依赖包
async function(){
//获取设备列表
let devices = await adb.devices();
console.info(`adb设备数量=>${devices.length}`)
//导入文件到设备
if(devices.length > 0){
adb.push(devices[0], fromPath, targetPath)
}
}