【adb常用命令】

adb作为移动端测试必回的技能之一,日常工作中频繁使用,今天

对adb常用命令进行总结记录。

// 1.重启adb

adb reboot 

// 2. 启用adb服务

adb start-server

// 3.关闭服务

adb kill-server

// 4.连接adb设备
adb  connect  xxx:9999

// 5.关闭设备连接

adb  disconnect  xxx:9999

// 6.文件推送到手机

adb push  D:\xx.test  storage/sdcard

// 7.手机文件推送到电脑
adb pull /sdcard/123.txt C:\Users\Administrator\Desktop 

// 8.手机已连接设备
adb devices


//9.安装软件
adb  install com.xxs


// 10.卸载 
adb uninstall com.xxx


// 11.启动手机页面
//例:启动Android原生设置页
adb shell
am start com.android.settings/com.android.settings.Settings
//12.查看手机品牌
adb shell pm list package
//或
adb shell pm list packages -s


// 13.随机时间500次
adb  shell  monkey -p  com.mumuxi.test  -v 500


// 14,输入文字
adb shell input text 'mumuxi://www.mumuxi.cn'


// 15 查看所有存活的进程
adb shell ps
//过滤关键字查看
adb shell ps | findstr xxx
例:adb shell ps | findstr android

// 16 清楚缓存
adb shell pm clear <packege name>
例:adb shell pm clear com.mumuxi.test

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值