一、ADB Shell 应用

  • 查看目录结构 :adb shell ls
  • 查看系统当前日期 :adb shell date
  • 查看系统 CPU 使用情况 :adb shell cat /proc/cpuinfo
  • 查看系统内存使用情况 :adb shell cat /proc/meminfo
  • 显示所有应用 :adb shell pm list packages
  • 显示系统自带应用 :adb shell pm list packages -s
  • 显示第 3 方应用 :adb shell pm list packages -3
  • 查看当前页面名:
    MAC: adb shell "dumpsys window |grep mCurrentFocus"
    Windows: adb shell "dumpsys window |findstr mCurrentFocus"
  • 清除应用数据以及缓存:adb shell pm clear <包名>

拓展:

am:activity manager
pm:packages manager

四、使用ADB命令清除缓存

相关文章:

  • 2022-02-19
  • 2021-11-24
  • 2021-11-14
  • 2021-11-13
  • 2021-12-10
  • 2021-12-20
  • 2021-12-02
  • 2021-08-14
猜你喜欢
  • 2022-02-07
  • 2021-11-20
  • 2022-01-18
  • 2021-11-03
相关资源
相似解决方案