diff --git a/serverPython/zalo_puller.py b/serverPython/zalo_puller.py index 9642728..5534d2f 100644 --- a/serverPython/zalo_puller.py +++ b/serverPython/zalo_puller.py @@ -8,11 +8,14 @@ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %( def run_adb_command(command: str): """Chạy lệnh ADB shell và trả về kết quả""" - full_cmd = f"adb shell {command}" + full_cmd = f"adb -s 10.160.138.2:5555 shell {command}" try: result = subprocess.run(full_cmd, shell=True, check=True, capture_output=True, text=True) return result.stdout.strip() except subprocess.CalledProcessError as e: + logging.error(f"Lệnh ADB thất bại: {full_cmd}") + logging.error(f"Mã lỗi: {e.returncode}") + logging.error(f"Chi tiết lỗi: {e.stderr}") return None def analyze_zalo():