File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/components/intercept/config Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,15 @@ class AndroidAdbConfig extends React.Component<{
128
128
targets = { this . deviceIds . map ( id => {
129
129
const activating = this . inProgressIds . includes ( id ) ;
130
130
131
+ // Only new servers (1.17.0+) expose metadata.devices with names
132
+ const deviceName = this . props . interceptor . metadata ?. devices ?. [ id ] . name
133
+ ?? id ;
134
+
131
135
return {
132
136
id,
133
- title : `Intercept Android device ${ id } ` ,
137
+ title : `Intercept Android device ${ deviceName } ${
138
+ id !== deviceName ? ` (ID: ${ id } )` : ''
139
+ } `,
134
140
status : activating
135
141
? 'activating'
136
142
: 'available' ,
@@ -139,7 +145,7 @@ class AndroidAdbConfig extends React.Component<{
139
145
: id . match ( / \d + \. \d + \. \d + \. \d + : \d + / )
140
146
? < Icon icon = { [ 'fas' , 'network-wired' ] } />
141
147
: < Icon icon = { [ 'fas' , 'mobile-alt' ] } /> ,
142
- content : id
148
+ content : deviceName
143
149
} ;
144
150
} ) }
145
151
interceptTarget = { this . interceptDevice }
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ class FridaConfig extends React.Component<{
402
402
403
403
return {
404
404
id,
405
- title : `${ this . deviceClassName } device ${ name } in state ${ state } ` ,
405
+ title : `${ this . deviceClassName } device ${ name } ( ${ id } ) in state ${ state } ` ,
406
406
icon : id . includes ( "emulator-" )
407
407
? < Icon icon = { [ 'far' , 'window-maximize' ] } />
408
408
: id . match ( / \d + \. \d + \. \d + \. \d + : \d + / )
You can’t perform that action at this time.
0 commit comments