diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-04-16 18:16:47 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-04-16 18:16:47 +0000 |
commit | f579e8f3f29091e364f8d39a03870f89b8dd31fc (patch) | |
tree | b9a6b60023b853553ae095370bf251a2f1f7640e /catapult/devil/docs/device_utils.md | |
parent | 1f6d83531e19d5819437949715a021ea9b2b6dc5 (diff) | |
parent | ef2f29d2b3cf25a46be203d6b12ad0eceaf270b2 (diff) | |
download | chromium-trace-f579e8f3f29091e364f8d39a03870f89b8dd31fc.tar.gz |
Merge changes I195c394b,Iff693cf6 am: b101eec5e1 am: d5085cc096 am: 19f3aab438 am: ef2f29d2b3
Original change: https://android-review.googlesource.com/c/platform/external/chromium-trace/+/1677030
Change-Id: I49cd668d1050a3ea1eb8db8c0644f0c9a278e1d2
Diffstat (limited to 'catapult/devil/docs/device_utils.md')
-rw-r--r-- | catapult/devil/docs/device_utils.md | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/catapult/devil/docs/device_utils.md b/catapult/devil/docs/device_utils.md index 960ca894..ad37d8eb 100644 --- a/catapult/devil/docs/device_utils.md +++ b/catapult/devil/docs/device_utils.md @@ -1,4 +1,4 @@ -# [devil.android.device_utils](https://github.com/catapult-project/catapult/blob/master/devil/devil/android/device_utils.py) +# [devil.android.device_utils](https://chromium.googlesource.com/catapult.git/+/HEAD/devil/devil/android/device_utils.py) *This page was autogenerated. Run `devil/bin/generate_md_docs` to update* @@ -467,11 +467,12 @@ Get the WebView update command sysdump on the device. WebViewPackages: Dict of installed WebView providers, mapping "package name" to "reason it's valid/invalid." - It may return an empty dictionary if device does not - support the "dumpsys webviewupdate" command. + The returned dictionary may not include all of the above keys: this depends + on the support of the platform's underlying WebViewUpdateService. This may + return an empty dictionary on OS versions which do not support querying the + WebViewUpdateService. Raises: - CommandFailedError on failure. CommandTimeoutError on timeout. DeviceUnreachableError on missing device. ``` @@ -593,6 +594,8 @@ Determines whether a particular package is installed on the device. ``` Args: package: Name of the package. + version_code: The version of the package to check for as an int, if + applicable. Only used for static shared libraries, otherwise ignored. Returns: True if the application is installed, False otherwise. @@ -866,6 +869,10 @@ Reads the contents of a file from the device. Reboot the device. ``` + Note if the device has the root privilege, it will likely lose it after the + reboot. When |block| is True, it will try to restore the root status if + applicable. + Args: block: A boolean indicating if we should wait for the reboot to complete. wifi: A boolean indicating if we should wait for wifi to be enabled after |