adb shell dumpsys 命令——打印当前系统信息

转载自http://www.2cto.com/kf/201212/179660.html


dumpsys简单介绍:该命令用户打印出当前系统信息,默认打印出所有service信息,可以在命令后面加入activity参数,只打印出activity相关的信息。

可跟参数有以下这些:
SurfaceFlinger, accessibility, account, activity, alarm, appwidget, audio, backup, battery, batteryinfo, bluetooth, bluetooth_a2dp, clipboard, connectivity, content, cpuinfo, device_policy, devicestoragemonitor, diskstats, dropbox, entropy, hardware, hdmi, input_method, iphonesubinfo, isms, location, media.audio_flinger, media.audio_policy, media.camera, media.player, meminfo, mount, netstat, network_management, notification, package, permission, phone, power, search, sensor, simphonebook, statusbar, telephony.registry, throttle, uimode, usagestats, vibrator, wallpaper, wifi, window
 
例如:>adb shell dumpsys package>package.txt
 
package>package.txt
是使用管道将信息打印的package.txt中,再使用文本编辑器打开帮助我们更好的搜索和分析。
打开package.txt,部分内容如下所示:
Libraries:
  android.test.runner -> /system/framework/android.test.runner.jar
  com.jayway.android.robotium -> /system/framework/robotium.jar
  com.mediatek.location.provider -> /system/framework/com.mediatek.location.provider.jar
  com.google.widevine.software.drm -> /system/framework/com.google.widevine.software.drm.jar
  javax.obex -> /system/framework/javax.obex.jar
  com.android.future.usb.accessory -> /system/framework/com.android.future.usb.accessory.jar
  com.android.location.provider -> /system/framework/com.android.location.provider.jar
 
Features:
  android.hardware.wifi
  android.hardware.location.network
  android.hardware.telephony
  android.hardware.location
  android.software.sip
  android.hardware.touchscreen.multitouch.jazzhand
  android.hardware.touchscreen.multitouch
  android.hardware.screen.landscape
  android.hardware.screen.portrait
  android.hardware.faketouch
  android.hardware.camera
  android.hardware.wifi.direct
  android.hardware.usb.accessory
  android.hardware.touchscreen.multitouch.distinct
  android.hardware.bluetooth
  android.software.sip.voip
  android.hardware.sensor.light
  android.hardware.microphone
  android.hardware.location.gps
  android.hardware.telephony.gsm
  android.hardware.camera.front
  android.software.live_wallpaper
  android.hardware.touchscreen
  android.hardware.sensor.accelerometer

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值