adb命令可在环境显示设置中禁用“始终打开”和“提起电话检查功能”

时间:2018-12-07 07:42:23

标签: android adb

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

  • 设置>显示>环境显示>始终打开
  • 设置>显示>环境显示>提起以检查电话

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

adb shell settings put secure doze_enabled 0

1 个答案:

答案 0 :(得分:0)

要找出某些系统设置的名称,可以使用以下技术:

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

2)在“设置”应用程序中更改所需的设置

3)再次从设备导出所有设置:

adb shell settings list global > global_after.txt
adb shell settings list system > system_after.txt
adb shell settings list secure > secure_after.txt

4)比较之前/之后的文件,您将发现的唯一更改将是您的设置。


因此,我发现您可以通过以下命令关闭Lift以检查电话:

adb shell settings put system lift_to_wake=0

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