常用的 ADB 命令?

adb --help / adb :看见帮助信息adb start-server:启动 adb 服务adb kill-server:关闭 adb 服务adb devices:查看手机设备号

adb shell getprop ro.build.version.release:获取系统版本adb push 电脑 手机

adb pull 手机 电脑

adb logcat | grep(unix) 包名   adb logcat | findstr(win) 包名

adb shell :进入 shell 命令行,可以操作 Linux 命令

adb shell dumpsys window windows | grep mFocusedApp:获取包名 启动名(win:adb shell dumpsys window windows | findstr mFocusedApp)

adb install 路径/apk 文件:安装 apk 到手机上adb uninstall 包名:卸载 app 从手机上

adb shell am start -W 包名/启动名:app 启动时间

posted @ 2023-01-30 15:50  小涵豆  阅读(88)  评论(0)    收藏  举报