Commit Graph

  • 76d45f20db Replace encrypting metadata with CBC to AES. Provide a new API to decrypt the device metadata inside a public credential Xin He 2022-08-11 06:22:10 -07:00
  • 30a82350cd Update GitHub Actions Nick Bourdakos 2022-08-10 20:30:20 -07:00
  • c48e27d754 Add GitHub Action for testing Linux build. Nick Bourdakos 2022-08-10 15:16:50 -07:00
  • 07119e80de Merge CertificateManager and CredentialManager Janusz Sobczak 2022-08-10 11:44:54 -07:00
  • 63b4f0760c Start initial Swift SDK by creating a lightweight Objective-C wrapper Nick Bourdakos 2022-08-10 07:42:15 -07:00
  • 55f20775d2 Fix internal flow Suet-Fei Li 2022-08-09 12:00:16 -07:00
  • 643c0efdde [Nearby Connections] Add methods to shutdown executors in bwu_manager Pu Shi 2022-08-09 11:55:43 -07:00
  • 2d979fd86c Create a Device Object for Hotspot Client to avoid being disconnected by Hotspot. hai007 2022-08-09 10:17:10 -07:00
  • 0a8f1f1c39 Implement Credentials Generation APIs hai007 2022-08-09 09:54:54 -07:00
  • c495cf830f Internal change Nick Bourdakos 2022-08-08 19:36:12 -07:00
  • 6e6ae3ebd7 Decode the action in Base NP advertisements back into a list of Data Elements Janusz Sobczak 2022-08-08 18:08:03 -07:00
  • 076b00ed61 Internal change Nick Bourdakos 2022-08-08 15:20:51 -07:00
  • 4c70daf66f Fix github build bourdakos 2022-08-05 18:43:00 -07:00
  • 9b12bdde8d Fixed the crash in connection close event guogang 2022-08-05 15:11:29 -07:00
  • 5df9ef5eca Removed API mutex from platform implementation. guogang 2022-08-05 13:29:39 -07:00
  • 4bf31d18da Internal Flow change suetfei 2022-08-05 12:28:10 -07:00
  • 377dc47c9f Temporarily ignore crypto to fix GitHub build bourdakos 2022-08-04 21:11:02 -07:00
  • 5b3d443815 Remove the call to Toggle from the BluetoothRadio destructor. https://buganizer.corp.google.com/issues/237492358 jfcarroll 2022-08-04 18:20:46 -07:00
  • d09223d435 Prevent escaping the users Downloads folder by removing all occurances of /.. from the path passed in. jfcarroll 2022-08-04 18:11:20 -07:00
  • 21c2c7c1ea Port crypto from location/nearby/cpp/sharing/implementation/internal/crypto to third_party/nearby/internal/crypto. suetfei 2022-08-04 16:08:07 -07:00
  • ce6c5893d7 Fix Action Data Elements construction. jsobczak 2022-08-04 11:38:09 -07:00
  • 4d6bc3d62f Fix redundant statement in scan_request comparator hai007 2022-08-04 10:03:42 -07:00
  • 319e5abea4 Add advertisement decoder jsobczak 2022-08-03 14:16:33 -07:00
  • ecf51ff13d [Nearby][Presence] Add a builder for ScanRequest hai007 2022-08-03 13:50:42 -07:00
  • a732616a97 Change private/public credentials from struct to proto. hai007 2022-08-01 19:14:53 -07:00
  • 778c77eacd Persist the original radio name, and restore it on app start if the radio name is our radio name. jfcarroll 2022-07-29 13:41:44 -07:00
  • 0d4964da7b Splitting SaveCredentials into two separate virtual functions: SavePrivateCredentials() and SavePublicCredentials(). hai007 2022-07-29 10:32:05 -07:00
  • a37a7b7a83 [Nearby][Presence] Create unit tests for credential hai007 2022-07-28 12:35:02 -07:00
  • ef014d47b8 Disable encryption for HOTSPOT hai007 2022-07-28 00:49:53 -07:00
  • 974ff693b1 Check device type in java code instead of ADP profile because ADP only apply on launched device, it will make our testing failed on not launched Pixel, see b/238835231#comment26 hai007 2022-07-27 23:58:33 -07:00
  • d5f86a04d6 Replace to use IdentityType where TrustType were used. hais 2022-07-27 17:05:17 -07:00
  • c7c698412c Presence ScanRequest type def hais 2022-07-27 16:15:45 -07:00
  • a56d36f3a5 Move constants to DataElement. jsobczak 2022-07-27 13:53:12 -07:00
  • be140a71d5 Make CredentialManager abstract jsobczak 2022-07-27 12:32:38 -07:00
  • c40a669755 Internal Change hai007 2022-07-27 08:55:38 -07:00
  • d4b40ed9a7 Change device metadata from struct to proto. hai007 2022-07-27 07:43:21 -07:00
  • 3ed4bfcfe1 Set non_prod compatibility jsobczak 2022-07-22 17:01:11 -07:00
  • d2c401112c Modify Credential data structure. hai007 2022-07-20 16:11:11 -07:00
  • eaac8d045d Expose nearby/internal/platform/logging to nearby/presence hai007 2022-07-19 06:12:45 -07:00
  • 6223caee42 Delete unused logging2.h. hais 2022-07-18 20:03:16 -07:00
  • 9dec6143d1 Move credential.h to presence dir hais 2022-07-18 20:01:23 -07:00
  • d41cd674c8 Add onSessionComplete method in ClientProxy to log session hai007 2022-07-18 19:15:09 -07:00
  • 7153f5e482 Add advertisement factory jsobczak 2022-07-18 17:29:31 -07:00
  • 6af55cf1bb Expose internal/platform/implementation:types to nearby/presence hai007 2022-07-15 15:33:52 -07:00
  • bbf6de9d12 Remove a check from a Windows test. hai007 2022-07-15 14:53:04 -07:00
  • ddcef2c67a Expose Encryption to nearby/presence hai007 2022-07-15 14:35:49 -07:00
  • 859a0ecb27 Add USB enum xlythe 2022-07-15 01:47:52 -07:00
  • 591ef0922e Caught all exceptions in BLE scanning and advertising guogang 2022-07-13 11:13:51 -07:00
  • bff4051015 Fixed the deadlock in BluetoothServerSocket guogang 2022-07-13 08:39:45 -07:00
  • e4a0f280e2 BWU Hotspot Responder(client) need to disconnect Hotspot when the session is done hai007 2022-07-12 16:21:47 -07:00
  • 61c9876ce9 Add Presence Identity types jsobczak 2022-07-12 15:45:02 -07:00
  • b92881a460 Define Data Elements and ActionFactory. jsobczak 2022-07-12 14:46:29 -07:00
  • 73264d8feb Change package default visibility. hai007 2022-07-11 23:25:32 -07:00
  • b6f817274e Initial header files showing class dependency and ownership. hais 2022-07-11 14:24:06 -07:00
  • 1a9e4a2aff Added test for BluetoothClassicServerSocket. jfcarroll 2022-07-08 09:44:55 -07:00
  • 0a7f68f382 Cap the output stream package size to kMaxAllowedReadBytes, which is 1048576 hai007 2022-07-07 15:58:39 -07:00
  • c27ac64bb9 Rename core_adapter to nearby_connections and version the dlls hai007 2022-07-07 10:19:05 -07:00
  • 12dcd319e0 [BLE Refactor] Implement iOS BLE outgoing(request) connection. edwinwu 2022-07-06 17:11:37 -07:00
  • dcbcbb53cc Avoided to set Bluetooth radio status when new state is same as old guogang 2022-07-01 14:35:26 -07:00
  • 7e081c663a Add dump function to nearby connections. hai007 2022-06-29 14:31:22 -07:00
  • ff9a986595 Reduce the frequency of redundant Bluetooth Classic operations aaronyujiaze 2022-06-29 14:03:33 -07:00
  • 9edad3a803 Update NearbyConnections library to be compatible with Swift bourdakos 2022-06-29 10:54:50 -07:00
  • abc0ae34df Ensure bluetooth adapter is enabled before BLE operations aaronyujiaze 2022-06-29 10:45:14 -07:00
  • bd9d01ec29 Fix for outgoing file names being truncated, and renaming input files should not occur, only output files. jfcarroll 2022-06-28 17:39:36 -07:00
  • 407222b104 Fix a BWU revert logic error for BWU initiator hai007 2022-06-28 12:56:34 -07:00
  • 698b04184a Fixed a few issues found during test guogang 2022-06-27 17:27:58 -07:00
  • 87c76ea235 The file was overwritten when transferring a file that already existed in the downloads folder. With this change we now add " (x)", where x is an incrementing number, starting at 1, using the next non-existing number, to the file name, just before the first dot, or at the end if no dot. This has been applied to the GetDownloadPath method in the platform api. jfcarroll 2022-06-27 11:42:04 -07:00
  • 9ce81d8534 [BLE Refactor] Implement iOS BLE incoming connection. edwinwu 2022-06-24 15:56:17 -07:00
  • 75aa59d57e Fix BluetoothAdapter bug to enable Bluetooth Classic Advertising aaronyujiaze 2022-06-22 14:26:21 -07:00
  • 7046d24dfe Turn on auto_upgrade_bandwidth as default. hai007 2022-06-22 12:56:05 -07:00
  • cfa9e555c7 Add BroadcastRequest jsobczak 2022-06-22 10:39:25 -07:00
  • a0fd221155 Make PayloadProgressInfoW align with java code definition. jfcarroll 2022-06-21 13:57:02 -07:00
  • 064a482e7d Add unit tests for BluetoothAdapter aaronyujiaze 2022-06-17 12:34:18 -07:00
  • ecbf356fbd [BLE Refactor] Branches from googlemac/iPhone/Shared/Nearby/Sockets and Ble/GNCMBleConnection.* to re-construct ios connection socket. edwinwu 2022-06-17 01:10:43 -07:00
  • 6bd1a78eeb Add size limit check for Bluetooth Classic SetName aaronyujiaze 2022-06-16 12:32:45 -07:00
  • 320d4437ca This should fix mismatched payload id's on the translation from incoming payload to payloadw. jfcarroll 2022-06-16 08:07:18 -07:00
  • 730b5498e9 1. Supports T+ Enterprise User Restrictions 2. Refactor for Guest and Enterprise users 3. Add WifiHotspotV2Test 4. Disconnect outgoing STA connection request from the same service when request to start hotspot. e.g. client A request a STA connection and start hotspot at the same time, cancel the STA connection request to start the hotspot. hai007 2022-06-15 22:58:03 -07:00
  • ce80804639 Modify the comment of MediumMetaData.ap_frequency johnsonlu 2022-06-15 22:17:44 -07:00
  • 9a1ada9a56 [BLE Refactor] Implement iOS Scanning modules. edwinwu 2022-06-15 19:22:29 -07:00
  • cf85146096 Add the comprehensive set of BluetoothError Enums aaronyujiaze 2022-06-15 15:52:35 -07:00
  • c8e76d2e2f Add modulefood device category into NS reports hai007 2022-06-15 13:17:08 -07:00
  • 4270ba7936 [Sharing Analytics] Tag Nearby Share logging events with copy/paste use case tag. hai007 2022-06-14 20:58:13 -07:00
  • abb6efd006 This fixes the translated PayloadW having a different payload id than the incoming Payload. jfcarroll 2022-06-14 20:39:04 -07:00
  • 160a224510 [BLE Refactor] Implement iOS Advertising modules. edwinwu 2022-06-14 18:31:45 -07:00
  • a9d7061794 Group Connection Info into structure hai007 2022-06-13 11:47:51 -07:00
  • 2d4cc75dfa Fix miscellaneous typos in the comments or logging. hai007 2022-06-13 10:52:50 -07:00
  • a852817f0e Fix the function comments of StopAllEndpoints. hai007 2022-06-13 10:51:49 -07:00
  • 67b318fa6f [BLE Refactor] Refactor GATTClient implementation. edwinwu 2022-06-10 20:18:49 -07:00
  • c96875f310 Fixes A go/asan error (heap_use_after_free) found while running //third_party/nearby/connections/implementation:core_internal_test edwinwu 2022-06-10 19:58:10 -07:00
  • e184bba0bc BEGIN_PUBLIC Fixes A go/mobile_tsan error (data_race) found while running //third_party/nearby/internal/platform/implementation/ios/Tests:PlatformTests END_PUBLIC edwinwu 2022-06-10 11:51:19 -07:00
  • 88ee3ba338 This needs to be declared in order to build on windows (and since it's declared that way in the header) jfcarroll 2022-06-09 21:07:35 -07:00
  • b195c46286 Fix payload id signed integer bug aaronyujiaze 2022-06-09 13:35:33 -07:00
  • 62fc7e1e24 [Connections] Fix typo in log xlythe 2022-06-09 12:58:40 -07:00
  • 89462d1d45 [NC] Fix nullptr crashes in BasePcpHandler crisrael 2022-06-09 11:07:10 -07:00
  • 1aeb1093a9 Delete temporary Hotspot profiles after the session is done. Reduce max rescan from 3 to 2 times. Experiment shows if second time scan fail, it always fail to find the Hotspot. hai007 2022-06-08 11:37:28 -07:00
  • 9069451c08 [BLE Refactor] Add Base64 encoder to BleAdvertisementHeader edwinwu 2022-06-07 17:57:21 -07:00
  • 199bbc9cd1 Add null checkers to Bluetooth Classic medium ConnectToService aaronyujiaze 2022-06-07 15:42:32 -07:00
  • ccca7bef6f Mute logging of BLE advertisement discovery for release builds aaronyujiaze 2022-06-07 12:04:35 -07:00
  • 7d3b6d7d82 Disable BWU from WLAN to Hotspot for Discoverer side Windows doesn't support BWU from WIFI_LAN to WIFI_HOTSPOT. Because when the discoverer side try to switch from current AP to the Hotspot, it loss physical connection. When here's no physical connection, BWU protocol frame exchange won't be finished successfully, then BWU will fail eventually. In the current code implementation, if Windows Nearby act as Advertiser, it will not do BWU from WLAN to Hotspot. This CL adds similar logic when Windows Nearby act as discoverer. hai007 2022-06-06 11:48:00 -07:00
  • 5566832a00 Enhance stability of bluetooth classic medium aaronyujiaze 2022-06-06 11:07:51 -07:00