[英]Changing doze mode setting using adb
從我從“ 打ze編輯器”應用程序的源代碼中學到的知識,可以使用adb更改打ze設置。
我的問題是,一次只能更改一個設置嗎?
例如:
adb shell settings put global device_idle_constants KEY_INACTIVE_TIMEOUT=720000
還是應該將所有值對都用逗號分隔?
例如:
adb shell settings put global device_idle_constants KEY_INACTIVE_TIMEOUT=720000, KEY_SENSING_TIMEOUT=xxxx, KEY_LOCATING_TIMEOUT=yyyy ... and so on
一次只能更改一個設置嗎?
是的,您不能一次更改多個設置。
如您在命令幫助中所見,命令adb shell settings
僅支持一個鍵/值。
adb shell settings
usage: settings [--user NUM] get namespace key
settings [--user NUM] put namespace key value
settings [--user NUM] delete namespace key
'namespace' is one of {system, secure, global}, case-insensitive
If '--user NUM' is not given, the operations are performed on the owner user.
根據Android SDK中的官方評論,您需要將所有值對放在鍵“ device_idle_constants”下,例如:“ inactive_timeout = 60000,sensing_timeout = 400000”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.