目录
查看设备信息
型号
- adb shell getprop ro.product.model
电池状况
- adb shell dumpsys battery : scale 表示最大点量,level 表示当前电量
屏幕分辨率
- adb shell wm size
屏幕密度
- adb shell wm density
显示屏参数
- adb shell dumpsys window displays
android_id
- adb shell settings get secure android_id
IMEI
- Android 4.4 及以下:adb shell dumpsys iphonesubinfo ,输出的
Device ID
就是 IMEI - Android 5.0 及以上:adb shell --> su --> service call iphonesubinfo 1
Android 系统版本
- adb shell getprop ro.build.version.release
IP 地址
- adb shell ifconfig | findstr Mask
- adb shell ifconfig wlan0 : 查看局域网ip
Mac 地址
- adb shell cat /sys/class/net/wlan0/address
CPU 信息
- adb shell cat /proc/cpuinfo
内存信息
- adb shell cat /proc/meminfo
更多硬件与系统属性
- adb shell cat /system/build.prop
查看某个属性
- adb shell getprop <属性名>
属性名 | 含义 |
---|---|
ro.build.version.sdk | SDK 版本 |
ro.build.version.release | Android 系统版本 |
ro.build.version.security_patch | Android 安全补丁程序级别 |
ro.product.model | 型号 |
ro.product.brand | 品牌 |
ro.product.name | 设备名 |
ro.product.board | 处理器型号 |
ro.product.cpu.abilist | CPU 支持的 abi 列表[节注一] |
persist.sys.isUsbOtgEnabled | 是否支持 OTG |
dalvik.vm.heapsize | 每个应用程序的内存上限 |
ro.sf.lcd_density | 屏幕密度 |