mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
97 字
1 分钟
Adb常用命令
2026-07-14

adb常用命令#

没有的自己去查🤡

一、adb常用命令#

  1. 查看设备

    Terminal window
    adb devices
  2. 从电脑上安装至手机

    Terminal window
    adb install 路径名称
    abd -r install 路径名称 #这是覆盖安装
  3. 卸载

    Terminal window
    adb uninstall 包名 #这是卸载app
  4. 查看版本路径

    Terminal window
    adb version
  5. 启动/结束server

    Terminal window
    adb start-server
    adb kill-server
  6. 将电脑端文件推送至手机

    Terminal window
    adb push 电脑路径名称 手机路径名称
  7. 进入手机端控制台

    Terminal window
    adb shell
  8. 将手机端的文件拉取到电脑上

    Terminal window
    adb pull 手机端路径 电脑端路径

二、locat命令#

  1. 常用命令
Terminal window
adb logcat -help #常看帮助
adb logcat #常规显示
adb logcat -c #清除日志
adb logcat -g #显示缓存区大小
adb logcat -G 256M #修改缓冲区大小
adb logcat -v time #设置不同的显示格式
adb logcat -v color #带颜色的显示
  1. 过滤日志

    Terminal window
    adb logcat -s 需要过滤的名称
  2. 根据pid过滤

    ps -A |grep com.fatdog.app 先获取进程pid
    adb locat |findstr 5568
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Adb常用命令
https://fatdog.20060113.xyz/posts/adb/
作者
神秘大胖狗
发布于
2026-07-14
许可协议
MIT

部分信息可能已经过时

封面
Sample Song
Sample Artist
封面
Sample Song
Sample Artist
0:00 / 0:00