Investigate adb shell settings --lineage #61

Closed
opened 2026-02-19 17:55:37 +01:00 by Benjamin_Loison · 0 comments
adb shell settings 
Output:
Settings provider (settings) commands:
  help
      Print this help text.
  get [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY
      Retrieve the current value of KEY.
  put [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY VALUE [TAG] [default] [overrideableByRestore]
      Change the contents of KEY to VALUE.
      TAG to associate with the setting (cannot be default or overrideableByRestore).
      {default} to set as the default, case-insensitive only for global/secure namespace
      {overrideableByRestore} to let the value be overridden by BackupManager on restore operations
  delete [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY
      Delete the entry for KEY.
  reset [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE {PACKAGE_NAME | RESET_MODE}
      Reset the global/secure table for a package with mode.
      RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
  list [--user <USER_ID> | current] [--lineage] NAMESPACE
      Print all defined keys.
      NAMESPACE is one of {system, secure, global}, case-insensitive
adb shell settings list --lineage system
Output:
app_switch_wake_screen=0
assist_wake_screen=0
back_wake_screen=0
battery_light_brightness_level=255
battery_light_brightness_level_zen=255
camera_launch=0
camera_sleep_on_release=0
camera_wake_screen=0
click_partial_screenshot=0
display_color_adjustment=1.0 1.0 1.0
double_tap_sleep_gesture=1
force_show_navbar=0
high_touch_polling_rate_enable=0
high_touch_sensitivity_enable=0
home_wake_screen=1
live_display_hinted=1
menu_wake_screen=0
navigation_bar_hint=1
notification_light_brightness_level=255
notification_light_brightness_level_zen=255
notification_light_pulse_custom_enable=0
proximity_on_wake=0
qs_quick_pulldown=0
status_bar_am_pm=2
status_bar_battery_style=0
status_bar_clock=2
status_bar_clock_auto_hide=0
status_bar_show_battery_percent=1
swap_volume_keys_on_rotation=0
system_profiles_enabled=1
torch_long_press_power_gesture=1
trust_interface_hinted=1
volbtn_music_controls=1
volume_answer_call=0
volume_wake_screen=0
adb shell settings list system | grep status_bar_am_pm

does not return anything for instance.

I checked all entries of all categories.

It helps Benjamin_Loison/Backup_Android_apps/issues/40.

```bash adb shell settings ``` <details> <summary>Output:</summary> ``` Settings provider (settings) commands: help Print this help text. get [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY Retrieve the current value of KEY. put [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY VALUE [TAG] [default] [overrideableByRestore] Change the contents of KEY to VALUE. TAG to associate with the setting (cannot be default or overrideableByRestore). {default} to set as the default, case-insensitive only for global/secure namespace {overrideableByRestore} to let the value be overridden by BackupManager on restore operations delete [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY Delete the entry for KEY. reset [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE {PACKAGE_NAME | RESET_MODE} Reset the global/secure table for a package with mode. RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive list [--user <USER_ID> | current] [--lineage] NAMESPACE Print all defined keys. NAMESPACE is one of {system, secure, global}, case-insensitive ``` </details> ```bash adb shell settings list --lineage system ``` <details> <summary>Output:</summary> ``` app_switch_wake_screen=0 assist_wake_screen=0 back_wake_screen=0 battery_light_brightness_level=255 battery_light_brightness_level_zen=255 camera_launch=0 camera_sleep_on_release=0 camera_wake_screen=0 click_partial_screenshot=0 display_color_adjustment=1.0 1.0 1.0 double_tap_sleep_gesture=1 force_show_navbar=0 high_touch_polling_rate_enable=0 high_touch_sensitivity_enable=0 home_wake_screen=1 live_display_hinted=1 menu_wake_screen=0 navigation_bar_hint=1 notification_light_brightness_level=255 notification_light_brightness_level_zen=255 notification_light_pulse_custom_enable=0 proximity_on_wake=0 qs_quick_pulldown=0 status_bar_am_pm=2 status_bar_battery_style=0 status_bar_clock=2 status_bar_clock_auto_hide=0 status_bar_show_battery_percent=1 swap_volume_keys_on_rotation=0 system_profiles_enabled=1 torch_long_press_power_gesture=1 trust_interface_hinted=1 volbtn_music_controls=1 volume_answer_call=0 volume_wake_screen=0 ``` </details> ```bash adb shell settings list system | grep status_bar_am_pm ``` does not return anything for instance. I checked all entries of all categories. It helps [Benjamin_Loison/Backup_Android_apps/issues/40](https://codeberg.org/Benjamin_Loison/Backup_Android_apps/issues/40).
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/adb#61