You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13
Original file line number
Diff line number
Diff line change
@@ -381,6 +381,19 @@ Starts Android logcat broadcast websocket on the same host and port where Appium
381
381
382
382
Stops the previously started logcat broadcasting websocket server. This method will return immediately if no server is running. Read [Using Mobile Execution Commands to Continuously Stream Device Logs with Appium](https://appiumpro.com/editions/55-using-mobile-execution-commands-to-continuously-stream-device-logs-with-appium) for more details.
383
383
384
+
### mobile: deviceidle
385
+
386
+
This is a wrapper to 'adb shell dumpsys deviceidle' interface.
387
+
Read [Diving Into Android 'M' Doze](https://www.protechtraining.com/blog/post/diving-into-android-m-doze-875) for more details.
388
+
This API only exists since Android 6.
389
+
390
+
#### Arguments
391
+
392
+
Name | Type | Required | Description | Example
393
+
--- | --- | --- | --- | ---
394
+
action | whitelistAdd or whitelistRemove | yes | The name of the action to perform | whitelistAdd
395
+
packages | string or string[] | yes | One or more package names to perfom the above action on | 'com.mycompany'
396
+
384
397
### mobile: acceptAlert
385
398
386
399
Tries to accept an Android alert. This method might not always be reliable as there is no single standard for how Android alerts should look like within the Accessibility representation.
0 commit comments