Skip to content

Commit 5f9c786

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "HWC screencap portability improvement" into main
2 parents 7ef014b + 30e2360 commit 5f9c786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmds/dumpstate/dumpstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4631,7 +4631,7 @@ void Dumpstate::UpdateProgress(int32_t delta_sec) {
46314631
void Dumpstate::TakeScreenshot(const std::string& path) {
46324632
const std::string& real_path = path.empty() ? screenshot_path_ : path;
46334633
int status =
4634-
RunCommand("", {"/system/bin/screencap", "-p", real_path},
4634+
RunCommand("", {"screencap", "-p", real_path},
46354635
CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
46364636
if (status == 0) {
46374637
MYLOGD("Screenshot saved on %s\n", real_path.c_str());

0 commit comments

Comments
 (0)