diff options
author | 2024-11-11 11:15:40 +0000 | |
---|---|---|
committer | 2024-11-11 11:15:40 +0000 | |
commit | 5f9c7861f33b706634bc87019870c87c16bd2954 (patch) | |
tree | 38141df23c075d0a86fcbfc1f186f57e74782773 /cmds/dumpstate/dumpstate.cpp | |
parent | 7ef014b3ddb5ddb9b08c13cb0fd0ce6f7913d142 (diff) | |
parent | 30e2360504da001124ed114534e5423b8466c33e (diff) |
Merge "HWC screencap portability improvement" into main
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-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 c407f486f0..add9f9297b 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -4631,7 +4631,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()); |