CfgMgr::SetUpgrade

Description

Enables the system to reload the YAML file after a restart instead of reading the initial configuration file. It is mainly used in installation and upgrade scenarios.

Prototype

uint32_t CfgMgr::SetUpgrade()

Function Security Level

ASIL-D

Parameters

None

Returns

The return value is of the uint32_t type. If the operation is successful, CFGMGR_SUCCESS is returned. If the operation fails, an error code is returned.

Usage

After SELinux permission control is enabled, non-privileged processes can be called only after the read and write permissions on dp:/res/cfgmgr/mgmt are configured.

Precautions

  • This interface takes effect after the system is restarted.
  • Persistent data is stored.