This repository was archived by the owner on Feb 2, 2021. It is now read-only.
File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2
2
"use strict" ;
3
3
4
4
import * as path from "path" ;
5
- import * as util from "util" ;
6
5
7
6
export class PreUninstallCommand implements ICommand {
8
- private static ADB_RELATIVE_PATH = "../resources/platform-tools/android/%s/adb" ;
9
7
10
8
constructor ( private $fs : IFileSystem ,
11
9
private $childProcess : IChildProcess ,
@@ -17,19 +15,6 @@ export class PreUninstallCommand implements ICommand {
17
15
18
16
public execute ( args : string [ ] ) : IFuture < void > {
19
17
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
-
33
18
this . $fs . deleteFile ( path . join ( this . $options . profileDir , "KillSwitches" , "cli" ) ) . wait ( ) ;
34
19
} ) . future < void > ( ) ( ) ;
35
20
}
You can’t perform that action at this time.
0 commit comments