惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
博客园 - 【当耐特】
博客园_首页
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
V
Visual Studio Blog
F
Fortinet All Blogs
Martin Fowler
Martin Fowler

博客园 - Gavin Liu

sp_MSforeachtable 与 sp_MSforeachdb Microsoft SQL Server 数据库服务器管理维护角色 HttpHander与httpModel配置与应用 镜像数据库日志截断方法 SQL Server 2008连接字符串写法大全 .NET分布式事务处理 .net 事务处理的三种方法 SQLServer游标(Cursor) (B) SQLServer 游标 (A) 无光驱在32位windows系统下安装64位windows系统 Create a SQL Server Database on a network shared drive Sql server 2008镜像配置步骤 如何获取SQLite最新版本及SQLite数据库中的SQL语句解说 sqlite错误 The database disk image is malformed database disk image is malformed 可解决 Xml中SelectSingleNode方法中的xpath用法[转] 利用ASP在线压缩access数据库 英文 视频 老友记 第一季 第二季 第三季 第四季 第五季 第六季 第七季 第八季 第九季 第十季 几个好用的webservice SQL Server 2008 中文版安装下载地址
android adb shell dumpsys
Gavin Liu · 2013-05-10 · via 博客园 - Gavin Liu

x:\>adb shell dumpsys
===================

Android has an interesting command called dumpsys  to dump some system information. Even described on adb manual  I think that some points should be reinforced. In order to get the complete status just run (will produce a large output):
adb shell dumpsys

Also you can apply filters to running services:
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

Some examples:
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}'

=========================

获取MEDI号码
x:\>adb shell dumpsys iphonesubinfo

Phone Subscriber Info:
  Phone Type = GSM
  Device ID = 012345678901234

posted @ 2013-05-10 18:23  Gavin Liu  阅读(746)  评论()    收藏  举报