Skip to content

Commit

Permalink
change screenshot from /sdcard to /data/local/tmp to fix screenshot p…
Browse files Browse the repository at this point in the history
…opup
  • Loading branch information
codeskyblue committed Dec 6, 2023
1 parent 6fbfd57 commit 8f038fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adbutils/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def _prepare(self):

def __screencap(self) -> Image.Image:
thread_id = threading.get_native_id()
inner_tmp_path = f"/sdcard/adbutils-tmp{thread_id}.png"
inner_tmp_path = f"/data/local/tmp/adbutils-tmp{thread_id}.png"
self.shell(["screencap", "-p", inner_tmp_path])
try:
with tempfile.TemporaryDirectory() as tmpdir:
Expand Down

0 comments on commit 8f038fe

Please sign in to comment.