Appium - adb android phone for information systems

Transfer: https://blog.csdn.net/l_vaule/article/details/79866396

adb devices plurality of devices using adb -s devicename specified equipment operating

Get System Version: adb shell getprop ro.build.version.release

Acquisition system api version: adb shell getprop ro.build.version.sdk

Handset manufacturers to obtain relevant information: adb shell getprop | grep "model \ | version.sdk \ | manufacture

r\|hardware\|platform\|revision\|serialno\|product.name\|brand"

1, access to the phone system information (CPU, trade names, etc.)
adb shell "CAT /system/build.prop | grep" Product ""

2, access to the phone system version
adb shell getprop ro.build.version.release

3, access to the phone system api version
adb shell getprop ro.build.version.sdk

4, access to the phone device model
adb -d shell getprop ro.product.model

5, mobile phone manufacturers get the name of
adb -d shell getprop ro.product.brand

6, access to the phone's serial number
in two ways
1, adb GET-serialno
2, adb shell GetProp ro.serialno

7, access to the phone's IMEI
three ways, due to mobile phones and systems, not necessarily to get

1、 adb shell dumpsys iphonesubinfo

Wherein the Device ID is the IMEI number
2, adb shell getprop gsm.baseband.imei

3、 service call iphonesubinfo 1 

Information in this way, we need to deal with their own acquired obtain

8, get phone mac address
adb shell cat / sys / class / net / wlan0 / address

9, access to the phone's memory information
adb shell cat / proc / meminfo

10, access to the phone store information
adb shell df

Obtaining internal phone storage information:

Meizu phone: adb shell df / mnt / shell / emulated

Other: adb shell df / data

Get sdcard to store information:

adb shell df /storage/sdcard

11, get phone resolution
adb shell "dumpsys window | grep mUnrestrictedScreen "

12, access to mobile phones physical density
adb shell wm density

Guess you like

Origin blog.csdn.net/wx19900503/article/details/86623745