1,常用adb命令
查看前台显示的Activity:adb shell "dumpsys activity | grep mFocus"
adb shell dumpsys window | findstr mCurrentFocus
获取手机的分辨率: adb shell wm size
屏幕密度:adb shell wm density
飞行模式开/关:adb shell settings put global airplane_mode_on 1/0
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true/false
设置灭屏时间(毫秒):adb shell settings put system screen_off_timeout 30000
global/system/secure
adb shell settings put system
adb shell settings get system
adb shell settings put global
adb shell settings get global
adb shell settings put secure
adb shell settings get secure
获取当前屏幕是否点亮:adb shell "dumpsys power | grep Dis
标签:shell,settings,global,system,笔记,adb,put,Android
From: https://blog.csdn.net/2403_87321402/article/details/142813014