Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Fixed literal Permission Problem in PackageManager (#197)
Browse files Browse the repository at this point in the history
* Fixed literal Permission Problem in PackageManager
  • Loading branch information
Studio2B-Berlin authored Sep 22, 2020
1 parent 9c981c9 commit 22e9125
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SharpAdbClient/DeviceCommands/PackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ private string SyncPackageToDevice(string localFilePath)
{
this.logger.LogDebug($"Uploading file onto device '{this.Device.Serial}'");

sync.Push(stream, remoteFilePath, 644, File.GetLastWriteTime(localFilePath), null, CancellationToken.None);
// As C# can't use octals, the octal literal 666 (rw-Permission) is here converted to decimal (438)
sync.Push(stream, remoteFilePath, 438, File.GetLastWriteTime(localFilePath), null, CancellationToken.None);
}

return remoteFilePath;
Expand Down

0 comments on commit 22e9125

Please sign in to comment.