1
0
mirror of https://github.com/revanced/revanced-cli.git synced 2025-01-27 03:07:43 +01:00

fix: Use the first connected device when no ADB device is specified

This commit is contained in:
oSumAtrIX 2024-10-10 23:03:20 +02:00
parent 280ded2281
commit 5f952f35f5
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

@ -246,6 +246,8 @@ internal object PatchCommand : Runnable {
.resolve("${outputFilePath.nameWithoutExtension}.keystore") .resolve("${outputFilePath.nameWithoutExtension}.keystore")
val installer = if (deviceSerial != null) { val installer = if (deviceSerial != null) {
val deviceSerial = deviceSerial!!.ifEmpty { null }
try { try {
if (mount) { if (mount) {
AdbRootInstaller(deviceSerial) AdbRootInstaller(deviceSerial)