1、获取手机系统信息( CPU,厂商名称等)
adb shell "cat /system/build.prop | grep "product""
2、获取手机系统版本
adb shell getprop ro.build.version.release
3、获取手机系统api版本
adb shell getprop ro.build.version.sdk
4、获取手机设备型号
adb -d shell getprop ro.product.model
5、获取手机厂商名称
adb -d shell getprop ro.product.brand
6、获取手机的序列号
adb shell getprop ro.serialno
7、获取手机wifi mac地址
adb shell cat /sys/class/net/wlan0/address
8、获取以太网 mac地址
adb shell cat /sys/class/net/eth0/address
9、获取手机内存信息
adb shell cat /proc/meminfo
10、获取手机分辨率
adb shell "dumpsys window | grep mUnrestrictedScreen"
12、获取手机物理密度
adb shell wm density
13、adb发送广播
adb shell am broadcast -a android.intent.action.CHECK_OTA_UPDATE_VERSION --ei "updateMode" 2
14、返回值
input keyevent 4
15、卸载APP
adb uninstall 包名
16、清理app缓存
adb shell pm clear 包名
17、adb网络连接多台使用shell进入设备
adb -s 127.0.0.1:5555 shell
18、启动APP
adb shell am start -n com.android.camera2/com.android.camera.CameraActivity
adb shell am start -n com.android.soundrecorder/com.android.soundrecorder.SoundRecorder
adb shell am start -n com.android.settings/com.android.settings.Settings
adb shell am start -n com.android.launcher3/com.android.launcher3.Launcher
19、退出APP
adb shell am force-stop com.android.camera2