我想通过adb命令关闭以下两个设置,有人知道怎么做吗?
我尝试了下面的命令,它似乎只在有新通知时禁用唤醒屏幕:
adb shell settings put secure doze_enabled 0
要查找某些系统设置的名称,您可以使用此技术:
adb shell settings list global > global_before.txt
adb shell settings list system > system_before.txt
adb shell settings list secure > secure_before.txt
在“设置”应用程序中更改所需的设置
再次从设备导出所有设置:
adb shell settings list global > global_after.txt
adb shell settings list system > system_after.txt
adb shell settings list secure > secure_after.txt
所以,我发现你可以用这个命令关闭Lift来检查电话:
adb shell settings put system lift_to_wake 0
您会发现自己是第二个,因为我不知道它对应于我手机上的什么设置(我的“设置”应用程序的组织方式不同)。