From 5f952f35f5cb388b6509b2b4d905b8143ebc7996 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 10 Oct 2024 23:03:20 +0200 Subject: [PATCH] fix: Use the first connected device when no ADB device is specified --- src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt index 08db791..49b87df 100644 --- a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt @@ -246,6 +246,8 @@ internal object PatchCommand : Runnable { .resolve("${outputFilePath.nameWithoutExtension}.keystore") val installer = if (deviceSerial != null) { + val deviceSerial = deviceSerial!!.ifEmpty { null } + try { if (mount) { AdbRootInstaller(deviceSerial)