adb 命令可在环境显示设置中禁用“始终开启”和“抬起以检查手机”

问题描述 投票:0回答:1

我想通过adb命令关闭以下两个设置,有人知道怎么做吗?

  • 设置 > 显示 > 环境显示 > 始终开启
  • 设置 > 显示 > 环境显示 > 抬起查看手机

我尝试了下面的命令,它似乎只在有新通知时禁用唤醒屏幕:

adb shell settings put secure doze_enabled 0
android adb
1个回答
4
投票

要查找某些系统设置的名称,您可以使用此技术:

  1. 从设备导出所有设置:
    adb shell settings list global > global_before.txt
    adb shell settings list system > system_before.txt
    adb shell settings list secure > secure_before.txt
  1. 在“设置”应用程序中更改所需的设置

  2. 再次从设备导出所有设置:

    adb shell settings list global > global_after.txt  
    adb shell settings list system > system_after.txt  
    adb shell settings list secure > secure_after.txt  
  1. 比较之前/之后的文件,您会发现的单个更改将是您的设置。

所以,我发现你可以用这个命令关闭Lift来检查电话:

adb shell settings put system lift_to_wake 0

您会发现自己是第二个,因为我不知道它对应于我手机上的什么设置(我的“设置”应用程序的组织方式不同)。

© www.soinside.com 2019 - 2024. All rights reserved.