diff options
author | 2024-11-11 12:15:52 +0000 | |
---|---|---|
committer | 2024-11-11 12:15:52 +0000 | |
commit | 3f8b9574ce93f8f6b32ef32ee0014c92762318d7 (patch) | |
tree | c641dc80dda2cc4093c56aea445b9860a8f33790 | |
parent | e23f11cc12bc88c25c29cba6b8e44bf4938ab6a8 (diff) | |
parent | d8bfaae9799ecafe6f3f4f39d282de0666c987db (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.cpp | 2 |
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()); |