常用的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
猜您想看
-
如何在 CentOS 7 上设置系统备份和恢复?
CentOS ...
2023年04月24日 -
在CS:GO游戏中如何自定义绑定键位?
如何自定义CS...
2023年04月17日 -
如何在软路由中设置 NAS 网络存储
如何在软路由中...
2023年04月17日 -
宝塔如何实现内容分发网络
随着网络技术的...
2023年05月12日 -
listen函数中backlog字段的作用是什么
backlog...
2023年05月25日 -
STM32 GPIO的原理、特性、选型和配置是什么
STM32 G...
2023年04月28日