diff --git a/ADB.cs b/ADB.cs index 8e31b68..8d7d1b7 100644 --- a/ADB.cs +++ b/ADB.cs @@ -85,7 +85,7 @@ namespace AndroidSideloader command = $" -s {DeviceID} {command}"; } - if (!suppressLogging && !command.Contains("dumpsys") && !command.Contains("shell pm list packages") && !command.Contains("KEYCODE_WAKEUP") ) + if (!suppressLogging && !command.Contains("dumpsys") && !command.Contains("shell pm list packages") && !command.Contains("KEYCODE_WAKEUP")) { string logcmd = command; if (logcmd.Contains(Environment.CurrentDirectory)) diff --git a/Utilities/DnsHelper.cs b/Utilities/DnsHelper.cs index 9cb220e..bee14e0 100644 --- a/Utilities/DnsHelper.cs +++ b/Utilities/DnsHelper.cs @@ -268,7 +268,9 @@ namespace AndroidSideloader.Utilities writer.Write(IPAddress.HostToNetworkOrder((short)new Random().Next(0, ushort.MaxValue))); writer.Write(IPAddress.HostToNetworkOrder((short)0x0100)); // Flags writer.Write(IPAddress.HostToNetworkOrder((short)1)); // Questions - writer.Write(new byte[6]); // Answer/Authority/Additional counts + writer.Write(IPAddress.HostToNetworkOrder((short)0)); // Answer RRs + writer.Write(IPAddress.HostToNetworkOrder((short)0)); // Authority RRs + writer.Write(IPAddress.HostToNetworkOrder((short)0)); // Additional RRs foreach (string label in hostname.Split('.')) {