@onekeyfe/hd-transport-react-native 1.2.3-alpha.1 → 1.2.3-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,4 +26,4 @@ yar update:protobuf to generate new ./messages.json and ./src/types/messages.ts
26
26
 
27
27
  ## Docs
28
28
 
29
- Documentation is available [hardware-js-sdk](https://developer.onekey.so/connect-to-hardware/hardware-sdk/start)
29
+ Documentation is available [Hardware SDK Getting Started](https://developer.onekey.so/en/hardware-sdk/getting-started)
@@ -1,9 +1,10 @@
1
1
  import type { Peripheral } from '@onekeyfe/react-native-ble-utils';
2
2
  export declare const getConnectedDeviceIds: (serviceUuids: string[]) => Promise<Peripheral[]>;
3
3
  export declare const getBondedDevices: () => Promise<Peripheral[]>;
4
- export declare const pairDevice: (macAddress: string) => Promise<{
5
- bonded: boolean;
6
- bonding: boolean;
7
- }>;
8
- export declare const onDeviceBondState: (bleMacAddress: string) => Promise<Peripheral | undefined>;
4
+ export declare const pairDevice: (macAddress: string) => Promise<import("@onekeyfe/react-native-ble-utils").PairDeviceResult>;
5
+ export declare const SYSTEM_BONDING_RESTART_WINDOW_MS = 1500;
6
+ export type DeviceBondStateOptions = {
7
+ systemInitiated?: boolean;
8
+ };
9
+ export declare const onDeviceBondState: (bleMacAddress: string, signal?: AbortSignal, options?: DeviceBondStateOptions) => Promise<Peripheral | undefined>;
9
10
  //# sourceMappingURL=BleManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BleManager.d.ts","sourceRoot":"","sources":["../src/BleManager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AASnE,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,EAAE,0BACZ,CAAC;AAEjD,eAAO,MAAM,gBAAgB,6BAAwC,CAAC;AAEtE,eAAO,MAAM,UAAU,eAAgB,MAAM;;;EAAoC,CAAC;AAElF,eAAO,MAAM,iBAAiB,kBAAmB,MAAM,KAAG,QAAQ,UAAU,GAAG,SAAS,CA+BpF,CAAC"}
1
+ {"version":3,"file":"BleManager.d.ts","sourceRoot":"","sources":["../src/BleManager.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAsBnE,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,EAAE,0BACZ,CAAC;AAEjD,eAAO,MAAM,gBAAgB,6BAAwC,CAAC;AAEtE,eAAO,MAAM,UAAU,eAAgB,MAAM,yEAAoC,CAAC;AAMlF,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAAG;IAMnC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAkCF,eAAO,MAAM,iBAAiB,kBACb,MAAM,WACZ,WAAW,YACV,sBAAsB,KAC/B,QAAQ,UAAU,GAAG,SAAS,CA0E7B,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const HCI_PIN_OR_KEY_MISSING = 6;
2
+ export type AndroidLinkEncryption = 'encrypted' | 'already-encrypted' | 're-paired' | 'unresolved';
3
+ export declare const isBleEncryptionTrackingSupported: () => boolean;
4
+ export declare const startBleEncryptionTracking: () => boolean;
5
+ export declare const stopBleEncryptionTracking: () => void;
6
+ export declare const markBleLinkEncrypted: (deviceId: string) => void;
7
+ export type WaitForAndroidLinkEncryptionOptions = {
8
+ deviceId: string;
9
+ linkStartedAt: number;
10
+ resultTimeoutMs: number;
11
+ repairTimeoutMs: number;
12
+ keyMissingGraceMs: number;
13
+ signal?: AbortSignal;
14
+ onRepairStarted?: () => void;
15
+ };
16
+ export declare const waitForAndroidLinkEncryption: ({ deviceId, linkStartedAt, resultTimeoutMs, repairTimeoutMs, keyMissingGraceMs, signal, onRepairStarted, }: WaitForAndroidLinkEncryptionOptions) => Promise<AndroidLinkEncryption>;
17
+ //# sourceMappingURL=bleEncryption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bleEncryption.d.ts","sourceRoot":"","sources":["../src/bleEncryption.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,sBAAsB,IAAO,CAAC;AAE3C,MAAM,MAAM,qBAAqB,GAE7B,WAAW,GAEX,mBAAmB,GAEnB,WAAW,GAEX,YAAY,CAAC;AA0CjB,eAAO,MAAM,gCAAgC,eAA2C,CAAC;AAGzF,eAAO,MAAM,0BAA0B,QAAO,OAwB7C,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAMrC,CAAC;AAMF,eAAO,MAAM,oBAAoB,aAAc,MAAM,SAGpD,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,MAAM,CAAC;IAEtB,eAAe,EAAE,MAAM,CAAC;IAExB,eAAe,EAAE,MAAM,CAAC;IAExB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAOF,eAAO,MAAM,4BAA4B,+GAQtC,mCAAmC,KAAG,QAAQ,qBAAqB,CAuHrE,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const isBleKeyMissingSupported: () => boolean;
2
+ export declare const startBleKeyMissingTracking: () => boolean;
3
+ export declare const stopBleKeyMissingTracking: () => void;
4
+ export declare const hasBleKeyMissingSince: (deviceId: string, sinceMs: number) => boolean;
5
+ export declare const onBleKeyMissing: (deviceId: string, callback: () => void) => (() => void);
6
+ export declare const waitForBleKeyMissing: (deviceId: string, sinceMs: number, timeoutMs: number) => Promise<boolean>;
7
+ //# sourceMappingURL=bleKeyMissing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bleKeyMissing.d.ts","sourceRoot":"","sources":["../src/bleKeyMissing.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,wBAAwB,eAA2C,CAAC;AAGjF,eAAO,MAAM,0BAA0B,QAAO,OAY7C,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAKrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,MAAM,WAAW,MAAM,KAAG,OAGzE,CAAC;AAGF,eAAO,MAAM,eAAe,aAAc,MAAM,YAAY,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CASnF,CAAC;AAOF,eAAO,MAAM,oBAAoB,aACrB,MAAM,WACP,MAAM,aACJ,MAAM,KAChB,QAAQ,OAAO,CAejB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const isNativeBleDisconnectError: (error: unknown) => boolean;
2
+ export declare const toBleDisconnectHardwareError: (error: unknown) => Error;
3
+ //# sourceMappingURL=bleNativeDisconnect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bleNativeDisconnect.d.ts","sourceRoot":"","sources":["../src/bleNativeDisconnect.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,0BAA0B,UAAW,OAAO,KAAG,OAU3D,CAAC;AAEF,eAAO,MAAM,4BAA4B,UAAW,OAAO,UAU1D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -62,6 +62,24 @@ declare const getFirmwareUploadWriteRetryType: (error: unknown) => FirmwareUploa
62
62
  */
63
63
  declare const BLE_WRITE_PACKET_TIMEOUT_MS = 10000;
64
64
  declare const BLE_NATIVE_TEARDOWN_TIMEOUT_MS = 3000;
65
+ /**
66
+ * Android reports a lost bond (ACTION_KEY_MISSING) while it encrypts a new link, so only
67
+ * a failure this soon after the link started can be explained by it. Later disconnects,
68
+ * such as a firmware-update reboot, must keep their own meaning.
69
+ */
70
+ declare const ANDROID_KEY_MISSING_LINK_WINDOW_MS = 10000;
71
+ /** The broadcast and the GATT disconnect it explains travel separately; either can land first. */
72
+ declare const ANDROID_KEY_MISSING_GRACE_MS = 500;
73
+ /**
74
+ * Android reports a bonded link's first encryption result within about half a second of
75
+ * connecting. Past this, the result is treated as unknown and the link is used as before.
76
+ */
77
+ declare const ANDROID_ENCRYPTION_RESULT_TIMEOUT_MS = 1500;
78
+ /**
79
+ * A system re-pairing needs the user to accept a pairing request and confirm the code on the
80
+ * device. The Bluetooth stack gives up after 30s and then reports key missing.
81
+ */
82
+ declare const ANDROID_SYSTEM_REPAIR_TIMEOUT_MS = 35000;
65
83
  /** Consecutive wedged writes on one device before the BLE manager itself is recreated. */
66
84
  declare const BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD = 2;
67
85
  type ProtocolV2BleTuning = {
@@ -74,6 +92,16 @@ declare function getProtocolV2BleTuning(): {
74
92
  iosPacketLength: number;
75
93
  androidPacketLength: number;
76
94
  };
95
+ /**
96
+ * With no cached GATT table the stack runs its own discovery (up to ~8s) before the MTU
97
+ * exchange, so the bound sits above that; a stuck exchange never completes.
98
+ */
99
+ declare const ANDROID_MTU_EXCHANGE_TIMEOUT_MS = 12000;
100
+ /**
101
+ * Android keeps an LE link, with per-link ATT state such as a pending MTU exchange, for its
102
+ * 4s GATT link idle timer after the last client closes; a reconnect inside it reuses the link.
103
+ */
104
+ declare const ANDROID_LINK_DROP_QUIET_MS = 5000;
77
105
  /**
78
106
  * JS backstop for connect. The native adapter applies its own 3s budget, but it
79
107
  * schedules that timeout on its serial queue, so a busy queue (e.g. right after a
@@ -109,6 +137,7 @@ declare class ReactNativeBleTransport {
109
137
  name: string;
110
138
  configured: boolean;
111
139
  stopped: boolean;
140
+ private readonly bondAbortController;
112
141
  scanTimeout: number;
113
142
  runPromise: Deferred<any> | null;
114
143
  private runPromiseDeviceId;
@@ -134,12 +163,18 @@ declare class ReactNativeBleTransport {
134
163
  private confirmedProtocolV2;
135
164
  /** Consecutive detections that failed while trusting sessionProtocols. */
136
165
  private protocolReprobeFailures;
166
+ /** Endpoints whose last detection got no answer; 'woken' once their Initialize wake is spent. */
167
+ private silentDetections;
168
+ /** Android endpoints whose cached GATT table is suspect; the next connect refreshes it. */
169
+ private androidGattCacheRefreshes;
137
170
  /**
138
171
  * Native encryption/pairing failures seen before Protocol V2 probe starts.
139
172
  * Pro2/Neo GATT connect can succeed on a stale iOS bond; the CCCD write then
140
173
  * fails with ATT 5/15. Remember it so detectProtocol fails immediately.
141
174
  */
142
175
  private staleBondErrors;
176
+ /** When the current Android link attempt began; bounds which key-missing signals apply. */
177
+ private androidLinkStartedAt;
143
178
  /** Strict or previously confirmed V2 target while acquire installs notifications. */
144
179
  private acquiringProtocolV2;
145
180
  private protocolV2Assemblers;
@@ -154,12 +189,15 @@ declare class ReactNativeBleTransport {
154
189
  private nextMonitorToken;
155
190
  /** Serializes transport lifecycle changes for the same physical device. */
156
191
  private lifecycleOperations;
192
+ private stopPromise?;
193
+ private scanCleanups;
157
194
  constructor(options: TransportOptions);
158
195
  init(logger: any, emitter: EventEmitter): void;
159
196
  configure(signedData: any): void;
160
197
  configureProtocolV2(signedData: any): void;
161
198
  listen(): void;
162
199
  getPlxManager(): Promise<BleManager>;
200
+ private waitForManagerReset;
163
201
  resolveCharacteristics(device: Device): Promise<ResolvedBleCharacteristics>;
164
202
  attachDisconnectSubscription(transport: BleTransport, device: Device, uuid: string): void;
165
203
  private emitDeviceDisconnect;
@@ -182,14 +220,35 @@ declare class ReactNativeBleTransport {
182
220
  private releaseNative;
183
221
  post(session: string, name: string, data: Record<string, unknown>): Promise<void>;
184
222
  call(uuid: string, name: string, data: Record<string, unknown>, options?: TransportCallOptions): Promise<transport.MessageFromOneKey>;
223
+ /**
224
+ * Android 16+ keeps a bond the device no longer holds keys for. The device drops the link
225
+ * and the only structured evidence is ACTION_KEY_MISSING, so a link loss right after
226
+ * connect is re-read as an invalid bond when that signal belongs to the same attempt.
227
+ */
228
+ private resolveAndroidBondInvalid;
229
+ /**
230
+ * Android 16+ encrypts a bonded link on its own right after connecting. Subscribing to
231
+ * notifications before that finishes gets the CCCD write rejected, and the framework's retry
232
+ * encrypts again with the same stale key; firmware that allows one failure per link then drops
233
+ * it before the system can re-pair. Holding GATT until the result lets a lost bond be re-paired
234
+ * in place. Without the platform signal this resolves immediately.
235
+ */
236
+ private waitForAndroidLinkSecurity;
185
237
  private callProtocolV1;
186
- stop(): void;
238
+ stop(): Promise<void>;
187
239
  disconnect(session: string): Promise<void>;
188
240
  private disconnectUnlocked;
189
241
  private runNativeTeardown;
190
242
  private runBestEffortNativeOperation;
191
243
  private runLifecycleOperation;
192
- cancel(): void;
244
+ cancel(): Promise<void>;
245
+ /**
246
+ * Android: request the MTU with nothing queued ahead and never close the client while it is
247
+ * outstanding; a link that times out or stays at MTU 23 is dropped.
248
+ */
249
+ private negotiateAndroidMtu;
250
+ /** Close the client and wait out the link idle timer so the next connect gets a fresh link. */
251
+ private dropAndroidLink;
193
252
  /** Run a native connect under the JS backstop budget. */
194
253
  private connectWithTimeout;
195
254
  /** Resolve the complete GATT shape under a budget so acquire() always settles. */
@@ -224,6 +283,13 @@ declare class ReactNativeBleTransport {
224
283
  /** Protocol to route a call with: confirmed if known, otherwise the one being probed. */
225
284
  private getActiveProtocol;
226
285
  private detectProtocol;
286
+ /**
287
+ * A sleeping Classic drops GetFeatures/Ping and only leaves its screensaver on Initialize, which
288
+ * resets the wallet session, so it is sent once after a fully silent detection. The firmware does
289
+ * not reliably answer it, so its timeout must not drop the link. It only runs when V1 is probed
290
+ * first, so a late reply lands on the V1 probe rather than on a V2 one.
291
+ */
292
+ private wakeSilentProtocolV1Device;
227
293
  private resetProbeStateAfterProtocolProbe;
228
294
  private probeProtocolV1;
229
295
  private probeProtocolV2;
@@ -247,4 +313,4 @@ declare class ReactNativeBleTransport {
247
313
  getProtocolType(path: string): ProtocolType | undefined;
248
314
  }
249
315
 
250
- export { BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD, BLE_CONNECT_TIMEOUT_MS, BLE_GATT_SETUP_TIMEOUT_MS, BLE_NATIVE_TEARDOWN_TIMEOUT_MS, BLE_SETUP_WEDGED_MESSAGE, BLE_WRITE_PACKET_TIMEOUT_MS, BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD, IOneKeyDevice, PROTOCOL_REPROBE_FALLBACK_ATTEMPTS, ProtocolV2BleTuning, configureProtocolV2BleTuning, ReactNativeBleTransport as default, getFirmwareUploadWriteRetryType, getProtocolV2BleTuning, resetProtocolV2BleTuning };
316
+ export { ANDROID_ENCRYPTION_RESULT_TIMEOUT_MS, ANDROID_KEY_MISSING_GRACE_MS, ANDROID_KEY_MISSING_LINK_WINDOW_MS, ANDROID_LINK_DROP_QUIET_MS, ANDROID_MTU_EXCHANGE_TIMEOUT_MS, ANDROID_SYSTEM_REPAIR_TIMEOUT_MS, BLE_CONNECT_TIMEOUT_MANAGER_RESET_THRESHOLD, BLE_CONNECT_TIMEOUT_MS, BLE_GATT_SETUP_TIMEOUT_MS, BLE_NATIVE_TEARDOWN_TIMEOUT_MS, BLE_SETUP_WEDGED_MESSAGE, BLE_WRITE_PACKET_TIMEOUT_MS, BLE_WRITE_TIMEOUT_MANAGER_RESET_THRESHOLD, IOneKeyDevice, PROTOCOL_REPROBE_FALLBACK_ATTEMPTS, ProtocolV2BleTuning, configureProtocolV2BleTuning, ReactNativeBleTransport as default, getFirmwareUploadWriteRetryType, getProtocolV2BleTuning, resetProtocolV2BleTuning };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAGL,UAAU,IAAI,aAAa,EAG5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,SAAS,EAAE,EAChB,KAAK,oBAAoB,EAIzB,KAAK,YAAY,EAKjB,KAAK,oBAAoB,EAI1B,MAAM,wBAAwB,CAAC;AA+BhC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK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