原文链接:https://blog.csdn.net/zhuhai__yizhi/article/details/48003095
https://blog.csdn.net/fasfaf454/article/details/51438743
获取系统版本:adb shell getprop ro.build.version.release
获取系统api版本:adb shell getprop ro.build.version.sdk
获取手机相关制造商信息:adb shell getprop | grep "model\|version.sdk\|manufacture
r\|hardware\|platform\|revision\|serialno\|product.name\|brand"
有两种方式
1、 adb get-serialno 1 2、 adb shell getprop ro.serialno 1有三种方式,由于手机和系统的限制,不一定获取到
1、 adb shell dumpsys iphonesubinfo 1其中Device ID即为IMEI号
2、 adb shell getprop gsm.baseband.imei 1 3、 service call iphonesubinfo 1 1此种方式,需要自己处理获取的信息得到
获取手机内部存储信息:
魅族手机: adb shell df /mnt/shell/emulated 1 其他: adb shell df /data 1获取sdcard存储信息:
adb shell df /storage/sdcard 1