diff --git a/xbuild/src/devices/adb.rs b/xbuild/src/devices/adb.rs index 561942cc..356612e1 100644 --- a/xbuild/src/devices/adb.rs +++ b/xbuild/src/devices/adb.rs @@ -277,7 +277,7 @@ impl Adb { Ok(Path::new(std::str::from_utf8(&output.stdout)?.trim()).to_path_buf()) }*/ - pub fn lldb(&self, device: &str, lldb_server: &Path, executable: &Path) -> Result<()> { + pub fn lldb(&self, device: &str, executable: &Path, lldb_server: &Path) -> Result<()> { /*let package = env.manifest().android().package.as_ref().unwrap(); let app_dir = self.app_dir(device, package)?; self.shell(device, Some(package)) @@ -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")