adb-安卓手机沉浸式命令

2018-01-02  本文已影响0人  向芽塔

1.PC端下载adb命令包
https://developer.android.google.cn/studio/releases/platform-tools.html

2.手机端进入开发者选项,开启USB调试
3.adb目录下按住shift键并点击鼠标右键,选择在此处打开命令行(win10)
4.输入以下代码以连接设备

adb devices

5.操作代码如下
①沉浸状态栏和导航栏

adb shell settings put global policy_control immersive.full=*

②沉浸状态栏

adb shell settings put global policy_control immersive.status=*

③沉浸导航栏

adb shell settings put global policy_control immersive.navigation=*

④恢复官方默认

adb shell settings put global policy_control null

⑤输入法导航栏bug解决

adb shell settings put global policy_control immersive.navigation=apps,-com.sec.app.screenrecorder

6.安卓8.0操作代码
沉浸导航栏:

adb shell wm overscan 0,0,0,0

上一篇 下一篇

猜你喜欢

热点阅读