Update Electron

This commit is contained in:
Kenta420 2024-03-15 14:10:24 +07:00
parent cae6d582ac
commit c84ee948f5
22 changed files with 763 additions and 152 deletions

View file

@ -27,4 +27,12 @@ interface Window {
ipcRenderer: import('electron').IpcRenderer
electronRuntime: boolean
platform: NodeJS.Platform
adbNativeTcpSocket: {
getProp(serial: string, key: string): Promise<string>
getDevices(): Promise<{ name: string; serial: string }[]>
connect(host: string, port: number): Promise<{ name: string; serial: string }>
shell(serial: string, command: string, callback: (chunk: Uint8Array) => void): Promise<void>
spawn(serial: string, command: string, callback: (chunk: Uint8Array) => void): Promise<void>
disconnect(): Promise<void>
}
}