android系统命令,Android系统:常用操作命令

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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值