adb命令

@[toc]
# 1.自己常用命令:
## 1.1 安装apk
adb install -r -d ***.apk -r replace -d downGrade

## 1.2 查看进程号
adb shell
ps -ef |grep ***

## 1.3 更改分辨率
adb shell wm size 1080x1920 更改
adb shell wm size reset 恢复

adb shell
dumpsys window displays |grep init 查看分辨率

## 1.4 打开设置
adb shell am start com.android.settings 开启设置页面
adb shell am start 应用包名/.应用包名下类名 开启设置页面
adb shell am start 应用包名/其他包名+.类名 开启设置页面
adb shell am start -a action action为广播的action 开启设置页面

## 1.5 查看surfaceflinger
adb shell
dumpsys SurfaceFlinger

## 1.6 查看属性
adb shell getprop |grep ***

# 2.详细命令参考如下:
转载:https://github.com/mzlogin/awesome-adb#%E5%91%BD%E4%BB%A4%E8%AF%AD%E6%B3%95

转载:https://www.cnblogs.com/yanhuidj/p/8609391.html

https://blog.csdn.net/chenbing81/article/details/79455175

 

posted @ 2019-10-22 09:36  81192  阅读(163)  评论(0编辑  收藏  举报