feat(adb): add power related api

This commit is contained in:
Simon Chan 2022-01-13 17:28:07 +08:00
parent 1ea248d57e
commit 45d784c8a5
19 changed files with 196 additions and 106 deletions

View file

@ -51,7 +51,7 @@ export class AdbReverseCommand extends AutoDisposable {
}
const address = decodeUtf8(e.packet.payload!);
// tcp:1234\0
// tcp:12345\0
const port = Number.parseInt(address.substring(4));
if (this.localPortToHandler.has(port)) {
this.localPortToHandler.get(port)!.onSocket(e.packet, e.socket);