Do not open a cmd windows when using a shell command

This commit is contained in:
w1nst0n 2021-08-28 19:36:39 +02:00
commit 374eb6ff2a
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D

View file

@ -10,7 +10,7 @@ pub fn adb_shell_command(args: &str) -> Result<String,String> {
#[cfg(target_os = "windows")]
let output = Command::new("./ressources/windows/adb/adb")
.args(&["shell", args])
.creation_flags(0x08000000)
.creation_flags(0x08000000) // do not open a cmd window
.output()
.expect("adb command failed to start. Do you have ADB installed?");