多语言展示
当前在线:739今日阅读:2今日分享:38

android命令settings详解

settingsusage:  settings [--user NUM] get namespace key        settings [--user NUM] put namespace key value'namespace' is one of {system, secure, global}, case-insensitiveIf '--user NUM' is not given, the operations are performed on the owner user.
1
1

获取值settings get system namespace keysettings get global namespace keysettings get secure namespace key设置值settings put system namespace keysettings put global namespace keysettings put secure namespace key{system, secure, global}对应的是/data/data/com.android.providers.settings/databases/settings.db的三个表

3

global表settings get global namespace keysettings put global namespace keynamespace key清单如下----------------------------------------------------------------

4

securesettings get secure namespace keysettings put secure namespace keynamespace key清单如下---------------------------------------------------------------- 2   wifi_watchdog_watch_list   GoogleGuest  3   mock_location   0  4   backup_enabled   0  5   backup_transport   com.google.android.backup/.BackupTransportService  6   mount_play_not_snd   1  7   mount_ums_autostart   0  8   mount_ums_prompt   1  9   mount_ums_notify_enabled   1  10   accessibility_script_injection   0  11   accessibility_web_content_key_bindings   0x13=0x; 0x14=0x; 0x15=0x; 0x16=0x; 0x2=0x; 0x2=0x; 0x2=0x; 0x2=0x; 0x2=0x; 0x2=0x; 0x2=0x; 0x2=0x:0x:0x;  12   long_press_timeout   500  13   touch_exploration_enabled   0  14   speak_password   0  15   accessibility_script_injection_url   https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js  16   lockscreen.disabled   0  17   screensaver_enabled   1  18   screensaver_activate_on_dock   1  19   screensaver_activate_on_sleep   0  20   screensaver_components   com.android.deskclock/com.android.deskclock.Screensaver  21   screensaver_default_component   com.android.deskclock/com.android.deskclock.Screensaver  22   accessibility_display_magnification_enabled   0  23   accessibility_display_magnification_scale   2.0  24   accessibility_display_magnification_auto_update   1  26   default_theme_package     27   default_theme_components     28   android_id   8c3f03f7581135df  31   selected_input_method_subtype   -1  32   selected_spell_checker   com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService  33   selected_spell_checker_subtype   0  35   lock_screen_owner_info_enabled   0  37   sms_default_application   com.android.mms  39   input_methods_subtype_history   com.android.inputmethod.latin/.LatinIME;-921088104  41   bluetooth_address   22:22:F5:8B:19:12  42   bluetooth_addr_valid   1  43   user_setup_complete   1  45   lock_screen_fallback_appwidget_id   4  46   advanced_reboot   1  48   location_providers_allowed     50   enabled_input_methods   com.android.inputmethod.latin/.LatinIME:com.iflytek.inputmethod/.FlyIME  51   default_input_method   com.iflytek.inputmethod/.FlyIME  53   recents_long_press_activity     54   incall_power_button_behavior   2  55   ring_home_button_behavior   2  56   app_perf_profiles_enabled   1  61   enabled_notification_listeners   org.cyanogenmod.theme.chooser/org.cyanogenmod.theme.chooser.NotificationHijackingService  65   adb_port   -1  66   bluetooth_name   qing  67   themeConfig   {'default':{'mOverlayPkgName':'holo','mIconPkgName':'holo','mFontPkgName':'holo'}}

推荐信息