7).点击 , 滑动屏幕adb shell input tap 100 300 #在(100300)处点击
adb shell input swipe 100 1200 100 200 #上滑adb shell input swipe 100 200 100 1200 #下滑
8).输入adb shell input text hello #输入hello
9).电池adb shell dumpsys battery
10).设备IDadb shell settings get secure android_id
11).无线网络在操作前必须获得Root权限 。 adb shell svc wifi enable #开启WiFiadb shell svc wifi disable #关闭WiFi
8.端口转发adb forward tcp:60 tcp:70 #将60端口转到70端口
adb forward tcp:60 local:logd # 将60端口转到local:logd的转发
9.Activity 管理器adb shell am start -n activity路径 #启动某一个activity
adb shell am start -a android.intent.action.VIEW -d www.baidu.com#启动默认浏览器打开一个网页adb shell am start -n com.android.camera/.Camera #启动相机adb shell am start -a android.intent.action.CALL -d tel:10086#启动拨号10086adb shell am startservice -n 服务 #开启服务adb shell am stopservice 服务 #停止服务adb shell am force-stop bluetooth #杀死蓝牙进程adb shell am kill 进程号 #杀掉进程adb shell am broadcast -a android.intent.action.BOOT_COMPLETED #向所有组件广播设备启动完毕
10.调用软件包管理器adb shell pm list permissions #查看权限
adb shell pm list permission-groups #输出所有已知的权限组adb shell pm list permissions -d -g -f #查看系统危险权限并按组输出所有信息adb shell pm list instrumentation#列出所有测试软件包-f列出测试软件包的APK文件adb shell pm path com.android.bluetooth #查看软件安装路径adb shell pm list features #输出系统的所有功能adb shell pm list libraries #输出当前设备支持的所有库adb shell pm list users #输出系统中的所有用户adb shell pm enable ** #启用给定的软件包或组件(写为“package/class”)adb shell pm disable ** #停用给定的软件包或组件(写为“package/class”)adb shell pm get-max-users #输出设备支持的最大用户数
11.备份adb backup -all #备份所有数据
12.压力测试Monkey格式:adb shell monkey -v -p your.package.name 500adb shell monkey -v -p com.tencent.weishi 500
- 阿里巴巴|电商转折点出现?神秘消失23天的李佳琦,意外暴露了阿里的问题
- 电子商务|关于电子商务
- 电子商务|欧洲跨境电商销售额市场排名公布,第一名令人意外!
- 电子商务|3D打印机有多强大?科学家曾利用3D打印技术打印出火箭喷射器
- Java|李佳琦消失扯下阿里“遮羞布”,原来淘宝根本就没有护城河
- 电子商务|取消外卖和关闭电商,恢复市面繁荣,你同意这波操作吗?
- 阿里巴巴|李佳琦消失扯下阿里“遮羞布”,原来淘宝根本就没有护城河
- 电子商务|天天查|价值1亿美元的加密货币被黑客盗取
- 阿里巴巴|低调了三年的阿里如今又重新走上了神坛,马云藏了十年的底牌再也藏不住了
- 在线教育|李佳琦消失扯下阿里“遮羞布”,原来淘宝根本就没有护城河
