adb shell dumpsys 命令——打印当前系统信息
dumpsys简单介绍:该命令用户打印出当前系统信息,默认打印出所有service信息,可以在命令后面加入activity参数,只打印出activity相关的信息。可跟参数有以下这些:
Su易做图ceFlinger, 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, wall易做图, 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_wall易做图
android.hardware.touchscreen
android.hardware.sensor.accelerometer
补充:移动开发 , Android ,