当前位置:   article > 正文

adb常用命令_adb shell am start -n com.android.launcher3/com.an

adb shell am start -n com.android.launcher3/com.android.launcher3.launcher

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

  1. adb shell am start -n com.android.camera2/com.android.camera.CameraActivity
  2. adb shell am start -n com.android.soundrecorder/com.android.soundrecorder.SoundRecorder
  3. adb shell am start -n com.android.settings/com.android.settings.Settings
  4. adb shell am start -n com.android.launcher3/com.android.launcher3.Launcher

19、退出APP

adb shell am force-stop com.android.camera2

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/134385
推荐阅读
相关标签
  

闽ICP备14008679号