@@ -13,9 +13,9 @@ interface IAndroidDeviceDetails {
1313 name : string ;
1414 release : string ;
1515 brand : string ;
16- ' cpu.abi' : string ;
17- ' cpu.abilist64' : string ;
18- ' cpu.abilist32' : string ;
16+ " cpu.abi" : string ;
17+ " cpu.abilist64" : string ;
18+ " cpu.abilist32" : string ;
1919}
2020
2121interface IAdbDeviceStatusInfo {
@@ -99,7 +99,10 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
9999 identifier : this . identifier ,
100100 displayName : details . name ,
101101 model : details . model ,
102- abis : details [ 'cpu.abilist64' ] . split ( ',' ) . concat ( details [ 'cpu.abilist32' ] . split ( ',' ) ) ,
102+ abis : [
103+ ...details [ "cpu.abilist64" ] . split ( "," ) ,
104+ ...details [ "cpu.abilist32" ] . split ( "," ) ,
105+ ] ,
103106 version,
104107 vendor : details . brand ,
105108 platform : this . $devicePlatformsConstants . Android ,
@@ -115,12 +118,14 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
115118 : [ DeviceConnectionType . USB ] ;
116119
117120 if ( this . isEmulator ) {
118- this . deviceInfo . displayName = await this . $androidEmulatorServices . getRunningEmulatorName (
119- this . identifier
120- ) ;
121- this . deviceInfo . imageIdentifier = await this . $androidEmulatorServices . getRunningEmulatorImageIdentifier (
122- this . identifier
123- ) ;
121+ this . deviceInfo . displayName =
122+ await this . $androidEmulatorServices . getRunningEmulatorName (
123+ this . identifier
124+ ) ;
125+ this . deviceInfo . imageIdentifier =
126+ await this . $androidEmulatorServices . getRunningEmulatorImageIdentifier (
127+ this . identifier
128+ ) ;
124129 }
125130
126131 this . $logger . trace ( this . deviceInfo ) ;
@@ -165,9 +170,10 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
165170 // sample line is "ro.build.version.release=4.4" in /system/build.prop
166171 // sample line from getprop is: [ro.build.version.release]: [6.0]
167172 // NOTE: some props do not have value: [ro.build.version.base_os]: []
168- const match = / (?: \[ ? r o \. b u i l d \. v e r s i o n | r o \. p r o d u c t | r o \. b u i l d ) \. ( .+ ?) ] ? (?: \: | = ) (?: \s * ?\[ ) ? ( .* ?) ] ? $ / . exec (
169- value
170- ) ;
173+ const match =
174+ / (?: \[ ? r o \. b u i l d \. v e r s i o n | r o \. p r o d u c t | r o \. b u i l d ) \. ( .+ ?) ] ? (?: \: | = ) (?: \s * ?\[ ) ? ( .* ?) ] ? $ / . exec (
175+ value
176+ ) ;
171177 if ( match ) {
172178 parsedDetails [ match [ 1 ] ] = match [ 2 ] ;
173179 }
@@ -193,7 +199,8 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
193199 }
194200
195201 private async getType ( ) : Promise < string > {
196- const runningEmulatorIds = await this . $androidEmulatorServices . getRunningEmulatorIds ( ) ;
202+ const runningEmulatorIds =
203+ await this . $androidEmulatorServices . getRunningEmulatorIds ( ) ;
197204 if (
198205 _ . find ( runningEmulatorIds , ( emulatorId ) => emulatorId === this . identifier )
199206 ) {
0 commit comments