@@ -22,7 +22,8 @@ import {
22
22
import { injector } from "../../yok" ;
23
23
24
24
export class AndroidVirtualDeviceService
25
- implements Mobile . IAndroidVirtualDeviceService {
25
+ implements Mobile . IAndroidVirtualDeviceService
26
+ {
26
27
private androidHome : string ;
27
28
private mapEmulatorIdToImageIdentifier : IStringDictionary = { } ;
28
29
@@ -211,7 +212,8 @@ export class AndroidVirtualDeviceService
211
212
let result : ISpawnResult = null ;
212
213
let devices : Mobile . IDeviceInfo [ ] = [ ] ;
213
214
let errors : string [ ] = [ ] ;
214
- const canExecuteAvdManagerCommand = await this . canExecuteAvdManagerCommand ( ) ;
215
+ const canExecuteAvdManagerCommand =
216
+ await this . canExecuteAvdManagerCommand ( ) ;
215
217
if ( ! canExecuteAvdManagerCommand ) {
216
218
errors = [
217
219
"Unable to execute avdmanager, ensure JAVA_HOME is set and points to correct directory" ,
@@ -221,7 +223,8 @@ export class AndroidVirtualDeviceService
221
223
if ( canExecuteAvdManagerCommand ) {
222
224
result = await this . $childProcess . trySpawnFromCloseEvent (
223
225
this . pathToAvdManagerExecutable ,
224
- [ "list" , "avds" ]
226
+ [ "list" , "avds" ] ,
227
+ { shell : this . $hostInfo . isWindows }
225
228
) ;
226
229
} else if (
227
230
this . pathToAndroidExecutable &&
@@ -403,9 +406,8 @@ export class AndroidVirtualDeviceService
403
406
private getAvdManagerDeviceInfo (
404
407
output : string
405
408
) : Mobile . IAvdManagerDeviceInfo {
406
- const avdManagerDeviceInfo : Mobile . IAvdManagerDeviceInfo = Object . create (
407
- null
408
- ) ;
409
+ const avdManagerDeviceInfo : Mobile . IAvdManagerDeviceInfo =
410
+ Object . create ( null ) ;
409
411
410
412
// Split by `\n`, not EOL as the avdmanager and android executables print results with `\n` only even on Windows
411
413
_ . reduce (
@@ -437,9 +439,8 @@ export class AndroidVirtualDeviceService
437
439
avdFilePath ,
438
440
AndroidVirtualDevice . CONFIG_INI_FILE_NAME
439
441
) ;
440
- const configIniFileInfo = this . $androidIniFileParser . parseIniFile (
441
- configIniFilePath
442
- ) ;
442
+ const configIniFileInfo =
443
+ this . $androidIniFileParser . parseIniFile ( configIniFilePath ) ;
443
444
444
445
const iniFilePath = this . getIniFilePath ( configIniFileInfo , avdFilePath ) ;
445
446
const iniFileInfo = this . $androidIniFileParser . parseIniFile ( iniFilePath ) ;
0 commit comments