summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-11-11 12:15:52 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-11-11 12:15:52 +0000
commit3f8b9574ce93f8f6b32ef32ee0014c92762318d7 (patch)
treec641dc80dda2cc4093c56aea445b9860a8f33790
parente23f11cc12bc88c25c29cba6b8e44bf4938ab6a8 (diff)
parentd8bfaae9799ecafe6f3f4f39d282de0666c987db (diff)
Merge "HWC screencap portability improvement" into main am: 5f9c7861f3 am: d8bfaae979
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3228768 Change-Id: I4931567ea89eadf945a4bc077881270f3a3697d9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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 b012243c8b..4758607122 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -4656,7 +4656,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());