Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 20a3bed

Browse files
committed
Do not call adb kill-server on uninstall
See NativeScript/nativescript-cli#1247
1 parent 21f43e1 commit 20a3bed

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

commands/preuninstall.ts

-15
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
"use strict";
33

44
import * as path from "path";
5-
import * as util from "util";
65

76
export class PreUninstallCommand implements ICommand {
8-
private static ADB_RELATIVE_PATH = "../resources/platform-tools/android/%s/adb";
97

108
constructor(private $fs: IFileSystem,
119
private $childProcess: IChildProcess,
@@ -17,19 +15,6 @@ export class PreUninstallCommand implements ICommand {
1715

1816
public execute(args: string[]): IFuture<void> {
1917
return (() => {
20-
let relativeAdbPath = util.format(PreUninstallCommand.ADB_RELATIVE_PATH, process.platform);
21-
let adbPath = path.join(__dirname, relativeAdbPath);
22-
23-
let killAdbServerCommand = util.format("\"%s\" kill-server", adbPath);
24-
this.$logger.warn("Trying to kill adb server. Some running Android related operations may fail.");
25-
26-
try {
27-
this.$childProcess.exec(killAdbServerCommand).wait();
28-
} catch(err) {
29-
this.$logger.trace(err);
30-
this.$logger.warn("Unable to kill adb server.");
31-
}
32-
3318
this.$fs.deleteFile(path.join(this.$options.profileDir, "KillSwitches", "cli")).wait();
3419
}).future<void>()();
3520
}

0 commit comments

Comments
 (0)