mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
chore: update docs
This commit is contained in:
parent
8a521c8d93
commit
82f5a90838
6 changed files with 62 additions and 52 deletions
|
@ -19,14 +19,14 @@ export const VERSION_OMIT_CHECKSUM = 0x01000001;
|
|||
export class Adb {
|
||||
/**
|
||||
* It's possible to call `authenticate` multiple times on a single connection,
|
||||
* every time the device receives a `CNXN` packet it will reset its internal state,
|
||||
* and begin authentication again.
|
||||
* every time the device receives a `CNXN` packet, it resets its internal state,
|
||||
* and starts a new authentication process.
|
||||
*/
|
||||
public static async authenticate(
|
||||
connection: ReadableWritablePair<AdbPacketCore, AdbPacketCore>,
|
||||
credentialStore: AdbCredentialStore,
|
||||
authenticators = AdbDefaultAuthenticators,
|
||||
) {
|
||||
): Promise<Adb> {
|
||||
let version = 0x01000001;
|
||||
let maxPayloadSize = 0x100000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue