Skip to content

Commit 8d14b75

Browse files
authored
Merge pull request #104 from ubports/amartinz/adb-sideload
adb: do not throw error when sideload finishes
2 parents 9acff1a + e6b9644 commit 8d14b75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/adb.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ export class Adb extends Tool {
281281
stdout: string,
282282
stderr: string
283283
): Promise<void> {
284+
// ADB sideload is broken since what feels like forever
285+
if (stderr?.includes("adb: failed to read command: Success")) {
286+
return;
287+
}
288+
284289
if (code || signal) {
285290
// truthy value (i.e. non-zero exit code) indicates error
286291
if (

0 commit comments

Comments
 (0)