Skip to content

Commit fbf5e39

Browse files
committed
chore: small changes
1 parent 6b6afbe commit fbf5e39

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/lib/adb/server.ts

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import wire from '../wire'
77
import waitUntil from 'licia/waitUntil'
88
import { getDeviceStore, setDeviceStore, shell } from './base'
99
import contain from 'licia/contain'
10+
import log from '../../../common/log'
11+
12+
const logger = log('server')
1013

1114
let client: Client
1215

@@ -37,6 +40,7 @@ class AyaClient {
3740
})
3841
}
3942
private async connect(tryStart = true) {
43+
logger.info('connect')
4044
try {
4145
const device = client.getDevice(this.deviceId)
4246
const socket = await device.openLocal('localabstract:aya')
@@ -83,13 +87,15 @@ class AyaClient {
8387
return contain(result, '@aya')
8488
})
8589
private async push() {
90+
logger.info('push')
8691
const device = client.getDevice(this.deviceId)
8792
await device.push(
8893
resolveUnpack('server/aya.dex'),
8994
'/data/local/tmp/aya/aya.dex'
9095
)
9196
}
9297
private async start() {
98+
logger.info('start')
9399
const device = client.getDevice(this.deviceId)
94100
await device.shell(
95101
'CLASSPATH=/data/local/tmp/aya/aya.dex app_process /system/bin io.liriliri.aya.Server'

src/renderer/main/components/toolbar/Device.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default observer(function Device() {
1919
if (!isEmpty(store.devices)) {
2020
deviceOptions = {}
2121
each(store.devices, (device) => {
22-
deviceOptions[device.name] = device.id
22+
deviceOptions[`${device.name} (${device.id})`] = device.id
2323
})
2424
} else {
2525
deviceOptions[t('deviceNotConnected')] = ''

0 commit comments

Comments
 (0)