@onekeyfe/hd-core 1.2.0-alpha.0 → 1.2.0-alpha.2

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.
Files changed (68) hide show
  1. package/__tests__/protocol-v2.test.ts +56 -178
  2. package/dist/api/FirmwareUpdateV2.d.ts.map +1 -1
  3. package/dist/api/FirmwareUpdateV3.d.ts.map +1 -1
  4. package/dist/api/FirmwareUpdateV4.d.ts +2 -2
  5. package/dist/api/FirmwareUpdateV4.d.ts.map +1 -1
  6. package/dist/api/GetDeviceInfo.d.ts.map +1 -1
  7. package/dist/api/GetFeatures.d.ts +1 -1
  8. package/dist/api/GetOnekeyFeatures.d.ts.map +1 -1
  9. package/dist/api/device/DeviceUnlock.d.ts +1 -1
  10. package/dist/api/firmware/bootloaderHelper.d.ts.map +1 -1
  11. package/dist/api/firmware/uploadFirmware.d.ts.map +1 -1
  12. package/dist/api/tron/TronSignMessage.d.ts +0 -1
  13. package/dist/api/tron/TronSignMessage.d.ts.map +1 -1
  14. package/dist/api/tron/TronSignTransaction.d.ts +0 -1
  15. package/dist/api/tron/TronSignTransaction.d.ts.map +1 -1
  16. package/dist/core/index.d.ts.map +1 -1
  17. package/dist/device/Device.d.ts +10 -15
  18. package/dist/device/Device.d.ts.map +1 -1
  19. package/dist/deviceProfile/buildDeviceFeatures.d.ts +6 -0
  20. package/dist/deviceProfile/buildDeviceFeatures.d.ts.map +1 -0
  21. package/dist/deviceProfile/buildDeviceProfile.d.ts +3 -4
  22. package/dist/deviceProfile/buildDeviceProfile.d.ts.map +1 -1
  23. package/dist/deviceProfile/index.d.ts +1 -1
  24. package/dist/deviceProfile/index.d.ts.map +1 -1
  25. package/dist/index.d.ts +571 -496
  26. package/dist/index.js +502 -571
  27. package/dist/protocols/protocol-v2/features.d.ts.map +1 -1
  28. package/dist/types/api/getDeviceInfo.d.ts +2 -2
  29. package/dist/types/api/getDeviceInfo.d.ts.map +1 -1
  30. package/dist/types/device.d.ts +87 -8
  31. package/dist/types/device.d.ts.map +1 -1
  32. package/dist/utils/capabilitieUtils.d.ts.map +1 -1
  33. package/dist/utils/deviceFeaturesUtils.d.ts.map +1 -1
  34. package/dist/utils/deviceInfoUtils.d.ts.map +1 -1
  35. package/dist/utils/deviceVersionUtils.d.ts.map +1 -1
  36. package/dist/utils/findDefectiveBatchDevice.d.ts +1 -1
  37. package/dist/utils/patch.d.ts +1 -1
  38. package/package.json +4 -4
  39. package/src/api/FirmwareUpdateV2.ts +9 -2
  40. package/src/api/FirmwareUpdateV3.ts +2 -1
  41. package/src/api/FirmwareUpdateV4.ts +24 -31
  42. package/src/api/GetDeviceInfo.ts +6 -13
  43. package/src/api/GetOnekeyFeatures.ts +3 -14
  44. package/src/api/GetPassphraseState.ts +2 -2
  45. package/src/api/firmware/bootloaderHelper.ts +3 -2
  46. package/src/api/firmware/getBinary.ts +1 -1
  47. package/src/api/firmware/releaseHelper.ts +3 -3
  48. package/src/api/firmware/uploadFirmware.ts +5 -2
  49. package/src/api/tron/TronSignMessage.ts +0 -1
  50. package/src/api/tron/TronSignTransaction.ts +0 -1
  51. package/src/core/index.ts +3 -7
  52. package/src/data-manager/DataManager.ts +4 -4
  53. package/src/device/Device.ts +74 -240
  54. package/src/device/DevicePool.ts +3 -3
  55. package/src/deviceProfile/buildDeviceFeatures.ts +367 -0
  56. package/src/deviceProfile/buildDeviceProfile.ts +102 -155
  57. package/src/deviceProfile/index.ts +4 -1
  58. package/src/protocols/protocol-v2/features.ts +6 -9
  59. package/src/types/api/getDeviceInfo.ts +2 -2
  60. package/src/types/device.ts +97 -34
  61. package/src/utils/capabilitieUtils.ts +1 -2
  62. package/src/utils/deviceFeaturesUtils.ts +11 -17
  63. package/src/utils/deviceInfoUtils.ts +11 -29
  64. package/src/utils/deviceVersionUtils.ts +7 -25
  65. package/src/utils/findDefectiveBatchDevice.ts +6 -6
  66. package/dist/deviceProfile/legacyFeaturesView.d.ts +0 -5
  67. package/dist/deviceProfile/legacyFeaturesView.d.ts.map +0 -1
  68. package/src/deviceProfile/legacyFeaturesView.ts +0 -123
