常用的Adb命令有哪些
一、ADB基本操作
1、查看连接设备:adb devices
2、安装应用:adb install 应用xxx.apk
3、卸载应用:adb uninstall 包名
4、启动应用:adb shell am start -n 包名/Activity名
5、查看应用的日志:adb logcat
6、查看设备的内存信息:adb shell dumpsys meminfo 包名
二、ADB调试
1、查看当前连接设备的CPU信息:adb shell cat /proc/cpuinfo
2、查看当前设备的内存信息:adb shell cat /proc/meminfo
3、查看当前设备的系统信息:adb shell getprop
4、查看当前设备的电池状态:adb shell dumpsys battery
5、查看当前设备的网络状态:adb shell netcfg
6、查看当前设备的进程信息:adb shell ps
三、ADB远程操作
1、连接远程设备:adb connect IP:Port
2、文件传输:adb push 本地文件 远程路径
3、查看远程设备的日志:adb logcat -s 远程IP
4、远程操控设备:adb shell input keyevent 按键码
5、查看远程设备的屏幕:adb shell screencap -p /sdcard/screen.png
6、查看远程设备的截图:adb shell screenrecord /sdcard/demo.mp4
猜您想看
-
什么叫拨号vps服务器
什么是拨号VP...
2023年07月04日 -
树莓派怎样刷写Windows 10 ARM非IOT版后成功运行桌面程序
一、准备工作1...
2023年05月22日 -
C++中怎么向函数传递对象
1、传值C++...
2023年05月22日 -
R语言正态密度曲线怎么实现
R语言正态密度...
2023年05月26日 -
高并发测试工具Tsung使用方法
1.什么是Ts...
2023年05月26日 -
怎么修改maven项目的版本号
一、什么是Ma...
2023年05月26日