An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix(android): enforce keyboard permission for remote input (#17061)
RustDesk7949eca16c15
diff --git a/src/server/connection.rs b/src/server/connection.rsindex eb974334a..1fbee2439 100644--- a/src/server/connection.rs+++ b/src/server/connection.rs@@ -3203,6 +3203,11 @@ impl Connection {if self.is_authed_view_camera_conn() {return true;}+ #[cfg(target_os = "android")]+ if !self.peer_keyboard_enabled() {+ self.update_auto_disconnect_timer();+ return true;+ }#[cfg(any(target_os = "android", target_os = "ios"))]if let Err(e) = call_main_service_pointer_input("mouse", me.mask, me.x, me.y) {log::debug!("call_main_service_pointer_input fail:{}", e);@@ -3242,6 +3247,11 @@ impl Connection {if self.is_authed_view_camera_conn() {return true;}+ #[cfg(target_os = "android")]+ if !self.peer_keyboard_enabled() {+ self.update_auto_disconnect_timer();+ return true;+ }#[cfg(any(target_os = "android", target_os = "ios"))]if let Err(e) = match pde.union {Some(pointer_device_event::Union::TouchEvent(touch)) => match touch.union {@@ -3284,6 +3294,9 @@ impl Connection {if self.is_authed_view_camera_conn() {return true;}+ if !self.peer_keyboard_enabled() {+ return true;+ }let key = match me.mode.enum_value() {Ok(KeyboardMode::Map) => {Some(crate::keyboard::keycode_to_rdev_key(me.chr()))