android settins 命令

android 系统提供的settings命令可以获取系统的setting的相关信息。

settings命令使用操作如下:

 # settings
usage:  settings [--user <USER_ID> | current] get namespace key
        settings [--user <USER_ID> | current] put namespace key value
        settings [--user <USER_ID> | current] delete namespace key
        settings [--user <USER_ID> | current] list namespace

'namespace' is one of {system, secure, global}, case-insensitive
If '--user <USER_ID> | current' is not given, the operations are performed on the system user.

settings可操作的名字空间有system,secure,global,并且大小写敏感。

命名空间system的关键字列表:

 # settings list system
accelerometer_rotation=1
alarm_alert=content://media/internal/audio/media/9
alarm_alert_set=1
background_services_limit_count=3
bright_system_mode=0
brightness_light_mode=1
dim_screen=1
dtmf_tone=1
dtmf_tone_type=0
gesture_screenrecord_enable=0
gesture_screenshot_enable=0
haptic_feedback_enabled=1
hdmi_full_screen=0
hdmi_output_mode=10
hdmi_persent=25700
hearing_aid=0
kill_background_services=1
lockscreen_sounds_enabled=1
mode_ringer_streams_affected=166
mute_streams_affected=46
notification_light_pulse=1
notification_sound=content://media/internal/audio/media/89
notification_sound_set=1
pax_preinstalled_files=null,ESFileExplorer,VideoPlayer
paxosmanager_first_run=1
pointer_speed=0
ringtone=content://media/internal/audio/media/170
ringtone_set=1
screen_brightness=102
screen_brightness_mode=0
screen_off_timeout=2147483647
sound_effects_enabled=1
transition_animation_scale=0.0
tty_mode=0
vibrate_when_ringing=0
volume_alarm=6
volume_bluetooth_sco=7
volume_music=11
volume_music_headphone=10
volume_music_headset=10
volume_notification=5
volume_ring=5
volume_system=7
volume_voice=4
window_animation_scale=0.0

 

命名空间secure 的关键字列表:

# settings list secure
accessibility_display_magnification_auto_update=1
accessibility_display_magnification_enabled=0
accessibility_display_magnification_scale=2.0
accessibility_enabled=0
accessibility_script_injection=0
accessibility_script_injection_url=https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js
accessibility_web_content_key_bindings=0x13=0x01000100; 0x14=0x01010100; 0x15=0x02000001; 0x16=0x02010001; 0x200000013=0x02000601; 0x200000014=0x02010601; 0x200000015=0x03020101; 0x200000016=0x03010201; 0x200000023=0x02000301; 0x200000024=0x02010301; 0x200000037=0x03070201; 0x200000038=0x03000701:0x03010701:0x03020701;
android_id=de155242b41a2c24
backup_enabled=0
backup_transport=android/com.android.internal.backup.LocalTransport
bluetooth_addr_valid=1
bluetooth_address=22:22:66:07:8A:82
bluetooth_name=IM30
camera_double_tap_power_gesture_disabled=1
default_input_method=com.android.inputmethod.latin/.LatinIME
double_tap_to_wake=1
enabled_input_methods=com.android.inputmethod.latin/.LatinIME
enabled_notification_policy_access_packages=com.android.camera2
immersive_mode_confirmations=
input_methods_subtype_history=com.android.inputmethod.latin/.LatinIME;-921088104
install_non_market_apps=1
location_providers_allowed=network
lock_screen_allow_private_notifications=1
lock_screen_owner_info_enabled=0
lock_screen_show_notifications=1
lockscreen.disabled=0
long_press_timeout=400
mock_location=0
mount_play_not_snd=1
mount_ums_autostart=0
mount_ums_notify_enabled=1
mount_ums_prompt=1
screensaver_activate_on_dock=1
screensaver_activate_on_sleep=0
screensaver_components=com.android.deskclock/com.android.deskclock.Screensaver
screensaver_default_component=com.android.deskclock/com.android.deskclock.Screensaver
screensaver_enabled=1
selected_input_method_subtype=-921088104
selected_spell_checker=com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
selected_spell_checker_subtype=0
show_ime_with_hard_keyboard=0
show_note_about_notification_hiding=0
sleep_timeout=-1
snoozed_schedule_condition_provider=
speak_password=0
sysui_tuner_version=1
touch_exploration_enabled=0
trust_agents_initialized=1
user_setup_complete=1
volume_controller_service_component=null
wake_gesture_enabled=1

命名空间global的关键字列表:

# settings list global
adb_enabled=1
add_users_when_locked=0
airplane_mode_on=0
airplane_mode_radios=cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios=bluetooth,wifi,nfc
assisted_gps_enabled=1
audio_safe_volume_state=3
auto_time=1
auto_time_zone=1
bluetooth_disabled_profiles=0
bluetooth_on=0
boot_count=4
call_auto_retry=0
captive_portal_detection_enabled=1
captive_portal_server=connect.rom.miui.com
car_dock_sound=/system/media/audio/ui/Dock.ogg
car_undock_sound=/system/media/audio/ui/Undock.ogg
cdma_cell_broadcast_sms=1
data_roaming=1
default_install_location=0
desk_dock_sound=/system/media/audio/ui/Dock.ogg
desk_undock_sound=/system/media/audio/ui/Undock.ogg
device_name=IM30
device_provisioned=1
dock_audio_media_enabled=1
dock_sounds_enabled=0
emergency_tone=0
heads_up_notifications_enabled=1
lock_sound=/system/media/audio/ui/Lock.ogg
low_battery_sound=/system/media/audio/ui/LowBattery.ogg
low_battery_sound_timeout=0
mobile_data=1
mode_ringer=2
netstats_enabled=1
network_scoring_provisioned=1
package_verifier_enable=1
power_sounds_enabled=1
preferred_network_mode=0
set_install_location=0
stay_on_while_plugged_in=0
subscription_mode=0
theater_mode_on=0
trusted_sound=/system/media/audio/ui/Trusted.ogg
unlock_sound=/system/media/audio/ui/Unlock.ogg
usb_mass_storage_enabled=1
volte_vt_enabled=1
webview_provider=com.android.webview
wifi_display_on=0
wifi_max_dhcp_retry_count=9
wifi_networks_available_notification_on=1
wifi_on=1
wifi_scan_always_enabled=0
wifi_sleep_policy=2
wireless_charging_started_sound=/system/media/audio/ui/WirelessChargingStarted.ogg
zen_mode=0
zen_mode_config_etag=437348748

这三个关键字包含了setting设置中的所有选项和系统中的一些配置信息。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值