File tree 2 files changed +7
-1
lines changed
renderer/main/components/toolbar
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ import wire from '../wire'
7
7
import waitUntil from 'licia/waitUntil'
8
8
import { getDeviceStore , setDeviceStore , shell } from './base'
9
9
import contain from 'licia/contain'
10
+ import log from '../../../common/log'
11
+
12
+ const logger = log ( 'server' )
10
13
11
14
let client : Client
12
15
@@ -37,6 +40,7 @@ class AyaClient {
37
40
} )
38
41
}
39
42
private async connect ( tryStart = true ) {
43
+ logger . info ( 'connect' )
40
44
try {
41
45
const device = client . getDevice ( this . deviceId )
42
46
const socket = await device . openLocal ( 'localabstract:aya' )
@@ -83,13 +87,15 @@ class AyaClient {
83
87
return contain ( result , '@aya' )
84
88
} )
85
89
private async push ( ) {
90
+ logger . info ( 'push' )
86
91
const device = client . getDevice ( this . deviceId )
87
92
await device . push (
88
93
resolveUnpack ( 'server/aya.dex' ) ,
89
94
'/data/local/tmp/aya/aya.dex'
90
95
)
91
96
}
92
97
private async start ( ) {
98
+ logger . info ( 'start' )
93
99
const device = client . getDevice ( this . deviceId )
94
100
await device . shell (
95
101
'CLASSPATH=/data/local/tmp/aya/aya.dex app_process /system/bin io.liriliri.aya.Server'
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default observer(function Device() {
19
19
if ( ! isEmpty ( store . devices ) ) {
20
20
deviceOptions = { }
21
21
each ( store . devices , ( device ) => {
22
- deviceOptions [ device . name ] = device . id
22
+ deviceOptions [ ` ${ device . name } ( ${ device . id } )` ] = device . id
23
23
} )
24
24
} else {
25
25
deviceOptions [ t ( 'deviceNotConnected' ) ] = ''
You can’t perform that action at this time.
0 commit comments