You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the adb server included with the Android platform tools.
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
Host project is .NET 4.8.1, code is as follows
varadb=newAdbClient();vardevices=(awaitadb.GetDevicesAsync()).ToArray();if(devices.Length>0){vardevice=devices[0];varclient=device.CreateDeviceClient();varreceiver=newConsoleOutputReceiver();awaitadb.ExecuteRemoteCommandAsync("pm list packages -f -3",device,receiver);varpmOutput=receiver.ToString();varmatch=Regex.Match(pmOutput,@"^package:(.*?)=com.beatgames.beatsaber\r?$",RegexOptions.Multiline);if(!match.Success){MessageBox.Show("Beat Saber not found","Not Found",MessageBoxButtons.OK,MessageBoxIcon.Error);return;}varbeatSaberPath=match.Groups[1].ToString();using(varservice=newSyncService(adb,device)){varfiles=awaitservice.GetDirectoryListingAsync("/sdcard/Android/obb/com.beatgames.beatsaber");vardlcTemp=newEasyTempFolder("dlc",Program.TempFolder);varapkTemp=newEasyTempFolder("apk",Program.TempFolder);Program.Disposables.Add(dlcTemp);Program.Disposables.Add(apkTemp);varlocalApkPath=Path.Combine(apkTemp,"beatsaber.apk");using(varlocalFile=File.Create(localApkPath)){awaitservice.PullAsync(beatSaberPath,localFile,null);}}}
From my understanding of the documentation, this should work, but it doesn't. Pulling with adb.exe does however.
Steps to reproduce the bug
Use provided code with Android emulator.
Expected behavior
No response
Screenshots
No response
NuGet package version
3.1.10
.NET Platform
.NET Framework 4.8.x
Platform type
Windows
System version
No response
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using the adb server included with the Android platform tools.
Host project is .NET 4.8.1, code is as follows
From my understanding of the documentation, this should work, but it doesn't. Pulling with adb.exe does however.
Steps to reproduce the bug
Use provided code with Android emulator.
Expected behavior
No response
Screenshots
No response
NuGet package version
3.1.10
.NET Platform
.NET Framework 4.8.x
Platform type
Windows
System version
No response
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: