用织梦做网站,优化大师免安装版,东莞网站优化平台,网站推广优化哪家公司好屏幕设置
屏幕亮度
# 当前屏幕亮度
adb shell settings get system screen_brightness# 更改屏幕亮度adb shell settings put system screen_brightness屏幕休眠时间
# 当前屏幕休眠时间
adb shell settings get system screen_off_timeout#更改屏幕休眠时间
adb shell sett…
屏幕设置
屏幕亮度
# 当前屏幕亮度
adb shell settings get system screen_brightness# 更改屏幕亮度adb shell settings put system screen_brightness
屏幕休眠时间
# 当前屏幕休眠时间
adb shell settings get system screen_off_timeout#更改屏幕休眠时间
adb shell settings put system screen_off_timeout 10000
蓝牙
获取蓝牙状态
# 1是开,0是关
adb shell settings get global bluetooth_on# enabled:true是开,enabled: false是关
adb shell dumpsys bluetooth_manager | findstr enabled
设置蓝牙状态
# 开启蓝牙
adb shell settings put global bluetooth_on 1# 关闭蓝牙
adb shell settings put global bluetooth_on 0# 这个方法重启才会生效
adb shell svc bluetooth enable
adb shell svc bluetooth disable# 出现弹窗,点击允许后开启蓝牙
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE# 进入蓝牙界面,根据实际再点击页面
adb shell am start -a android.settings.BLUETOOTH_SETTINGS# 调用appium的广播,会出现弹窗需点击
adb shell am broadcast -a io.appium.settings.bluetooth --es setstatus enable
# 有wpa_supplicant就表示wifi开启,有hostapd就表示热点开启
wifi 626113992328000 S android.hardware.wifi@1.0-service
wifi 1016115264294400 S wificond
wifi 4961123880794400 S wpa_supplicant
wifi 5027113384493600 S hostapd