param Tool
Note:
Currently in the beta phase.
param is a system parameter operation tool for developers, which only supports standard systems.
Environment Requirements
- Obtain the hdc tool and execute
hdc shell. - Ensure the device is properly connected.
param Command List
| Option | Description |
|---|---|
| -h | Get the commands supported by param. |
| ls [-r] [name] | Display system parameter information matching the name. With "-r", it retrieves information based on parameter permissions; without "-r", it directly fetches parameter information. |
| get [name] | Get the value of the specified system parameter by name; if no name is specified, returns all system parameters. |
| set name value | Set the value of the specified system parameter by name. |
| wait name [value] [timeout] | Synchronously wait for the specified system parameter to match the given value. Value supports fuzzy matching, e.g., "*" for any value, "val*" for values starting with "val". Timeout is the wait duration (in seconds), defaulting to 30s if not specified. |
| save | Save persist parameters to the workspace. |
Get Commands Supported by param
-
To get the commands supported by param, use the following format:
param -h
Get System Parameter Information
-
Display system parameter information matching the name, using the following format:
param ls [-r] [name]Examples:

Get System Parameter Values
-
Get the value of the specified system parameter by name, using the following format:
param get [name]Example:

Set System Parameter Values
-
Set the value of the specified system parameter by name, using the following format:
param set name valueExample:

Wait for System Parameter Value Match
-
Synchronously wait for the specified system parameter to match the given value, using the following format:
param wait name [value] [timeout]Example:

Save Persist Parameters
-
Save persist parameters to the workspace, using the following format:
param saveExample:
