summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/dumpstate.cpp
diff options
context:
space:
mode:
author Abdelrahman Daim <adaim@meta.com> 2024-08-20 02:19:37 -0700
committer Abdelrahman Daim <adaim@meta.com> 2024-09-10 02:55:35 -0700
commit30e2360504da001124ed114534e5423b8466c33e (patch)
tree2e68fad6090bab20286384377b886fe8278a9e67 /cmds/dumpstate/dumpstate.cpp
parent0eb6ba93b7df9c224200338cd829913a5931eb64 (diff)
HWC screencap portability improvement
Summary: Removing the only reference to the hardcoded full unix path of screencap. This will help with portability. Test: Successful Build on master branch Change-Id: I8cb83cf312c5dea6f2688864b84145d8eb47be3d Signed-off-by: Abdelrahman Daim <adaim@meta.com>
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-rw-r--r--cmds/dumpstate/dumpstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 1e5dd97920..24b4b0de93 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -4608,7 +4608,7 @@ void Dumpstate::UpdateProgress(int32_t delta_sec) {
void Dumpstate::TakeScreenshot(const std::string& path) {
const std::string& real_path = path.empty() ? screenshot_path_ : path;
int status =
- RunCommand("", {"/system/bin/screencap", "-p", real_path},
+ RunCommand("", {"screencap", "-p", real_path},
CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
if (status == 0) {
MYLOGD("Screenshot saved on %s\n", real_path.c_str());