From f5720b4133b93823835dd2c6fbadd98fe190357b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9lim=20Haddioui?= Date: Mon, 27 Oct 2025 23:54:49 +0100 Subject: [PATCH] fix(package-manager): propagate progress callback to PushAsync for detailed upload progress Previously, InstallPackageAsync did not forward the progress reporter to PushAsync, causing only 0% and 100% events during the Uploading phase. Now, progress updates are correctly propagated for granular feedback during package installation. --- AdvancedSharpAdbClient/DeviceCommands/PackageManager.Async.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdvancedSharpAdbClient/DeviceCommands/PackageManager.Async.cs b/AdvancedSharpAdbClient/DeviceCommands/PackageManager.Async.cs index 9e2b0b8..9f950c2 100644 --- a/AdvancedSharpAdbClient/DeviceCommands/PackageManager.Async.cs +++ b/AdvancedSharpAdbClient/DeviceCommands/PackageManager.Async.cs @@ -611,7 +611,7 @@ protected virtual async Task SyncPackageToDeviceAsync(string localFilePa Action? progress = callback == null ? null : args => callback.Invoke(localFilePath, args); // As C# can't use octal, the octal literal 666 (rw-Permission) is here converted to decimal (438) - await sync.PushAsync(stream, remoteFilePath, UnixFileStatus.DefaultFileMode, File.GetLastWriteTime(localFilePath), null, cancellationToken).ConfigureAwait(false); + await sync.PushAsync(stream, remoteFilePath, UnixFileStatus.DefaultFileMode, File.GetLastWriteTime(localFilePath), progress, cancellationToken).ConfigureAwait(false); } return remoteFilePath;