Commit Graph
2404 Commits
Author SHA1 Message Date
Hai Shang c2495b275a Internal cleanup
PiperOrigin-RevId: 613362254
2024-03-06 15:35:09 -08:00
hai007 965677199e Internal change
PiperOrigin-RevId: 613336063
2024-03-06 14:14:42 -08:00
hai007 6cf2fe5c1b Define protos for NearbyConnections Westworld logging
PiperOrigin-RevId: 613289168
2024-03-06 11:43:12 -08:00
Juliet Levesque ecb9de0cbc [Nearby Presence] Add authentication status to InitialConnectionInfo
Adds authentication status to `InitialConnectionInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This is used to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 613278476
2024-03-06 11:10:38 -08:00
hai007 cf2a1eb0b1 Internal change
PiperOrigin-RevId: 613133183
2024-03-06 10:21:45 -08:00
Francis Tsui 5fd4fc8ffa [Sharing][Analytics] Add VendorId to EventMetadata.
PiperOrigin-RevId: 612980580
2024-03-05 15:01:16 -08:00
hai007 e3d52a902d [Sharing][Analytics] Add VendorId to EventMetadata.
PiperOrigin-RevId: 612689201
2024-03-04 21:03:15 -08:00
Copybara-Service ee404cb766 Merge pull request #2307 from ChenWangG:patch-1
PiperOrigin-RevId: 612604370
2024-03-04 15:42:43 -08:00
ChenWangG 45662fce62 Create README 2024-02-29 16:30:35 -08:00
Nick Bourdakos 32fc3f7c10 Fix spelling of Wi-Fi
PiperOrigin-RevId: 611532710
2024-02-29 11:11:55 -08:00
Juliet Levesque f235957345 [Nearby Presence] Authenticate the connection using the DeviceProvider
Once the encryption protocol has been completed successfully, authentication the connection using the registered DeviceProvider from the ClientProxy. For the Nearby Presence MVP, this will be the PresenceDeviceProvider and will only support outgoing connections, which is why the responder role is not used. The result (success or failure) is passed back to callers via the EndpointManager. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 611255632
2024-02-28 15:51:37 -08:00
Juliet Levesque 5f616fa592 [Nearby Presence] Pass remote device and EndpointManager throughout connection flow
In order to construct the `ConnectionsAuthenticationTransport` and authentication the connection with the `DeviceProvider`, the remote NearbyDevice and EndpointManager used in RequestConnectionV3() must be passed through the encryption protocol as parameters. This CL accomplishes this; it passes the remote NearbyDevice and EndpointManager through a successful encryption flow by introducting new functions to support this V3 protocol. They will be used in a follow up CL to authenticate the connection. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 610810602
2024-02-27 11:05:52 -08:00
Suet-Fei Li fa2bcbe579 Internal Refactor.
PiperOrigin-RevId: 610806721
2024-02-27 10:56:35 -08:00
hai007 924247aa8f If the sender BT or Wifi connect failed, we should log the correct result code to clearcut
PiperOrigin-RevId: 610709164
2024-02-27 04:28:13 -08:00
Francis Tsui 87e9c806b2 Split transfer_metadata into separate build target.
PiperOrigin-RevId: 610597218
2024-02-26 19:14:59 -08:00
Suet-Fei Li 84062c8a3b Internal Refactor.
PiperOrigin-RevId: 609768025
2024-02-23 10:29:22 -08:00
Francis Tsui 2282fcb503 extend TextAttachment to allow setting text body.
PiperOrigin-RevId: 609547008
2024-02-22 17:04:26 -08:00
Francis Tsui d15f533721 Cleanup BUILD dependencies.
PiperOrigin-RevId: 609511614
2024-02-22 15:05:13 -08:00
Francis Tsui 3dcca3abfc Cleanup BUILD dependencies.
PiperOrigin-RevId: 609501622
2024-02-22 14:35:56 -08:00
Ryan Hansberry 8561d03a21 [Nearby] CredentialManager: Do not block on main thread.
PiperOrigin-RevId: 608743138
2024-02-20 14:37:12 -08:00
Daniel Classon f09368247b [Nearby Connections] Use async StartScanning when flag enabled
Creates the feature flag `enable_ble_v2_async_scanning_advertising` which
enables/disables the use of the async StartScanning, StopScanning,
StartAdvertising, StopAdvertising, etc methods over the soon-to-be deprecated
synchronous versions of those methods. Opted for feature flag over NearbyFlag,
as ChromeOS is the only current consumer and doesn't use Mendel.

Also sets the feature flag to enabled in the ServiceControllerRouter, which
is where ChromeOS sets NC feature flags at startup.

This CL also fully links up the asynchronous Scanning methods. Advertising
will be addressed in a follow up CL.

PiperOrigin-RevId: 608158273
2024-02-18 12:59:02 -08:00
Crisrael Lucero 88064b1543 Remove usage of absl/log/check.h in PresenceDeviceProvider
PiperOrigin-RevId: 607460011
2024-02-15 14:40:02 -08:00
Juliet Levesque e7a433f41e [Nearby Presence] Add authentication status to ConnectionResponseInfo
Adds authentication status to `ConnectionResponseInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 607457933
2024-02-15 14:34:37 -08:00
Juliet Levesque d497c2e97c [Nearby Presence] Add authentication status to PendingConnectionInfo
Adds authentication status to `PendingConnectionInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 607402836
2024-02-15 11:39:55 -08:00
Anay Wadhera 506aa270c5 Merge pull request #2281 from rzhw/update_depot_tools
nearby: Upgrade depot_tools
2024-02-15 13:00:33 -05:00
hai007 cb5016c3f3 1.Define OperationResult message, which contains result code category and resulc code
2.Add OperationResult message to ConnectionAttempt, EstablishedConnection and BandwidthUpgradeAttempt

PiperOrigin-RevId: 607231266
2024-02-14 23:57:20 -08:00
Juliet Levesque fb1f01717f [Nearby Presence] Add authentication status to ConnectionInfo
Adds authentication status to `ConnectionInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().

