Skip to content

Commit

Permalink
fix: Use the first connected device when no ADB device is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 10, 2024
1 parent 280ded2 commit 5f952f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f952f3

Please sign in to comment.