android系统命令,Android系统:常用操作命令
adb命令1) 连接设备adb connect IP[:PORT]例如:adb connect 192.168.0.100:55552) 查询已连接设备adb devices3) 进入设备控台adb shelladb -s device shell例如:adb -s 192.168.0.100:5555 shell4) 重启、关闭设备adb reboot //重启adb reboot -p //关
adb命令
1) 连接设备
adb connect IP[:PORT]例如:
adb connect 192.168.0.100:5555
2) 查询已连接设备
adb devices
3) 进入设备控台
adb shell
adb -s device shell例如:
adb -s 192.168.0.100:5555 shell
4) 重启、关闭设备
adb reboot //重启
adb reboot -p //关机
5) 重启进入fastboot模式
adb reboot bootloader
6) 设备锁
//新机型
fastboot flashing unlock //解锁
fastboot flashing lock //加锁
//老机型
fastboot oem unlock //解锁
fastboot oem lock //加锁
7) 单独刷入boot.img
fastboot flash boot boot.img
8) 唤醒设备
input keyevent 26 //点击power
input swipe 500 50 500 700 //从500,50滑动到500,700
9)获取文件
adb pull 目标文件 本地路径例如:将设备的/tmp目录下的test.log 拷贝到当前目录
adb pull /tmp/test.log ./
10) 发送文件
adb push 目标文件 设备存储路径例如:将当前路径下的test.log文件 拷贝至设备的/tmp目录下
adb push ./test.log /tmp/
更多推荐
所有评论(0)