Android dumpsys 命令解析

news/2024/7/18 23:19:16

Android 有一个很有意思,也很有用的命令:dumpsys,它可以 取出一些系统信息。虽然它只是在命令行里显示,但是有一些技术点应该被采用、充实。如果你想得到所有的Android系统信息,包括第三方应用的信息,那么如下命令,你必不可少:

adb shell dumpsys

你也可以用 filters 来运行这些服务:

1 SurfaceFlinger

2 accessibility

3 account

4 activity

5 alarm

6 appwidget

7 audio

8 backup

9 battery

10 batteryinfo

11 bluetooth

12 bluetooth_a2dp

13 clipboard

14 connectivity

15 content

16 cpuinfo

17 device_policy

18 devicestoragemonitor

19 diskstats

20 dropbox

21 entropy

22 ethernet

23 hardware

24 input_method

25 iphonesubinfo

26 isms

27 keybar

28 location

29 media.audio_flinger

30 media.audio_policy

31 media.camera

32 media.player

33 meminfo

34 mount

35 netstat

36 network_management

37 notification

38 package

39 permission

40 phone

41 power

42 search

43 sensorservice

44 simphonebook

45 statusbar

46 telephony.registry

47 throttle

48 uimode

49 usagestats

50 vibrator

51 wallpaper

52 wifi

53 window

举例:

adb shell dumpsys wifi

adb shell dumpsys cpuinfo

I suggest you try other items on the list above and be creative using all the power of Unix pipes. Example, to get all memory allocated by each process you can do something like:

adb shell dumpsys meminfo | grep "allocated:" | awk '{total = total + $5}END{print total}'

http://www.niftyadmin.cn/n/3649433.html

相关文章

freebsd 9.1.1_如何在FreeBSD 12.0上通过加密来保护Apache

freebsd 9.1.1介绍 (Introduction) Let’s Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software cl…

引导界面框架

效果图&#xff1a; 首先自定义一个小红点; <?xml version"1.0" encoding"utf-8"?> <shape xmlns:android"http://schemas.android.com/apk/res/android" android:shape"oval"> <size android:height"10dp…

prisma orm_如何使用Node.js和Prisma构建GraphQL服务器

prisma orm介绍 (Introduction) Prisma is a data layer that turns a database into a GraphQL API. We can look at it as a kind of Object-Relational Mapper (ORM), but it’s much more powerful than traditional ORMs. With Prisma, we get a server (Prisma server) t…

CentOS 7搭建Java开发平台——Java 8

Java是一门面向对象编程语言&#xff0c;不仅吸收了C语言的各种优点&#xff0c;还摒弃了C里难以理解的多继承、指针等概念&#xff0c;因此Java语言具有功能强大和简单易用两个特征。Java语言作为静态面向对象编程语言的代表&#xff0c;极好地实现了面向对象理论&#xff0c;…

css3字体弹跳动画_如何使用CSS3动画创建弹跳页面加载器

css3字体弹跳动画介绍 (Introduction) In this tutorial, you will create a bouncing page loader using CSS3 animation keyframes. It will show you how to style HTML for a loading page, create animation keyframes, and use animation delay with keyframes. 在本教程…

[Remoting]当client不复存在而RemoteObject并不知道时的处理办法

[Remoting]当client不复存在而RemoteObject并不知道时的处理办法编写者&#xff1a;郑昀ultrapower 20050518问题&#xff1a;“singleton服务中客户端意外退出或网络故障时&#xff0c;服务器端如何知道&#xff0c;并作相应的业务层处理”。背后的故事&#xff1a;对于这个问…

Windows 10搭建Java开发平台——Java 8

Java是一门面向对象编程语言&#xff0c;不仅吸收了C语言的各种优点&#xff0c;还摒弃了C里难以理解的多继承、指针等概念&#xff0c;因此Java语言具有功能强大和简单易用两个特征。Java语言作为静态面向对象编程语言的代表&#xff0c;极好地实现了面向对象理论&#xff0c;…

连接到外部sql server工具类

首先第一步&#xff1a;我们需要下载一个jtds驱动让Android连接数据库 jtds下载地址&#xff1a;http://sourceforge.net/projects/jtds/files/ 第二步&#xff1a;数据库连接和测试类DataBaseUtil.java public class DataBaseUtil {private static Connection getSQLConnec…