查看手機型號
adb shell getprop ro.product.model
查看電池狀況
adb shell dumpsys battery
查看分辨率
adb shell wm size
查看屏幕密度
adb shell wm density
查看顯示屏參數
adb shell dumpsys window displays
查看android_id
adb shell settings get secure android_id
查看 Android 系統版本
adb shell getprop ro.build.version.release
查看IP地址,網卡相關
adb shell ifconfig
查看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 | 屏幕密度 |
查看包名和啟動入口
adb shell dumpsys window | findstr mFocusedApp