四、使用ADB命令清除緩存


一、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

image


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM