From a0548bf1fab32309c7f6d1a315af80099f031df0 Mon Sep 17 00:00:00 2001 From: Victor Phan Date: Thu, 23 Jul 2026 22:31:48 +0700 Subject: [PATCH] feat: add Zalo database extraction and schema analysis script using ADB --- serverPython/zalo_puller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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():