@@ -22,7 +22,8 @@ import {
2222import { injector } from "../../yok" ;
2323
2424export class AndroidVirtualDeviceService
25- implements Mobile . IAndroidVirtualDeviceService {
25+ implements Mobile . IAndroidVirtualDeviceService
26+ {
2627 private androidHome : string ;
2728 private mapEmulatorIdToImageIdentifier : IStringDictionary = { } ;
2829
@@ -211,7 +212,8 @@ export class AndroidVirtualDeviceService
211212 let result : ISpawnResult = null ;
212213 let devices : Mobile . IDeviceInfo [ ] = [ ] ;
213214 let errors : string [ ] = [ ] ;
214- const canExecuteAvdManagerCommand = await this . canExecuteAvdManagerCommand ( ) ;
215+ const canExecuteAvdManagerCommand =
216+ await this . canExecuteAvdManagerCommand ( ) ;
215217 if ( ! canExecuteAvdManagerCommand ) {
216218 errors = [
217219 "Unable to execute avdmanager, ensure JAVA_HOME is set and points to correct directory" ,
@@ -221,7 +223,8 @@ export class AndroidVirtualDeviceService
221223 if ( canExecuteAvdManagerCommand ) {
222224 result = await this . $childProcess . trySpawnFromCloseEvent (
223225 this . pathToAvdManagerExecutable ,
224- [ "list" , "avds" ]
226+ [ "list" , "avds" ] ,
227+ { shell : this . $hostInfo . isWindows }
225228 ) ;
226229 } else if (
227230 this . pathToAndroidExecutable &&
@@ -403,9 +406,8 @@ export class AndroidVirtualDeviceService
403406 private getAvdManagerDeviceInfo (
404407 output : string
405408 ) : Mobile . IAvdManagerDeviceInfo {
406- const avdManagerDeviceInfo : Mobile . IAvdManagerDeviceInfo = Object . create (
407- null
408- ) ;
409+ const avdManagerDeviceInfo : Mobile . IAvdManagerDeviceInfo =
410+ Object . create ( null ) ;
409411
410412 // Split by `\n`, not EOL as the avdmanager and android executables print results with `\n` only even on Windows
411413 _ . reduce (
@@ -437,9 +439,8 @@ export class AndroidVirtualDeviceService
437439 avdFilePath ,
438440 AndroidVirtualDevice . CONFIG_INI_FILE_NAME
439441 ) ;
440- const configIniFileInfo = this . $androidIniFileParser . parseIniFile (
441- configIniFilePath
442- ) ;
442+ const configIniFileInfo =
443+ this . $androidIniFileParser . parseIniFile ( configIniFilePath ) ;
443444
444445 const iniFilePath = this . getIniFilePath ( configIniFileInfo , avdFilePath ) ;
445446 const iniFileInfo = this . $androidIniFileParser . parseIniFile ( iniFilePath ) ;
0 commit comments