1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-22 15:19:29 +08:00

fix: do not use root to run remote file execution check command

This commit is contained in:
LA_DI_DA
2025-03-20 17:43:57 +08:00
parent d37af0ecff
commit c5ce8373bc

View File

@@ -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")