Implemented minor Copilot changes

This commit is contained in:
jp64k
2025-12-31 05:11:58 +01:00
parent fdb091cee6
commit 62343f8cf6
2 changed files with 4 additions and 2 deletions

2
ADB.cs
View File

@@ -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))

View File

@@ -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('.'))
{