From c5ce8373bcc8ef8b3f2ed47f61a589ac0bf7ca59 Mon Sep 17 00:00:00 2001 From: LA_DI_DA <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Thu, 20 Mar 2025 17:43:57 +0800 Subject: [PATCH] fix: do not use root to run remote file execution check command --- module/luahook/crack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/luahook/crack.py b/module/luahook/crack.py index ef9da2a81..6e05a0052 100644 --- a/module/luahook/crack.py +++ b/module/luahook/crack.py @@ -359,7 +359,7 @@ class CrackResource: def __is_remote_file_exist(self) -> bool: def is_exist(path): cmd = f"if [ -f {path} ]; then echo 'exist'; else if [ -d {path} ]; then echo 'exist'; else echo 'not exist'; fi; fi" - return self.__adb_su_do(cmd) == "exist" + return self.device.adb_shell(cmd) == "exist" return is_exist(self.upload_dir) and is_exist(f"{self.upload_dir}/libcracker.so") and is_exist(f"{self.upload_dir}/patchelf")