Skip to content

Commit cdfe3b0

Browse files
committed
Silence ADB EPERM errors
1 parent 9f54ca6 commit cdfe3b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const getConnectedDevices = batchCalls(async (adbClient: adb.AdbClient) =
6464
if (isErrorLike(e) && (
6565
e.code === 'ENOENT' || // No ADB available
6666
e.code === 'EACCES' || // ADB available, but we aren't allowed to run it
67+
e.code === 'EPERM' || // Permissions error launching ADB
6768
e.code === 'ECONNREFUSED' || // Tried to start ADB, but still couldn't connect
6869
e.code === 'ENOTDIR' || // ADB path contains something that's not a directory
6970
e.signal === 'SIGKILL' || // In some envs 'adb start-server' is always killed (why?)

0 commit comments

Comments
 (0)