openharmony 鸿蒙 param-tool

2025-06-12 浏览 (1)

param

The param tool enables you to operate system parameters. It is valid only for standard-system devices.

Environment Setup

  • You have obtained the hdc tool to run hdc shell commands.
  • The device is properly connected.

param Commands

CommandDescription
-hObtains the commands supported by param.
ls [-r] [name]Displays the information about the system parameter that matches the given name. If -r is carried, the information is obtained based on the parameter permission. If -r is not carried, the information is directly obtained.
get [name]Obtains the value of the system parameter with the given name. If no name is specified, the values of all system parameters are returned.
set name valueSets the value for the system parameter with the given name.
wait name [value] [timeout]Waits for the system parameter with the given name to match the specified value. Fuzzy match is supported. For example, * indicates any value, and val* indicates matching of only the first three val characters. timeout indicates the waiting time, in seconds. If it is not set, the default value 30s is used.
savePersistently saves the parameters to the workspace.

-h

  • Obtains the commands supported by the param tool.

    param -h
    

ls

  • Displays the information about the system parameter that matches the given name.

    param ls [-r] [name]
    

    Example
    ls-integrity ls-part ls

get

  • Obtains the value of the system parameter with the given name.

    param get [name]
    

    Example
    get

set name value

  • Sets the value for the system parameter with the given name.

    param set name value
    

    Example
    set

wait name

  • Waits for the system parameter with the given name to match the specified value.

    param wait name [value] [timeout]
    

    Example
    wait

save

  • Persistently saves the parameters to the workspace.

    param save
    

    Example
    save

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Debugging Tools

harmony 鸿蒙Ability Assistant

harmony 鸿蒙Account Manager

harmony 鸿蒙Advanced Notification Manager

harmony 鸿蒙App Check Tool

harmony 鸿蒙Access Token Manager

harmony 鸿蒙Bundle Manager

harmony 鸿蒙Common Event Manager

harmony 鸿蒙devicedebug

harmony 鸿蒙EDM

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/iylUTx