| Index: devil/docs/device_utils.md
|
| diff --git a/devil/docs/device_utils.md b/devil/docs/device_utils.md
|
| index b7caa744f58d197548de7c4fef43f10dc4ef264a..b281b26680e467a94a391b2e3079c22e41f0ba90 100644
|
| --- a/devil/docs/device_utils.md
|
| +++ b/devil/docs/device_utils.md
|
| @@ -859,6 +859,41 @@ Returns the PIDs of processes with the given name.
|
| ```
|
|
|
|
|
| +### DeviceUtils.GetEnforce
|
| +
|
| +Get the current mode of SELinux.
|
| +```
|
| + Args:
|
| + timeout: timeout in seconds
|
| + retries: number of retries
|
| +
|
| + Returns:
|
| + True (enforcing), False (permissive), or None (disabled).
|
| +
|
| + Raises:
|
| + CommandFailedError on failure.
|
| + CommandTimeoutError on timeout.
|
| + DeviceUnreachableError on missing device.
|
| +```
|
| +
|
| +
|
| +### DeviceUtils.SetEnforce
|
| +
|
| +Modify the mode SELinux is running in.
|
| +```
|
| + Args:
|
| + enabled: a boolean indicating whether to put SELinux in encorcing mode
|
| + (if True), or permissive mode (otherwise).
|
| + timeout: timeout in seconds
|
| + retries: number of retries
|
| +
|
| + Raises:
|
| + CommandFailedError on failure.
|
| + CommandTimeoutError on timeout.
|
| + DeviceUnreachableError on missing device.
|
| +```
|
| +
|
| +
|
| ### DeviceUtils.TakeScreenshot
|
|
|
| Takes a screenshot of the device.
|
|
|