Skip to content

Commit 30e2360

Browse files
committed
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>
1 parent 0eb6ba9 commit 30e2360

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
@@ -4608,7 +4608,7 @@ void Dumpstate::UpdateProgress(int32_t delta_sec) {
46084608
void Dumpstate::TakeScreenshot(const std::string& path) {
46094609
const std::string& real_path = path.empty() ? screenshot_path_ : path;
46104610
int status =
4611-
RunCommand("", {"/system/bin/screencap", "-p", real_path},
4611+
RunCommand("", {"screencap", "-p", real_path},
46124612
CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
46134613
if (status == 0) {
46144614
MYLOGD("Screenshot saved on %s\n", real_path.c_str());

0 commit comments

Comments
 (0)