tldr/pages.zh/android/dumpsys.md

30 lines
589 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# dumpsys
> 提供关于 Android 系统服务的信息。
> 此命令只能通过 `adb shell` 使用。
> 更多信息:<https://developer.android.com/tools/dumpsys>.
- 获取所有系统服务的诊断输出:
`dumpsys`
- 获取指定系统服务的诊断输出:
`dumpsys {{服务}}`
- 列出 `dumpsys` 可以提供的所有服务信息:
`dumpsys -l`
- 列出服务的指定服务参数:
`dumpsys {{服务}} -h`
- 从诊断输出中排除指定服务:
`dumpsys --skip {{服务}}`
- 指定超时时间,以秒为单位(默认为 10s
`dumpsys -t {{秒数}}`