Skip to content

Commit bd3e3f2

Browse files
committed
Manually implement --no-streaming.
Not supported by some older ADB builds
1 parent a7287a6 commit bd3e3f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

QuestPatcher.Core/AndroidDebugBridge.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class AndroidDebugBridge
6464
/// <summary>
6565
/// The minimum ADB version required by QuestPatcher.
6666
/// </summary>
67-
private static readonly Version MinAdbVersion = new Version(1, 0, 41);
67+
private static readonly Version MinAdbVersion = new Version(1, 0, 39);
6868

6969
public event EventHandler? StoppedLogging;
7070

@@ -380,7 +380,11 @@ public async Task RunUnityPlayerActivity(string appId)
380380

381381
public async Task InstallApp(string apkPath)
382382
{
383-
await RunCommand($"install {apkPath.EscapeProc()} --no-streaming");
383+
string pushPath = $"/data/local/tmp/{Guid.NewGuid()}.apk";
384+
385+
await RunCommand($"push {apkPath.EscapeProc()} {pushPath}");
386+
await RunShellCommand($"pm install {pushPath}");
387+
await RunShellCommand($"rm {pushPath}");
384388
}
385389

386390
public async Task CreateDirectory(string path)

0 commit comments

Comments
 (0)