Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: devil/docs/device_utils.md

Issue 2707113002: [devil] Add an iteration timeout option to cmd_helper.IterCmdStdoutLines. (Closed)
Patch Set: mikecase comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « devil/docs/adb_wrapper.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « devil/docs/adb_wrapper.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698