Android DeviceConfig

frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DeviceConfigService.java

Android DeviceConfig.java 系统设备配置调试命令:device_config命令
device_config命令和settings命令使用方式很相似。

adb shell device_config get NAMESPACE KEY
adb shell device_config put NAMESPACE KEY VALUE
adb shell device_config list NAMESPACE

adb shell device_config get rollback enable_rollback_timeout
adb shell device_config put rollback enable_rollback_timeout 10000

        @Override
        public void onHelp() {
            PrintWriter pw = getOutPrintWriter();
            pw.println("Device Config (device_config) commands:");
            pw.println("  help");
            pw.println("      Print this help text.");
            pw.println("  get NAMESPACE KEY");
            pw.println("      Retrieve the current value of KEY from the given NAMESPACE.");
            pw.println("  put NAMESPACE KEY VALUE [default]");
            pw.println("      Change the contents of KEY to VALUE for the given NAMESPACE.");
            pw.println("      {default} to set as the default value.");
            pw.println("  delete NAMESPACE KEY");
            pw.println("      Delete the entry for KEY for the given NAMESPACE.");
            pw.println("  list [NAMESPACE]");
            pw.println("      Print all keys and values defined, optionally for the given "
                    + "NAMESPACE.");
            pw.println("  reset RESET_MODE [NAMESPACE]");
            pw.println("      Reset all flag values, optionally for a NAMESPACE, according to "
                    + "RESET_MODE.");
            pw.println("      RESET_MODE is one of {untrusted_defaults, untrusted_clear, "
                    + "trusted_defaults}");
            pw.println("      NAMESPACE limits which flags are reset if provided, otherwise all "
                    + "flags are reset");
        }

你可能感兴趣的:(android)