《Android-adb 自动化可能会用的几个命令》

1. adb shell打开关闭wifi

#打开wifi
adb shell svc wifi enable 
#关闭wifi
adb shell svc wifi disable 

2.adb shell打开关闭数据data

#打开数据网络
adb shell svc data enable
#关闭数据网络
adb shell svc data disable

3.adb shell 打开USB模式

#设置为adb模式
adb shell svc usb setFunction adb
#设置为mtp模式
shell svc usb setFunction mtp

4.设置屏幕常亮

adb shell svc power stayon true

5.清除应用用户数据

adb shell pm clear xxx
xxx:包名

其他ADB命令相关博文
1.adb shell input查看此处
2.Adb Shell 下content使用
3.adb命令大全

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值