当前位置:Gxlcms > 数据库问题 > adb命令

adb命令

时间:2021-07-01 10:21:17 帮助过:4人阅读

adb命令:

  1、查看连接设备:adb devices -l

  2、查看activity命令:adb shell dumpsys activity recents | findstr "intent={"

  3、adb -s 指定的设备名

  4、获取设备的状态:adb get-state

  设备的状态:device--设备正常连接;offline--连接出现异常,设备无响应;unknown--没有连接设备

  5、安装应用程序:adb install apk

  6、卸载应用程序:adb uninstall 应用程序的包名

  7、上传文件:adb push

  例子:adb push d:/test.txt /sdcard/

  8、下载文件:adb pull

  例子:adb pull /sdcard/test.txt d:/

  9、进入shell环境:adb shell

  10、查看手机log日志:adb logcat

 

adb命令

标签:intent   logcat   上传   card   stat   包名   状态   test   shel   

人气教程排行