目录

OS Account Privilege List

The following table lists the privileges that can be granted by the OS account authorization module.

Whether a privilege is available depends on whether it has been deployed in the current OS version. If the OS version does not contain the privilege configuration, AUTHORIZATION_NOT_SUPPORTED will be returned when authorization.getAuthorizationManager().requestAuthorization is called.

Privilege Privilege Value Description Validity Period Associated Permissions
ohos.privilege.operate_raw_net_packets PRIVILEGE_OPERATE_RAW_NET_PACKETS Privilege to operate raw network packets. Lifecycle of the authorized process. ohos.permission.kernel.NET_RAW
ohos.privilege.monitor_raw_usb_packets PRIVILEGE_MONITOR_RAW_USB_PACKETS Privilege to monitor USB packets. Lifecycle of the authorized process. ohos.permission.kernel.USB_CAPTURE