常用的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
猜您想看
-
如何在网易云音乐上高效管理你的音乐?
1. 创建歌单...
2023年05月15日 -
如何推送代码到码云
一、了解码云码...
2023年05月26日 -
如何在软路由中实现双线备份
如何在软路由中...
2023年04月17日 -
什么是Little's Law
Little'...
2023年07月23日 -
ASP.NET怎么自定义数据过滤器
ASP.NET...
2023年07月22日 -
如何在Windows上打印文件列表
SEO软文:如...
2023年05月06日