@@ -51,7 +51,7 @@ import {
51
51
  } from '../src/protocols/protocol-v2/features';
52
52
  import {
53
53
  buildProfileFromProtocolV2,
54
- buildProtocolV2GetFeaturesPayload,
54
+ buildProtocolV2FeaturesPayload,
55
55
  } from '../src/deviceProfile';
56
56
  import {
57
57
  getDeviceType,
@@ -91,44 +91,34 @@ const descriptor = {
91
91
  */
92
92
  function stubDevice<T extends Record<string, any>>(device: T): T {
93
93
  const d = device as any;
94
- d.isProtocolV2 ??= () =>
95
- d.profile?.protocol === 'V2' || d.originalDescriptor?.protocolType === 'V2';
94
+ d.isProtocolV2 ??= () => d.originalDescriptor?.protocolType === 'V2';
96
95
  d.getProtocol ??= () => (d.isProtocolV2() ? 'V2' : 'V1');
97
- d.getCurrentDeviceType ??= () => d.profile?.deviceType ?? getDeviceType(d.features);
98
- d.getCurrentFirmwareType ??= () => d.profile?.firmwareType ?? getFirmwareType(d.features);
96
+ d.getCurrentDeviceType ??= () => getDeviceType(d.features);
97
+ d.getCurrentFirmwareType ??= () => getFirmwareType(d.features);
99
98
  d.getCurrentFirmwareVersionString ??= () =>
100
- d.profile?.versions?.firmware ??
101
- (d.features ? getDeviceFirmwareVersion(d.features).join('.') : undefined);
102
- d.getCurrentBLEFirmwareVersionString ??= () => d.profile?.versions?.ble ?? undefined;
99
+ d.features ? getDeviceFirmwareVersion(d.features).join('.') : undefined;
100
+ d.getCurrentBLEFirmwareVersionString ??= () => d.features?.onekey_ble_version;
103
101
  d.getCurrentSafetyChecks ??= () => d.features?.safety_checks;
104
- d.getCurrentDeviceId ??= () => d.profile?.deviceId || d.features?.device_id || undefined;
105
- d.getCurrentSerialNo ??= () => d.profile?.serialNo || '';
102
+ d.getCurrentDeviceId ??= () => d.features?.device_id || undefined;
103
+ d.getCurrentSerialNo ??= () => d.features?.serial_no || d.features?.onekey_serial_no || '';
106
104
  d.getCurrentPassphraseProtection ??= () =>
107
- d.profile ? d.profile.status?.passphraseProtection : d.features?.passphrase_protection;
105
+ d.features?.passphrase_protection;
108
106
  d.getCurrentMethodVersionRange ??= (fn: (model: any) => any) => {
109
107
  const deviceType = d.getCurrentDeviceType();
110
108
  const range = fn(deviceType);
111
109
  if (range) return range;
112
110
  return getMethodVersionRange(d.features, fn);
113
111
  };
114
- d.updateProfile ??= (p: any) => {
115
- d.profile = p;
116
- };
117
- d.applyProfileUpdate ??= (p: any) => {
118
- d.profile = p;
119
- return p;
112
+ d.updateProtocolV2Features ??= (deviceInfo?: ProtocolV2DeviceInfo) => {
113
+ d.features = buildProtocolV2FeaturesPayload(deviceInfo, d.features);
114
+ return d.features;
120
115
  };
121
116
  return device;
122
117
  }
123
118
 
124
119
  // 直接复用生产映射函数,避免测试内副本与实现漂移(之前的手抄副本已缺失 se boot 字段)
125
120
  function normalizeProtocolV2Features(_descriptor: unknown, deviceInfo?: ProtocolV2DeviceInfo) {
126
- const profile = buildProfileFromProtocolV2({
127
- deviceInfo,
128
- sources: ['deviceInfo'],
129
- scope: 'verify',
130
- });
131
- return buildProtocolV2GetFeaturesPayload(profile, deviceInfo);
121
+ return buildProtocolV2FeaturesPayload(deviceInfo);
132
122
  }
133
123
 
134
124
  async function requestProtocolV2LegacyFeatures({
@@ -152,15 +142,13 @@ describe('Protocol V2 feature adapter', () => {
152
142
  });
153
143
  expect(typedCall).not.toHaveBeenCalled();
154
144
  expect(deviceInfo).toEqual(buildMockProtocolV2DeviceInfo());
155
- // 空 serial_no + fallbackSerialNo:身份字段回退 transport path
156
145
  const profile = buildProfileFromProtocolV2({
157
146
  deviceInfo,
158
- fallbackSerialNo: 'usb-path',
159
147
  });
160
148
  expect(profile).toMatchObject({
161
149
  protocol: 'V2',
162
- deviceId: 'usb-path',
163
- serialNo: 'usb-path',
150
+ deviceId: '',
151
+ serialNo: '',
164
152
  status: { initialized: true },
165
153
  versions: { firmware: '0.1.0' },
166
154
  });
@@ -223,7 +211,7 @@ describe('Protocol V2 feature adapter', () => {
223
211
  },
224
212
  });
225
213
 
226
- expect(features.device_id).toBe('PR2SERIAL');
214
+ expect(features.device_id).toBeNull();
227
215
  expect(features.serial_no).toBe('PR2SERIAL');
228
216
  expect(features.onekey_serial_no).toBe('PR2SERIAL');
229
217
  expect(features.onekey_device_type).toBe('pro2');
@@ -319,6 +307,7 @@ describe('Protocol V2 feature adapter', () => {
319
307
  },
320
308
  });
321
309
  method.device = stubDevice({
310
+ originalDescriptor: { ...descriptor, protocolType: 'V2' },
322
311
  features,
323
312
  commands: { typedCall },
324
313
  updateInternalState,
@@ -341,12 +330,12 @@ describe('Protocol V2 feature adapter', () => {
341
330
  );
342
331
  });
343
332
 
344
- test('prefers DeviceProfile for GetPassphraseState response metadata', async () => {
333
+ test('uses features for GetPassphraseState response metadata', async () => {
345
334
  const features = {
346
- device_id: 'legacy-pro-device-id',
347
- onekey_device_type: 'PRO',
335
+ device_id: null,
336
+ onekey_device_type: 'PRO2',
348
337
  onekey_firmware_version: '4.15.0',
349
- passphrase_protection: false,
338
+ passphrase_protection: true,
350
339
  session_id: 'feature-session',
351
340
  unlocked_attach_pin: true,
352
341
  };
@@ -367,38 +356,13 @@ describe('Protocol V2 feature adapter', () => {
367
356
  },
368
357
  });
369
358
  method.device = stubDevice({
359
+ originalDescriptor: { ...descriptor, protocolType: 'V2' },
370
360
  features,
371
- profile: {
372
- protocol: 'V2',
373
- sources: ['deviceInfo'],
374
- deviceType: 'pro2',
375
- firmwareType: 'universal',
376
- deviceId: 'PR2SERIAL',
377
- serialNo: 'PR2SERIAL',
378
- label: null,
379
- bleName: null,
380
- status: {
381
- mode: 'normal',
382
- initialized: true,
383
- bootloaderMode: false,
384
- unlocked: null,
385
- passphraseProtection: true,
386
- backupRequired: false,
387
- noBackup: null,
388
- language: null,
389
- },
390
- versions: {
391
- firmware: '4.15.0',
392
- bootloader: null,
393
- board: null,
394
- ble: null,
395
- },
396
- },
397
361
  commands: { typedCall },
398
362
  updateInternalState,
399
363
  getFeatures,
400
364
  getCurrentDeviceType: () => 'pro2',
401
- getCurrentDeviceId: () => 'PR2SERIAL',
365
+ getCurrentDeviceId: () => undefined,
402
366
  getCurrentPassphraseProtection: () => true,
403
367
  }) as any;
404
368
 
@@ -411,7 +375,7 @@ describe('Protocol V2 feature adapter', () => {
411
375
  expect(getFeatures).not.toHaveBeenCalled();
412
376
  });
413
377
 
414
- test('uses DeviceProfile identity for Pro2 passphrase session cache', async () => {
378
+ test('stores Pro2 passphrase session cache without synthetic device id', async () => {
415
379
  const device = Device.fromDescriptor({ ...descriptor, protocolType: 'V2' } as any);
416
380
  const typedCall = jest.fn().mockResolvedValue({
417
381
  type: 'PassphraseState',
@@ -552,15 +516,15 @@ describe('Protocol V2 feature adapter', () => {
552
516
  test('marks fallback features as unavailable when DeviceInfo is missing', () => {
553
517
  const features = normalizeProtocolV2Features(descriptor as any);
554
518
 
555
- expect(features.device_id).toBe('');
556
- expect(features.serial_no).toBe('');
557
- expect(features.onekey_serial_no).toBe('');
558
- expect(features.initialized).toBe(false);
559
- expect(features.unlocked).toBe(false);
519
+ expect(features.device_id).toBeNull();
520
+ expect(features.serial_no).toBeUndefined();
521
+ expect(features.onekey_serial_no).toBeUndefined();
522
+ expect(features.initialized).toBeNull();
523
+ expect(features.unlocked).toBeNull();
560
524
  expect(features.firmware_present).toBe(false);
561
525
  });
562
526
 
563
- test('uses Protocol V2 DeviceInfo serial_no as device_id instead of descriptor id', () => {
527
+ test('does not use Protocol V2 serial_no as device_id', () => {
564
528
  const features = normalizeProtocolV2Features(
565
529
  {
566
530
  id: 'PR2000000000',
@@ -574,104 +538,48 @@ describe('Protocol V2 feature adapter', () => {
574
538
  }
575
539
  );
576
540
 
577
- expect(features.device_id).toBe('PR9999999999');
541
+ expect(features.device_id).toBeNull();
578
542
  expect(features.onekey_serial_no).toBe('PR9999999999');
579
543
  expect(features.serial_no).toBe('PR9999999999');
580
544
  });
581
545
 
582
- test('does not expose legacy feature ids when Protocol V2 profile is incomplete', () => {
546
+ test('uses Protocol V2 features directly when profile is absent', () => {
583
547
  const device = Device.fromDescriptor({ ...descriptor, protocolType: 'V2' } as any);
584
548
  (device as any).features = {
585
549
  ...normalizeProtocolV2Features({ ...descriptor, protocolType: 'V2' } as any),
586
- device_id: 'LEGACY-ID',
587
550
  serial_no: 'LEGACY-SERIAL',
588
551
  label: 'Legacy Label',
589
552
  ble_name: 'Legacy BLE',
590
553
  passphrase_protection: true,
591
554
  };
592
- device.updateProfile({
593
- protocol: 'V2',
594
- sources: ['deviceInfo'],
595
- deviceType: 'pro2',
596
- firmwareType: 'universal',
597
- deviceId: '',
598
- serialNo: '',
599
- label: null,
600
- bleName: null,
601
- status: {
602
- mode: 'normal',
603
- initialized: true,
604
- bootloaderMode: false,
605
- unlocked: null,
606
- passphraseProtection: null,
607
- backupRequired: false,
608
- noBackup: null,
609
- language: null,
610
- },
611
- versions: {
612
- firmware: null,
613
- bootloader: null,
614
- board: null,
615
- ble: null,
616
- },
617
- });
618
555
 
619
556
  expect(device.toMessageObject()).toMatchObject({
620
- uuid: '',
557
+ uuid: 'LEGACY-SERIAL',
621
558
  deviceId: null,
622
- bleName: null,
623
- label: 'OneKey Pro2',
559
+ bleName: 'Legacy BLE',
560
+ label: 'Legacy Label',
624
561
  deviceType: 'pro2',
625
562
  });
626
- expect(device.getCurrentPassphraseProtection()).toBeNull();
563
+ expect(device.getCurrentPassphraseProtection()).toBe(true);
627
564
  expect(device.hasUsePassphrase()).toBe(true);
628
- expect(device.isInitialized()).toBe(true);
629
- expect(device.getMode()).toBe('normal');
630
- expect(device.getFirmwareVersion()).toBeNull();
631
565
  });
632
566
 
633
- test('keeps Protocol V2 cached profile as identity source when syncing legacy features', () => {
567
+ test('syncs Protocol V2 cached features without cached profile', () => {
634
568
  const cached = Device.fromDescriptor({ ...descriptor, protocolType: 'V2' } as any);
635
569
  (cached as any).features = {
636
570
  ...normalizeProtocolV2Features({ ...descriptor, protocolType: 'V2' } as any),
637
- device_id: 'LEGACY-ID',
571
+ device_id: null,
638
572
  serial_no: 'LEGACY-SERIAL',
639
573
  onekey_serial_no: 'LEGACY-SERIAL',
640
574
  };
641
- cached.updateProfile({
642
- protocol: 'V2',
643
- sources: ['deviceInfo'],
644
- deviceType: 'pro2',
645
- firmwareType: 'universal',
646
- deviceId: '',
647
- serialNo: '',
648
- label: null,
649
- bleName: null,
650
- status: {
651
- mode: 'normal',
652
- initialized: true,
653
- bootloaderMode: false,
654
- unlocked: null,
655
- passphraseProtection: null,
656
- backupRequired: false,
657
- noBackup: null,
658
- language: null,
659
- },
660
- versions: {
661
- firmware: null,
662
- bootloader: null,
663
- board: null,
664
- ble: null,
665
- },
666
- });
667
575
 
668
576
  const current = Device.fromDescriptor({ ...descriptor, protocolType: 'V2' } as any);
669
577
  current.updateFromCache(cached);
670
578
 
671
579
  expect(current.getCurrentDeviceId()).toBeUndefined();
672
- expect(current.getCurrentSerialNo()).toBe('');
580
+ expect(current.getCurrentSerialNo()).toBe('LEGACY-SERIAL');
673
581
  expect(current.toMessageObject()).toMatchObject({
674
- uuid: '',
582
+ uuid: 'LEGACY-SERIAL',
675
583
  deviceId: null,
676
584
  });
677
585
  });
@@ -695,7 +603,7 @@ describe('Protocol V2 feature adapter', () => {
695
603
  descriptor: descriptor as any,
696
604
  });
697
605
 
698
- expect(features.device_id).toBe('PR2SERIAL');
606
+ expect(features.device_id).toBeNull();
699
607
  expect(features.initialized).toBe(true);
700
608
  expect(features.passphrase_protection).toBe(true);
701
609
  expect(commands.typedCall).toHaveBeenCalledTimes(1);
@@ -776,7 +684,6 @@ describe('Protocol V2 feature adapter', () => {
776
684
  },
777
685
  commands: { typedCall },
778
686
  _updateFeatures: jest.fn(),
779
- updateProfile: jest.fn(),
780
687
  });
781
688
 
782
689
  const result = await method.run();
@@ -801,7 +708,7 @@ describe('Protocol V2 feature adapter', () => {
801
708
  expect(result).toMatchObject({
802
709
  protocol: 'V2',
803
710
  deviceType: 'pro2',
804
- deviceId: 'PR2SERIAL',
711
+ deviceId: '',
805
712
  serialNo: 'PR2SERIAL',
806
713
  label: 'Raw Pro2',
807
714
  bleName: 'Raw Pro2 BLE',
@@ -846,17 +753,16 @@ describe('Protocol V2 feature adapter', () => {
846
753
  onekey_ble_version: '2.3.4',
847
754
  },
848
755
  commands: { typedCall },
849
- updateProfile: jest.fn(),
850
756
  });
851
757
 
852
758
  const result = await method.run();
853
759
 
854
760
  expect(result).toMatchObject({
855
761
  protocol: 'V2',
856
- // 身份字段不得取自 legacy features(LEGACY-ID / LEGACY-SERIAL);
857
- // hw.serial_no 缺失时回退 descriptor.path(早期工程板无 serial 的 mock 身份)。
858
- deviceId: 'usb-path',
859
- serialNo: 'usb-path',
762
+ // 身份字段不得取自 legacy features(LEGACY-ID / LEGACY-SERIAL),
763
+ // hw.serial_no 缺失时也不回退 descriptor.path
764
+ deviceId: '',
765
+ serialNo: '',
860
766
  label: null,
861
767
  bleName: null,
862
768
  status: {
@@ -948,7 +854,6 @@ describe('Protocol V2 feature adapter', () => {
948
854
  originalDescriptor: { ...descriptor, protocolType: 'V2' },
949
855
  features: normalizeProtocolV2Features({ ...descriptor, protocolType: 'V2' } as any),
950
856
  commands: { typedCall },
951
- updateProfile: jest.fn(),
952
857
  });
953
858
 
954
859
  const result = await method.run();
@@ -1134,7 +1039,7 @@ describe('Protocol V2 feature adapter', () => {
1134
1039
  expect(message).not.toHaveProperty('label');
1135
1040
  });
1136
1041
 
1137
- test('refreshes cached Protocol V2 profile with a lightweight status request on later runs', async () => {
1042
+ test('refreshes cached Protocol V2 features with a lightweight status request on later runs', async () => {
1138
1043
  const device = Device.fromDescriptor({
1139
1044
  path: 'usb-path',
1140
1045
  protocolType: 'V2',
@@ -1169,17 +1074,17 @@ describe('Protocol V2 feature adapter', () => {
1169
1074
  await device.initialize();
1170
1075
 
1171
1076
  expect(device.features).toMatchObject({
1172
- device_id: 'PR2SERIAL',
1077
+ device_id: null,
1173
1078
  onekey_firmware_version: '1.2.3',
1174
1079
  passphrase_protection: false,
1175
1080
  label: 'renamed',
1176
1081
  });
1177
- expect(device.profile?.deviceId).toBe('PR2SERIAL');
1082
+ expect((device as any).profile).toBeUndefined();
1178
1083
  // status 字段被第二次刷新更新
1179
- expect(device.profile?.status.passphraseProtection).toBe(false);
1180
- expect(device.profile?.label).toBe('renamed');
1084
+ expect(device.features?.passphrase_protection).toBe(false);
1085
+ expect(device.features?.label).toBe('renamed');
1181
1086
  // 轻量刷新不含 fw target,已有版本信息按字段级合并保留
1182
- expect(device.profile?.versions.firmware).toBe('1.2.3');
1087
+ expect(device.features?.onekey_firmware_version).toBe('1.2.3');
1183
1088
  expect(typedCall).toHaveBeenCalledTimes(2);
1184
1089
  expect(typedCall).toHaveBeenNthCalledWith(
1185
1090
  1,
@@ -1253,7 +1158,7 @@ describe('Protocol V2 feature adapter', () => {
1253
1158
  const features = await device.getFeatures();
1254
1159
 
1255
1160
  expect(device.features).toMatchObject({
1256
- device_id: 'PR2SERIAL',
1161
+ device_id: null,
1257
1162
  onekey_firmware_version: '1.2.4',
1258
1163
  passphrase_protection: true,
1259
1164
  });
@@ -1319,7 +1224,6 @@ describe('Protocol V2 feature adapter', () => {
1319
1224
  });
1320
1225
  method.init();
1321
1226
  (method as any).device = stubDevice({
1322
- profile: device.profile,
1323
1227
  features: device.features,
1324
1228
  commands: { typedCall: jest.fn() },
1325
1229
  });
@@ -1359,13 +1263,13 @@ describe('Protocol V2 feature adapter', () => {
1359
1263
  expect(typedCall).not.toHaveBeenCalledWith('GetFeatures', 'Features', {});
1360
1264
  expect(features).toMatchObject({
1361
1265
  onekey_device_type: 'pro2',
1362
- device_id: 'PR2SERIAL',
1266
+ device_id: null,
1363
1267
  onekey_firmware_version: '1.2.3',
1364
1268
  unlocked: true,
1365
1269
  });
1366
1270
  });
1367
1271
 
1368
- test('syncs Protocol V2 profile passphrase state after unlock response', async () => {
1272
+ test('syncs Protocol V2 features passphrase state after unlock response', async () => {
1369
1273
  const device = Device.fromDescriptor({ ...descriptor, protocolType: 'V2' } as any);
1370
1274
  (device as any).features = normalizeProtocolV2Features(
1371
1275
  { ...descriptor, protocolType: 'V2' } as any,
@@ -1375,32 +1279,6 @@ describe('Protocol V2 feature adapter', () => {
1375
1279
  status: { passphrase_protection: false },
1376
1280
  }
1377
1281
  );
1378
- device.updateProfile({
1379
- protocol: 'V2',
1380
- sources: ['deviceInfo'],
1381
- deviceType: 'pro2',
1382
- firmwareType: 'universal',
1383
- deviceId: 'PR2SERIAL',
1384
- serialNo: 'PR2SERIAL',
1385
- label: null,
1386
- bleName: null,
1387
- status: {
1388
- mode: 'normal',
1389
- initialized: true,
1390
- bootloaderMode: false,
1391
- unlocked: null,
1392
- passphraseProtection: false,
1393
- backupRequired: false,
1394
- noBackup: null,
1395
- language: null,
1396
- },
1397
- versions: {
1398
- firmware: '4.15.0',
1399
- bootloader: null,
1400
- board: null,
1401
- ble: null,
1402
- },
1403
- });
1404
1282
  const typedCall = jest.fn().mockResolvedValue({
1405
1283
  type: 'UnLockDeviceResponse',
1406
1284
  message: {
@@ -1412,7 +1290,7 @@ describe('Protocol V2 feature adapter', () => {
1412
1290
 
1413
1291
  await device.unlockDevice();
1414
1292
 
1415
- expect(device.profile?.status.passphraseProtection).toBe(true);
1293
+ expect((device as any).profile).toBeUndefined();
1416
1294
  expect(device.features?.passphrase_protection).toBe(true);
1417
1295
  });
1418
1296
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FirmwareUpdateV2.d.ts","sourceRoot":"","sources":["../../src/api/FirmwareUpdateV2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,aAAa,EAKnB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW1C,OAAO,KAAK,EAAE,QAAQ,EAAe,MAAM,UAAU,CAAC;AAEtD,KAAK,MAAM,GAAG;IACZ,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EA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uE7C"}
1
+ {"version":3,"file":"FirmwareUpdateV3.d.ts","sourceRoot":"","sources":["../../src/api/FirmwareUpdateV3.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAK/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAKnE,eAAO,MAAM,gCAAgC,UAAU,CAAC;AAaxD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,wBAAwB,CAAC,sBAAsB,CAAC;IAC5F,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAE1C,OAAO,CAAC,gBAAgB,CAAS;IAEjC,IAAI;IAmCE,GAAG;;;;;YAcK,aAAa;IA+C3B,OAAO,CAAC,wBAAwB;YAiBlB,qBAAqB;YAoBrB,uBAAuB;YAiBvB,2BAA2B;YAiD3B,aAAa;IA0M3B,OAAO,CAAC,yBAAyB;IAajC,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,qBAAqB;IAmB7B,OAAO,CAAC,sCAAsC;IAexC,sBAAsB,CAAC,OAAO,EAAE,MAAM;CAuE7C"}
@@ -9,7 +9,7 @@ export default class FirmwareUpdateV4 extends FirmwareUpdateBaseMethod<FirmwareU
9
9
  firmwareVersion: string;
10
10
  }>;
11
11
  private runProtocolV2;
12
- private getProtocolV2LegacyFeatures;
12
+ private getProtocolV2DeviceFeatures;
13
13
  private prepareResourceBinary;
14
14
  private prepareBootloaderBinary;
15
15
  private isProtocolV2BootloaderMode;
@@ -23,7 +23,7 @@ export default class FirmwareUpdateV4 extends FirmwareUpdateBaseMethod<FirmwareU
23
23
  private waitForProtocolV2FirmwareUpdateComplete;
24
24
  private exitProtocolV2BootloaderToNormal;
25
25
  private waitForProtocolV2FinalFeatures;
26
- private waitForProtocolV2ReconnectAndProfile;
26
+ private waitForProtocolV2ReconnectAndFeatures;
27
27
  private reconnectProtocolV2Device;
28
28
  private protocolV2CommonUpdateProcess;
29
29
  private fileWriteWithRetry;
@@ -1 +1 @@
1
- {"version":3,"file":"FirmwareUpdateV4.d.ts","sourceRoot":"","sources":["../../src/api/FirmwareUpdateV4.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAe/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAwD1E,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,wBAAwB,CAAC,sBAAsB,CAAC;IAC5F,IAAI;IAqDJ,OAAO,CAAC,8BAA8B;IAgBhC,GAAG;;;;;YAYK,aAAa;YA6Cb,2BAA2B;YAU3B,qBAAqB;YAkBrB,uBAAuB;IAkBrC,OAAO,CAAC,0BAA0B;IAW5B,6BAA6B;IA4BnC,OAAO,CAAC,6BAA6B;YAiCvB,2BAA2B;YA4C3B,uBAAuB;YAwEvB,mCAAmC;YAYnC,oBAAoB;IAYlC,OAAO,CAAC,4BAA4B;YAqCtB,uCAAuC;YA8DvC,gCAAgC;YAKhC,8BAA8B;YAsB9B,oCAAoC;YAkCpC,yBAAyB;YAoBzB,6BAA6B;YAoD7B,kBAAkB;YA6DlB,0BAA0B;YAS1B,6BAA6B;YAmC7B,gBAAgB;IAe9B,OAAO,CAAC,qBAAqB;CAM9B"}
1
+ {"version":3,"file":"FirmwareUpdateV4.d.ts","sourceRoot":"","sources":["../../src/api/FirmwareUpdateV4.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAc/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAwD1E,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,wBAAwB,CAAC,sBAAsB,CAAC;IAC5F,IAAI;IAqDJ,OAAO,CAAC,8BAA8B;IAgBhC,GAAG;;;;;YAYK,aAAa;YA6Cb,2BAA2B;YAW3B,qBAAqB;YAkBrB,uBAAuB;IAkBrC,OAAO,CAAC,0BAA0B;IAO5B,6BAA6B;IA4BnC,OAAO,CAAC,6BAA6B;YA6BvB,2BAA2B;YA4C3B,uBAAuB;YAwEvB,mCAAmC;YAYnC,oBAAoB;IAYlC,OAAO,CAAC,4BAA4B;YAqCtB,uCAAuC;YA8DvC,gCAAgC;YAKhC,8BAA8B;YAqB9B,qCAAqC;YA6BrC,yBAAyB;YAoBzB,6BAA6B;YAoD7B,kBAAkB;YA6DlB,0BAA0B;YAS1B,6BAA6B;YAmC7B,gBAAgB;IAe9B,OAAO,CAAC,qBAAqB;CAM9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"GetDeviceInfo.d.ts","sourceRoot":"","sources":["../../src/api/GetDeviceInfo.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAGV,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AA0DpC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,mBAAmB,CAAC;IACxE,IAAI;IAeE,GAAG;YAOK,aAAa;YAsBb,aAAa;CA6B5B"}
1
+ {"version":3,"file":"GetDeviceInfo.d.ts","sourceRoot":"","sources":["../../src/api/GetDeviceInfo.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAGV,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AA0DpC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU,CAAC,mBAAmB,CAAC;IACxE,IAAI;IAeE,GAAG;YAOK,aAAa;YAgBb,aAAa;CA4B5B"}
@@ -1,6 +1,6 @@
1
1
  import { BaseMethod } from './BaseMethod';
2
2
  export default class GetFeatures extends BaseMethod {
3
3
  init(): void;
4
- run(): Promise<import("packages/hd-transport/dist").Features | undefined>;
4
+ run(): Promise<import("..").Features | undefined>;
5
5
  }
6
6
  //# sourceMappingURL=GetFeatures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetOnekeyFeatures.d.ts","sourceRoot":"","sources":["../../src/api/GetOnekeyFeatures.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAwE1C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU;IACvD,IAAI;IAUE,GAAG;CA0BV"}
1
+ {"version":3,"file":"GetOnekeyFeatures.d.ts","sourceRoot":"","sources":["../../src/api/GetOnekeyFeatures.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAwE1C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,UAAU;IACvD,IAAI;IAUE,GAAG;CAgBV"}
@@ -2,6 +2,6 @@ import { BaseMethod } from '../BaseMethod';
2
2
  import type { LockDevice } from '@onekeyfe/hd-transport';
3
3
  export default class DeviceUnlock extends BaseMethod<LockDevice> {
4
4
  init(): void;
5
- run(): Promise<import("@onekeyfe/hd-transport").Features>;
5
+ run(): Promise<import("../..").Features | undefined>;
6
6
  }
7
7
  //# sourceMappingURL=DeviceUnlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootloaderHelper.d.ts","sourceRoot":"","sources":["../../../src/api/firmware/bootloaderHelper.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,wBAAgB,uCAAuC,CAAC,EACtD,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,gCAAgC,GACjC,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,aAAa,CAAC;IACxC,gCAAgC,EAAE,aAAa,CAAC;CACjD,WAgBA;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAQ3E"}
1
+ {"version":3,"file":"bootloaderHelper.d.ts","sourceRoot":"","sources":["../../../src/api/firmware/bootloaderHelper.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,wBAAgB,uCAAuC,CAAC,EACtD,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,gCAAgC,GACjC,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,aAAa,CAAC;IACxC,gCAAgC,EAAE,aAAa,CAAC;CACjD,WAgBA;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAS3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"uploadFirmware.d.ts","sourceRoot":"","sources":["../../../src/api/firmware/uploadFirmware.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,6BAA6B,CAAC;AACnF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAA+B,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAiElD,eAAO,MAAM,cAAc,eAAsB,MAAM,kBAKtD,CAAC;AAEF,eAAO,MAAM,cAAc,eACb,UAAU,GAAG,KAAK,aACnB,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM;;wBAOO,OAAO,qBAkJ7B,CAAC;AA+NF,eAAO,MAAM,cAAc,cACd,SAAS,YACV,MAAM,QACV,WAAW,mBACA,MAAM,IAAI,qBAc5B,CAAC;AAEF,eAAO,MAAM,eAAe,cACf,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM,UACN,WAAW,qBAwBpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM,UACN,WAAW,qBAUpB,CAAC"}
1
+ {"version":3,"file":"uploadFirmware.d.ts","sourceRoot":"","sources":["../../../src/api/firmware/uploadFirmware.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,6BAA6B,CAAC;AACnF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAA+B,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAiElD,eAAO,MAAM,cAAc,eAAsB,MAAM,kBAKtD,CAAC;AAEF,eAAO,MAAM,cAAc,eACb,UAAU,GAAG,KAAK,aACnB,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM;;wBAOO,OAAO,qBAoJ7B,CAAC;AA+NF,eAAO,MAAM,cAAc,cACd,SAAS,YACV,MAAM,QACV,WAAW,mBACA,MAAM,IAAI,qBAc5B,CAAC;AAEF,eAAO,MAAM,eAAe,cACf,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM,UACN,WAAW,qBAwBpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,SAAS,yBACG,WAAW,KAAK,IAAI,UACnC,MAAM,UACN,WAAW,qBAUpB,CAAC"}
@@ -5,7 +5,6 @@ export default class TronSignMessage extends BaseMethod<HardwareTronSignMessage>
5
5
  getVersionRange(): {
6
6
  pro2: {
7
7
  min: string;
8
- unsupported: boolean;
9
8
  };
10
9
  model_mini: {
11
10
  min: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TronSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignMessage.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,KAAK,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEzF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAC9E,IAAI;IAgCJ,eAAe;;;;;;;;;IAYf,wBAAwB;;;;;;;;;;;;;;IAiBlB,GAAG;CAmBV"}
1
+ {"version":3,"file":"TronSignMessage.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignMessage.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,KAAK,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEzF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAC9E,IAAI;IAgCJ,eAAe;;;;;;;;IAWf,wBAAwB;;;;;;;;;;;;;;IAiBlB,GAAG;CAmBV"}
@@ -8,7 +8,6 @@ export default class TronSignTransaction extends BaseMethod<TronSignTx> {
8
8
  getVersionRange(): {
9
9
  pro2: {
10
10
  min: string;
11
- unsupported: boolean;
12
11
  };
13
12
  model_mini: {
14
13
  min: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TronSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,UAAU,CAAC,UAAU,CAAC;IACrE,OAAO,CAAC,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,UAAU;IA6G7D,IAAI;IA0BJ,eAAe;;;;;;;;;IAYf,0BAA0B,IAAI,mBAAmB;IAcjD,uCAAuC;IASvC,6CAA6C,IAAI,mBAAmB;IAcpE,sCAAsC;IAWhC,GAAG;CAUV"}
1
+ {"version":3,"file":"TronSignTransaction.d.ts","sourceRoot":"","sources":["../../../src/api/tron/TronSignTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,UAAU,CAAC,UAAU,CAAC;IACrE,OAAO,CAAC,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,UAAU;IA6G7D,IAAI;IA0BJ,eAAe;;;;;;;;IAWf,0BAA0B,IAAI,mBAAmB;IAcjD,uCAAuC;IASvC,6CAA6C,IAAI,mBAAmB;IAcpE,sCAAsC;IAWhC,GAAG;CAUV"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":";AACA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAoClC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAkB1C,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAIxD,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAmD,MAAM,WAA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