mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-10 21:36:19 +00:00
fix: Use the first connected device when no ADB device is specified
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user