Reproduced from adb to obtain mobile phone information
1. Obtain mobile phone system information (CPU, manufacturer name, etc.)
adb shell "cat /system/build.prop | grep "product""
- 1
2. Get the phone system version
adb shell getprop ro.build.version.release
- 1
3. Get the api version of the mobile phone system
adb shell getprop ro.build.version.sdk
- 1
4. Get the model of the mobile phone
adb -d shell getprop ro.product.model
- 1
5. Get the name of the mobile phone manufacturer
adb -d shell getprop ro.product.brand
- 1
6. Get the serial number of the phone
There are two ways
1、 adb get-serialno
- 1
2、 adb shell getprop ro.serialno
- 1
7. Get the IMEI of the phone
There are three ways. Due to the limitations of the mobile phone and the system, it may not be obtained.
1、 adb shell dumpsys iphonesubinfo
- 1
The Device ID is the IMEI number
2、 adb shell getprop gsm.baseband.imei
- 1
3、 service call iphonesubinfo 1
- 1
In this way, you need to process the acquired information yourself to get
8. Obtain the mac address of the mobile phone
adb shell cat /sys/class/net/wlan0/address
- 1
- 2
9. Get mobile phone memory information
adb shell cat /proc/meminfo
- 1
10. Get mobile phone storage information
adb shell df
- 1
Get phone internal storage information:
魅族手机: adb shell df /mnt/shell/emulated
- 1
其他: adb shell df /data
- 1
Get sdcard storage information:
adb shell df /storage/sdcard
- 1
11. Get the phone resolution
adb shell "dumpsys window | grep mUnrestrictedScreen"
- 1
12. Obtain the physical density of the mobile phone
adb shell wm density