From 879da43dbee3ac0e3d2126e1eb6f7fea69c04d67 Mon Sep 17 00:00:00 2001 From: blakeyzhang Date: Thu, 13 Oct 2022 11:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=9Eroot=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E6=88=AA=E5=9B=BE=E8=AE=BE=E7=BD=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/mainframe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/mainframe.py b/ui/mainframe.py index f6b5609..39c19ad 100644 --- a/ui/mainframe.py +++ b/ui/mainframe.py @@ -603,7 +603,8 @@ def _take_screen_shot(self, tmp_path, path, use_cmd=True): """屏幕截图""" if use_cmd: self._device.adb.run_shell_cmd("screencap %s" % tmp_path) - self._device.adb.run_shell_cmd("chmod 444 %s" % tmp_path) + # 非root手机截图需要700权限 + self._device.adb.run_shell_cmd("chmod 700 %s" % tmp_path) self._device.adb.pull_file(tmp_path, path) else: self._device.take_screen_shot(path, 10)