diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index f2f916d..86830b9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -32,6 +32,7 @@ body: description: Specify the version of AdvancedSharpAdbClient you're using. options: - "Latest Source" + - "3.2.11" - "3.1.10" - "3.0.9" - "2.5.8" diff --git a/AdvancedSharpAdbClient/AdbSocket.Async.cs b/AdvancedSharpAdbClient/AdbSocket.Async.cs index 99ac80b..acaef12 100644 --- a/AdvancedSharpAdbClient/AdbSocket.Async.cs +++ b/AdvancedSharpAdbClient/AdbSocket.Async.cs @@ -79,8 +79,8 @@ public virtual async Task SendAsync(byte[] data, int offset, int length, Cancell } /// - public Task SendSyncRequestAsync(SyncCommand command, string path, UnixFileStatus permission, CancellationToken cancellationToken = default) => - SendSyncRequestAsync(command, $"{path},{(int)permission.GetPermissions()}", cancellationToken); + public Task SendSyncRequestAsync(SyncCommand command, string path, UnixFileStatus permissions, CancellationToken cancellationToken = default) => + SendSyncRequestAsync(command, $"{path},{(int)permissions.GetPermissions()}", cancellationToken); /// public async Task SendSyncRequestAsync(SyncCommand command, string path, CancellationToken cancellationToken = default) diff --git a/AdvancedSharpAdbClient/AdbSocket.cs b/AdvancedSharpAdbClient/AdbSocket.cs index a2bf671..dd04f6b 100644 --- a/AdvancedSharpAdbClient/AdbSocket.cs +++ b/AdvancedSharpAdbClient/AdbSocket.cs @@ -154,8 +154,8 @@ public virtual void Send(byte[] data, int offset, int length) } /// - public void SendSyncRequest(SyncCommand command, string path, UnixFileStatus permission) => - SendSyncRequest(command, $"{path},{(int)permission.GetPermissions()}"); + public void SendSyncRequest(SyncCommand command, string path, UnixFileStatus permissions) => + SendSyncRequest(command, $"{path},{(int)permissions.GetPermissions()}"); /// public void SendSyncRequest(SyncCommand command, string path) diff --git a/AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj b/AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj index 936dd23..49818c1 100644 --- a/AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj +++ b/AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj @@ -4,6 +4,8 @@ True True Enable + Icon.png + README.md @@ -63,6 +65,7 @@ + diff --git a/Directory.Build.props b/Directory.Build.props index b614067..0d38b43 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,13 +11,12 @@ True True latest - Icon.png https://raw.githubusercontent.com/SharpAdb/AdvancedSharpAdbClient/main/logo.png Apache-2.0 https://github.com/SharpAdb/AdvancedSharpAdbClient True https://github.com/SharpAdb/AdvancedSharpAdbClient/releases - Android;ADB;Communicate;UWP;Xamarin;MAUI;WinUI;Mono;Unity;SharpAdbClient;AdvancedSharpAdbClient + Android;ADB;Communication;UWP;Xamarin;WinUI;MAUI;Mono;Unity;SharpAdbClient;AdvancedSharpAdbClient git AdvancedSharpAdbClient: A .NET client for the Android Debug Bridge (adb) True diff --git a/README.md b/README.md index 130c6bd..3ebd795 100644 --- a/README.md +++ b/README.md @@ -411,7 +411,7 @@ void UploadFile() { using (FileStream stream = File.OpenRead(@"C:\MyFile.txt")) { - service.Push(stream, "/data/local/tmp/MyFile.txt", 777, DateTimeOffset.Now, null); + service.Push(stream, "/data/local/tmp/MyFile.txt", UnixFileStatus.DefaultFileMode, DateTimeOffset.Now, null); } } }