PiperOrigin-RevId: 606789503
2024-02-13 16:49:49 -08:00
Juliet Levesque caf34a717f [Nearby Presence] Read response data from remote device
see go/cros-nearby-presence-np-nc-authentication for details.

PiperOrigin-RevId: 606772097
2024-02-13 15:50:07 -08:00
Hai Shang f8c907a120 internal cleanup
PiperOrigin-RevId: 605780857
2024-02-09 18:13:40 -08:00
Guogang Li c477809ed0 Clean up unused files
PiperOrigin-RevId: 605360366
2024-02-08 10:36:20 -08:00
Guogang Li 7b8436c289 Update C wrapper to support multiple instances
PiperOrigin-RevId: 605002988
2024-02-07 09:10:55 -08:00
Crisrael Lucero 6ad4bf75e2 [Nearby Presence] Use absl/variant instead of std in PresenceDeviceProvider
PiperOrigin-RevId: 604464809
2024-02-05 16:19:52 -08:00
Hai Shang 17a71c8b7e Internal cleanup
PiperOrigin-RevId: 604442644
2024-02-05 15:00:32 -08:00
Juliet Levesque e706703def [Nearby Presence] Optimize PresenceFrame proto for lite runtime
Adds a line to optimize the PresenceFrame proto for lite runtime, which is necessary for compilation on ChromeOS

PiperOrigin-RevId: 604404542
2024-02-05 12:48:53 -08:00
Hai Shang 9896e327c0 internal clean
PiperOrigin-RevId: 604358478
2024-02-05 10:23:25 -08:00
Richard Wang 2ab7cce717 nearby: Upgrade depot_tools 2024-02-05 16:22:36 +09:00
hai007 0efbd2a29d Bump test RSA key sizes to a more realistic size
Looks like this code was derived from Chromium, which bumped this
in https://chromium-review.googlesource.com/c/chromium/src/+/4529975

See that CL for details.

PiperOrigin-RevId: 603779574
2024-02-02 17:25:52 -08:00
Juliet Levesque 58452f4049 [Nearby Presence] Construct Presence Frame and write to remote device
Constructs a Presence frame using BuildSignedMessageAsInitiator() and write to the AuthenticationTransport for authentication. In follow up CL's, authentication protocol will read the message from the remote device and verify it - see go/cros-nearby-presence-np-nc-authentication for details.

PiperOrigin-RevId: 603776791
2024-02-02 17:24:47 -08:00
Juliet Levesque 6b2f7fa94e [Nearby Presence] Fetch and select correct local credentials
Fetch the local credentials and select the correct local credential by verifying the validity of the time. This CL will be followed by
using the selected local credential for authentication. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 603772266
2024-02-02 17:23:41 -08:00
Francis Tsui 633b95b1a0 Build nearby_share_service.
PiperOrigin-RevId: 603709616
2024-02-02 17:22:35 -08:00
Francis Tsui c2d87d28ac Add flags to github.
PiperOrigin-RevId: 603584214
2024-02-02 17:21:27 -08:00
Francis Tsui e4fea7a594 Change FakePublicCertificateDb to be more compatible with Chrome unittests.
PiperOrigin-RevId: 603583582
2024-02-02 17:20:12 -08:00
hai007 e1dd4fd535 Import of rpc://team/beto-rust-devs/beto-rust
PiperOrigin-RevId: 603429939
2024-02-03 01:13:27 +00:00
hai007 730df15694 Internal change
PiperOrigin-RevId: 603302496
2024-02-02 13:30:13 -08:00
Guogang Li 929a41b7f5 Fixed HC broken on MacOS
PiperOrigin-RevId: 603105834
2024-01-31 11:17:25 -08:00
Anay Wadhera 80c0d0916e Introduce basic handling for on lost advertisements.
PiperOrigin-RevId: 602910198
2024-01-30 19:33:35 -08:00
Guogang Li 9be93ae23d Optimized the API implementation of adapter
PiperOrigin-RevId: 602404458
2024-01-29 09:05:41 -08:00
Francis Tsui 1b91588bd3 Use filesystem::path internal UTF8 conversion.
PiperOrigin-RevId: 601880589
2024-01-26 15:19:48 -08:00
Francis Tsui 05914245e8 Changes to make build work in Chromium.
PiperOrigin-RevId: 601861725
2024-01-26 14:05:09 -08:00
Juliet Levesque aaa1bea130 [Nearby Presence] Expose API's to fetch local credentials
Expose APIs to fetch local credentials from the CredentialManager, which will be used to fetch a local credential to be used for authentication in follow up CL's. See go/cros-nearby-presence-np-nc-authentication  for details.

PiperOrigin-RevId: 601781066
2024-01-26 09:04:16 -08:00