We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da18d3b commit 9f71a69Copy full SHA for 9f71a69
1 file changed
packages/haul-core/src/utils/runAdbReverse.ts
@@ -5,7 +5,9 @@ export default function runAdbReverse(
5
runtime: Runtime,
6
port: number
7
): Promise<string | undefined> {
8
- const command = `adb reverse tcp:${port} tcp:${port}`;
+ const androidHome = process.env.ANDROID_HOME;
9
+ const adb = androidHome ? `${androidHome}/platform-tools/adb` : 'adb';
10
+ const command = `${adb} reverse tcp:${port} tcp:${port}`;
11
12
return new Promise(resolve => {
13
exec(command, error => {
0 commit comments