• Home
  • Raw
  • Download

Lines Matching refs:level

9 The security level of an OpenHarmony device depends on the system security capabilities of the devi…
15 …ture for a single device. The architecture may vary depending on the risk level as well as the sof…
19 - SL1: SL1 is the lowest security level of OpenHarmony devices. Usually equipped with a lightweight…
21 …se devices must have basic anti-penetration capabilities. Devices of this level support a lightwei…
23 …ts are protected by a well-defined security policy model. Devices of this level must have certain …
25 …tration are required for any access to critical elements. Devices of this level have considerable …
27 …d against physical attacks and attacks simulated in labs. Devices at this level must have high-sec…
29 The security level of each device in a Super Device provides the decision-making criteria for proce…
51level of OpenHarmony devices is SL1. Device vendors can [customize](https://gitee.com/openharmony/…
61 …ption, DeviceSecurityInfo **info); | Requests the security level information of a d…
62 …n \*option, DeviceSecurityInfoCallback callback); | Requests the security level information of a d…
63 … | Releases the device security level information. …
64 …info, int32_t \*level); | Obtains the device …
87 The following is an example of synchronously obtaining the device security level:
92 // Pointer to the device security level information.
95 // Obtain the security level information of the device.
101 int32_t level = 0;
102 // Obtain the device security level from the security level information.
103 ret = GetDeviceSecurityLevelValue(info, &level);
105 // Failed to obtain the device security level. You can develop a retry process as required.
110 …// After the device security level is successfully obtained, check the lowest security level requi…
111 // The lowest device security level required for the current operation is 3.
112 if (level >= 3) {
113 …// The security level of the target device meets the requirements. Services are processed properly…
115 …// The security level of the target device does not meet the requirements. A toast or dialog box i…
123 The following is an example of asynchronously obtaining the device security level:
129 int32_t level = 0;
130 // Obtain the device security level from the security level information.
131 int32_t ret = GetDeviceSecurityLevelValue(info, &level);
138 …// After the device security level is successfully obtained, check the lowest security level requi…
139 // The lowest device security level required for the current operation is 3.
140 if (level >= 3) {
141 …// The security level of the target device meets the requirements. Services are processed properly…
143 …// The security level of the target device does not meet the requirements. A toast or dialog box i…
152 // Invoke the asynchronous callback to return the device security level obtained.
155 // Failed to obtain the device security level. You can develop a retry process as required.
159 // The callback is invoked. Wait for the callback to return the device security level.