From b212724fd264d743b1774cb7ffccff742f19e5fb Mon Sep 17 00:00:00 2001 From: plyshka Date: Sat, 27 Jan 2024 15:30:08 +0500 Subject: [PATCH] Added note for skipped device to make sure android udev rules are installed --- ADBForwarder/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ADBForwarder/Program.cs b/ADBForwarder/Program.cs index fe44740..3475ea5 100644 --- a/ADBForwarder/Program.cs +++ b/ADBForwarder/Program.cs @@ -134,6 +134,9 @@ private static void Forward(DeviceData device) Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine( $"Skipped forwarding device: {(string.IsNullOrEmpty(deviceData.Product) ? deviceData.Serial : deviceData.Product)}"); + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) return; + Console.WriteLine("Please make sure you have android-udev-rules installed."); + Console.WriteLine("Install them through package manager or visit https://github.com/M0Rf30/android-udev-rules and follow instructions."); return; }