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)