We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37aa041 commit 0632422Copy full SHA for 0632422
src/interceptors/android/adb-commands.ts
@@ -23,8 +23,13 @@ export async function getConnectedDevices(adbClient: adb.AdbClient) {
23
.filter(d => d.type !== 'offline')
24
.map(d => d.id);
25
} catch (e) {
26
- if (e.code === 'ENOENT') return [];
27
- else {
+ if (
+ e.code === 'ENOENT' || // No ADB available
28
+ e.code === 'EACCES' || // ADB available, but we aren't allowed to run it
29
+ (e.cmd && e.code) // ADB available, but "adb start-server" failed
30
+ ) {
31
+ return [];
32
+ } else {
33
reportError(e);
34
throw e;
35
}
0 commit comments