In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to use the dumpsys command in Android". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the dumpsys command in Android" can help you solve the problem.
1. Introduction of dumpsys command 1. Command description
Dumpsys user system diagnostics, which runs on the device and provides system service status information
Command format: adb shell dumpsys [system serbices]
two。 System service query
If you run adb shell dumpsys directly, you will get all the system service information, which is a lot. To make it easier to manage the output, you can specify the services you want to check, for example:
Adb shell dumpsys-l
Adb shell serverce list
# is to check what system services are available (specify which services are needed)
Command line arguments:
Different services have different options. Here are two common parameters:
-h: for most services, you can add-h help to see the text
-c: for some services, you can add-c to view the data more friendly
For example:
Adb shell dumpsys meminfo-h
II. Inquiry of package information
Subcommand format:
Adb shell dumpsys package [- h] [- f] [- checkin] [cmd]...
Parameter description-h print help information-f print intent filter information-checkin prints out registered libraries, system functions, Install package cmd subcommand (which subcommands can be seen in the-h help documentation) cmd subcommand description prov [iders] get content providersp [ackages] get installation package basic information s [shared-user] get shared user ID application m [essages] print run-time information collected v [erifiers] print package check information version print database version information write write current location output information for a given package installs security Install session details l [ibraries] list known shared libraries f [ibraries] list phone functions k [eysets] list each package Signing KeySetsr [esolvers] get intent filterperm [issions] get permission pref [erred] print package preferences preferred-xml [- full] print package preferences Printing in xml format III. Activity information query
Subcommand format:
Adb shell dumpsys activity [- a] [- c]...
Parameter description-an includes all available server states-c including client status-p restricts output to a given package For example: adb shell dumpsys activity-p com.android.browser-h print help information cmd subcommand cmd subcommand description a [ctivities] activity stack status r [recents] recent activity status b [rodacasts] [package_name] [histpry [- s]] broadcast status I [ntents] [package_name] pending intent status p [rocesses] [package_name] process status oom [oom management permades] url permission authorization status prov [iders] [comp_spec …] Content provider status provider [comp_spec] provider client status s [ervices] [comp_spec …] Service status as [sociations] tracking application's associated service [comp_spec] Service client status package [package_name] all state all of the package given all dump all activitywrite at the top of the activityestop dump stack write all pending state storage track-associations allows session tracking untrack-associations disabled and explicit session tracking The command parameter may also be a comp_spec dump activity IV. Network information query subcommand description command format connectivity network connection adb shell dumpsys connectivitynetpolicy network policy adb shell dumpsys netpolicynetstats network state adb shell dumpsys netstatsnetwork_management network management adb shell dumpsys network_ management Other commonly used service information query subcommands description command format meminfo memory adb shell dumpsys meminfocpuinfoCPUadb shell dumpsys cpuinfogfxinfo frame rate adb shell dumpsys gfxinfodisplay display adb shell dumpsys displaypower power adb shell dumpsys powerbatterystats battery status adb shell dumpsys batterystatsbattery battery adb shell dumpsys batteryalarm alarm clock adb shell dumpsys alarmlocation location adb shell dumpsys location about "how to use the dumpsys command in Android" Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.