adb命令

发布时间 2023-04-20 11:18:45作者: linux星

1. adb devices:列出当前连接的所有设备和模拟器;

2. adb push:将本地文件推送到设备上;

3. adb pull:将设备上的文件拉取到本地;

4. adb install:安装应用程序;

5. adb uninstall:卸载应用程序;

6. adb logcat:查看设备日志;

7. adb shell:进入设备的shell模式,可以执行Linux命令;

8. adb reboot:重启设备;

9. adb devices -l:列出当前连接的所有设备和模拟器的详细信息;

10. adb forward:设备和主机之间端口转发;

11. adb start-server:启动adb服务;

12. adb kill-server:停止adb服务;

13. adb get-serialno:获取设备的序列号;

14. adb shell dumpsys:查看系统信息;

15. adb shell pm list packages:列出所有已安装的应用程序包名;

16. adb shell ps:查看设备上的进程信息;

17. adb shell am start:启动应用程序;

18. adb shell input:模拟用户输入事件;

19. adb shell screencap:截取设备屏幕并保存为文件;

20. adb shell screencast:录制设备屏幕并保存为文件。