From 08527e77ef68f99cbd1975dc9d438649332f4c9d Mon Sep 17 00:00:00 2001 From: Athos Date: Thu, 11 Jul 2024 11:55:27 +0200 Subject: [PATCH] Chmod lldb server so it can be ran after copy --- xbuild/src/devices/adb.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xbuild/src/devices/adb.rs b/xbuild/src/devices/adb.rs index a989c8d..356612e 100644 --- a/xbuild/src/devices/adb.rs +++ b/xbuild/src/devices/adb.rs @@ -302,12 +302,17 @@ impl Adb { .arg("700") .arg(&dest) .status()?;*/ + let lldb_device_path = Path::new("./lldb-server"); let mut lldb_server = self .shell(device, None) .arg("cd") .arg("/data/local/tmp") .arg("&&") - .arg("./lldb-server") + .arg("chmod") + .arg("777") + .arg(lldb_device_path) + .arg("&&") + .arg(lldb_device_path) .arg("platform") .arg("--listen") .arg("*:10086")