From e691eedd36a3bff5d578a300e795535ecc4229d5 Mon Sep 17 00:00:00 2001 From: Duy Truong Date: Thu, 2 Mar 2023 13:08:21 -0800 Subject: Update documentation for utilities to find files loaded by a process. Bug: 271464692 Test: m sts Change-Id: Icfd0607020284ecd904bf5915698de11aab920d6 --- .../host-side/src/com/android/sts/common/ProcessUtil.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/sts-common-util/host-side/src/com/android/sts/common/ProcessUtil.java b/libraries/sts-common-util/host-side/src/com/android/sts/common/ProcessUtil.java index fca00cd26..0f8841838 100644 --- a/libraries/sts-common-util/host-side/src/com/android/sts/common/ProcessUtil.java +++ b/libraries/sts-common-util/host-side/src/com/android/sts/common/ProcessUtil.java @@ -375,7 +375,8 @@ public final class ProcessUtil { } /** - * Returns the currently open file names of the specified process. + * Returns the currently open file names of the specified process. This does not include shared + * libraries linked by the linker. * * @param device device to be run on * @param pid the id of the process to search @@ -403,7 +404,8 @@ public final class ProcessUtil { } /** - * Returns file names of the specified file, loaded by the specified process. + * Returns file names of the specified file, loaded by the specified process. This does not + * include shared libraries linked. * * @param device device to be run on * @param pid the id of the process to search @@ -426,7 +428,8 @@ public final class ProcessUtil { } /** - * Returns file entry of the first file loaded by the specified process with specified name + * Returns file entry of the first file loaded by the specified process with specified name. + * This includes shared libraries linked. * * @param device device to be run on * @param process pgrep pattern of process to look for -- cgit v1.2.3