Settings
Disable Developer Mode
adb shell settings put global --user 0 development_settings_enabled 0
Enable Developer Mode
adb shell settings put global --user 0 development_settings_enabled 1
Delete Developer Settings
adb shell settings delete global --user 0 development_settings_enabled
Enable ADB over USB
adb shell settings put global --user 0 adb_enabled 1
Enable ADB over Wi-Fi
adb shell settings put global --user 0 adb_wifi_enabled 1
Set the Allowed Connection Timeout for ADB
adb shell settings put global --user 0 adb_allowed_connection_time 1
Enable or Disable Airplane Mode
adb shell settings put global --user 0 airplane_mode_on 0
Set the Radios for Airplane Mode
adb shell settings put global --user 0 airplane_mode_radios cell,bluetooth,wifi,nfc,wimax
Set the Toggleable Radios for Airplane Mode
adb shell settings put global --user 0 airplane_mode_toggleable_radios cell,bluetooth,wifi,nfc
Enable Secure Wi-Fi Backup Existence
adb shell settings put global --user 0 SecureWifiBackupExist 1
Set the Notification Sound Timeout for Low Battery
adb shell settings put global --user 0 low_battery_sound_timeout 0
Set the Default Video Quality
adb shell settings put global --user 0 video_quality 1080
Set the User Setup Complete Status for Optimizing Apps at Boot
adb shell settings put secure --user 0 user_setup_complete 1
Allow Private Notifications on the Lock Screen
adb shell settings put secure --user 0 lock_screen_allow_private_notifications 1
Set the Lock Screen Timeout in Milliseconds
adb shell settings put secure --user 0 lock_screen_lock_after_timeout 5000
Enable or Disable Owner Info on the Lock Screen
adb shell settings put secure --user 0 lock_screen_owner_info_enabled 0
Show Notifications on the Lock Screen
adb shell settings put secure --user 0 lock_screen_show_notifications 1
Enable or Disable the Lock Screen
adb shell settings put secure --user 0 lockscreen.disabled 0
Enable Face Unlock for the Lock Screen
adb shell settings put secure --user 0 lockscreen.options enable_facelock
Show Controls on the Lock Screen
adb shell settings put secure --user 0 lockscreen_show_control 0
Show the Wallet on the Lock Screen
adb shell settings put secure --user 0 lockscreen_show_wallet 1
Show the Face Widget Area on the Lock Screen
adb shell settings put secure --user 0 lockstar_facewidget_area 1
Enable Mock Location (Required for Fake GPS)
adb shell settings put secure --user 0 mock_location 1
Enable Backup
adb shell settings put secure --user 0 backup_enabled 1
Protect Battery
adb shell settings put global --user 0 protect_battery 1
Enable Biometrics (Face)
adb shell settings put global --user 0 biometrics_disclaimer_face 1
Allow Private Notifications on the Lock Screen
adb shell settings put secure --user 0 lock_screen_allow_private_notifications 1
Set the Lock Screen Timeout in Milliseconds
adb shell settings put secure --user 0 lock_screen_lock_after_timeout 5000
Enable or Disable Owner Information on the Lock Screen
adb shell settings put secure --user 0 lock_screen_owner_info_enabled 0
Show Notifications on the Lock Screen
adb shell settings put secure --user 0 lock_screen_show_notifications 1
Enable or Disable the Lock Screen
adb shell settings put secure --user 0 lockscreen.disabled 0
Enable Face Unlock for the Lock Screen
adb shell settings put secure --user 0 lockscreen.options enable_facelock
Show Controls on the Lock Screen
adb shell settings put secure --user 0 lockscreen_show_control 0
Show the Wallet on the Lock Screen
adb shell settings put secure --user 0 lockscreen_show_wallet 1
Show the Face Widget Area on the Lock Screen
adb shell settings put secure --user 0 lockstar_facewidget_area 1
Enable Mock Location (Required for Fake GPS)
adb shell settings put secure --user 0 mock_location 1
Here are the rewritten versions of the commands with proper English:
Enable Backup
adb shell settings put secure --user 0 backup_enabled 1
Protect Battery
adb shell settings put global --user 0 protect_battery 1
Enable Biometrics (Face)
adb shell settings put global --user 0 biometrics_disclaimer_face 1
Enable Biometrics (Fingerprint)
adb shell settings put global --user 0 biometrics_disclaimer_fingerprint 1
Enable or Disable Screen Rotation
adb shell settings put system --user 0 accelerometer_rotation 0
Disable the Lock Screen
adb shell settings put secure --user 0 lockscreen.disabled 1
Enable Speak Password
adb shell settings put secure --user 0 speak_password 1
List Secure Settings
adb shell settings list --user 0 secure
List Global Settings
adb shell settings list --user 0 global
List System Settings
adb shell settings list --user 0 system
Inspect any Customized Doze Settings. It returns null if none has been set.
adb shell settings get global device_idle_constants
Reset Customized Doze Settings to Default
adb shell settings delete global device_idle_constants
Check How Many Times the Device Has Started
adb shell settings get global boot_count
Hide/Show Status/Navigation Bars
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 immersive.full=*
adb shell settings put global policy_control null*
It is also possible to specify this behavior for a specific application
Examples to modify the behavior when Enterprise Browser is in the foreground:
adb shell settings put global policy_control immersive.full=com.honeywell.enterprisebrowser
adb shell settings put global policy_control immersive.navigation=com.honeywell.enterprisebrowser
adb shell settings put global policy_control immersive.status=com.honeywell.enterprisebrowser
Doze Device Idle State Transition
When a device enters an IDLE state, the Doze mode becomes active, reducing battery usage. There are two state machines running in parallel during this process.
- Actually there are two state machines running in parallel
- In any IDLE state the Doze mode is active and battery usaage gets reduced.
Customized Doze Settings
Inspect any customized Doze settings:
adb shell settings get global device_idle_constants
Configure customized Doze settings:
To ignore Deep Doze and discard any motion by increasing the inactive_to (and motion_inactive_to) timeout:
adb shell settings put global device_idle_constants inactive_to=2592000000,motion_inactive_to=2592000000
To ignore Deep Doze and use Light Doze, mimicking Deep Doze timing:
adb shell settings put global device_idle_constants inactive_to=2592000000,motion_inactive_to=2592000000,light_after_inactive_to=3000000,light_max_idle_to=21600000,light_idle_to=3600000,light_idle_maintenance_max_budget=600000,min_light_maintenance_time=30000
To idle causally at the beginning and increasingly keep idle as much as possible without taking motion into account:
adb shell settings put global device_idle_constants inactive_to=2592000000,motion_inactive_to=2592000000,light_after_inactive_to=20000,light_pre_idle_to=30000,light_max_idle_to=86400000,light_idle_to=1800000,light_idle_factor=1.5,l ight_idle_maintenance_max_budget=30000,light_idle_maintenance_min_budget=10000,min_time_to_alarm=60000
To idle as much as possible without taking motion into account:
adb shell settings put global device_idle_constants inactive_to=2592000000,motion_inactive_to=2592000000,light_after_inactive_to=15000,light_pre_idle_to=30000,light_max_idle_to=86400000,light_idle_to=43200000,light_idle_maintenance _max_budget=30000,light_idle_maintenance_min_budget=10000,min_time_to_alarm=60000
Reset Customized Doze Settings to Default
adb shell settings delete global device_idle_constants