Commit Graph
3997 Commits
Author SHA1 Message Date
kidfromjupiter f14d0ee04d Implemented bluetooth socket stubs 2026-01-12 10:45:09 +00:00
kidfromjupiter 329f2ce2c9 Added GattProfile. Disabled fast adverts due to linux not supporting random mac addresses. 2026-01-12 08:17:05 +00:00
Anay Wadhera a64526b161 Merge pull request #4074 from ftsui/ukey
Update ukey2 submodule to latest.
2026-01-10 12:21:36 -05:00
kidfromjupiter 3d97a540b5 Enabled BLE advertisements with extended + GATT server. 2026-01-10 11:23:19 +00:00
kidfromjupiter 52dfdd6a56 Enabled BLE advertisements with extended + GATT server. 2026-01-10 06:52:01 +00:00
Francis Tsui b08c75b709 Update ukey2 submodule to latest. 2026-01-09 16:25:42 -08:00
Francis Tsui 2a315037a7 More ukey submodule fix.
PiperOrigin-RevId: 854364736
2026-01-09 15:30:40 -08:00
Francis Tsui ccc708c335 Fix ukey submodule build.
PiperOrigin-RevId: 854353185
2026-01-09 14:56:10 -08:00
Francis Tsui fd8081a139 Fix protoc file generation command.
PiperOrigin-RevId: 854341687
2026-01-09 14:20:44 -08:00
Francis Tsui c2c54a3ca0 Remove deprecated OutputStream::Write method.
PiperOrigin-RevId: 854235255
2026-01-09 10:04:02 -08:00
Francis Tsui fbf66ad7e3 Switch OutputStream::Write to use string_view.
PiperOrigin-RevId: 854225267
2026-01-09 09:37:00 -08:00
Francis Tsui 3d92559201 Update protoc import path in prepartion for updating ukey2 submodule.
PiperOrigin-RevId: 854022686
2026-01-08 22:04:52 -08:00
hai007 be3db49015 Wi-Fi Direct Service Implementation(9.2)
PiperOrigin-RevId: 853845305
2026-01-08 12:36:20 -08:00
Francis Tsui d5c1a540b7 Internal changes
PiperOrigin-RevId: 853414816
2026-01-07 14:32:42 -08:00
Francis Tsui ad6267d236 Remove unused code
PiperOrigin-RevId: 853316103
2026-01-07 10:20:46 -08:00
Francis Tsui bf6ed702db Add reg key to disable mDNS advertising.
PiperOrigin-RevId: 852976950
2026-01-06 16:18:04 -08:00
Francis Tsui d302e8459d Move registry accessor code to nearby platform.
PiperOrigin-RevId: 852969284
2026-01-06 15:58:19 -08:00
Francis Tsui 74c921f911 Cleanup compile options.
PiperOrigin-RevId: 852872897
2026-01-06 11:47:37 -08:00
Francis Tsui 1b557236f7 Log interface count and IPv6 only interface count during wifi upgrade.
PiperOrigin-RevId: 852845375
2026-01-06 10:45:13 -08:00
kidfromjupiter 2d98bab2f1 updated build 2026-01-06 05:25:00 +00:00
kidfromjupiter 0d7922dc89 Enabled wifi lan medium. fixed bug with returned service id in avahi onItemNew 2026-01-06 05:24:48 +00:00
Francis Tsui 6cc697cc56 Generate proto bindings during build for macOS.
PiperOrigin-RevId: 852489495
2026-01-05 15:59:43 -08:00
kidfromjupiter 0432c47542 Added wifi hotspot medium. Fixed mutex deadlock when bandwidth upgrade with bt classic socket 2026-01-05 14:17:26 +00:00
kidfromjupiter e2256ca83d endpoints advertised on bluetooth are immediately detected now. bluetooth socket underlying fd type auto detection added. Fixed segfault with download paths 2026-01-04 17:14:27 +00:00
kidfromjupiter 08e8b50aee fixed crash on bt socket close 2026-01-03 16:45:45 +00:00
kidfromjupiter 43c6c38a55 Fixed race conditions with simultaneous connections 2026-01-03 14:40:02 +00:00
kidfromjupiter ac5a22eb55 Fixed race conditions with simultaneous connections 2026-01-03 14:39:50 +00:00
kidfromjupiter dd21d80dc8 bugfixes and fixes to race conditions. bluetooth advertising only / discovery only works now. linux -> android conn. initiation works. android -> linux doesnt work. android doesn't seem to recognise linux. linux <-> linux works. but each devices have to be in discover/advert modes. can't be both 2026-01-02 12:29:54 +00:00
Francis Tsui 877fcf8cd8 Fix build breakage.
PiperOrigin-RevId: 850761248
2025-12-31 09:03:32 -08:00
Francis Tsui 931624a621 Prevent logging connection failure when mDNS client connects to test the connection.
PiperOrigin-RevId: 850545490
2025-12-30 16:54:14 -08:00
hai007 c86f9f573f Automated Code Change
PiperOrigin-RevId: 850400587
2025-12-30 06:58:58 -08:00
Francis Tsui ffa760663b Change NetworkInfo to use SocketAddress.
PiperOrigin-RevId: 850164819
2025-12-29 14:44:35 -08:00
Francis Tsui 067b55ea85 internal changes
PiperOrigin-RevId: 850096831
2025-12-29 10:27:36 -08:00
kidfromjupiter 8f6086345d updated device_info to latest API 2025-12-29 16:35:50 +00:00
kidfromjupiter 6c41d26a86 Doesn't build yet. But did more work to align the older fork with newer APIs. 2025-12-29 13:35:08 +00:00
kidfromjupiter 5f93c46954 ported over BUILD file 2025-12-29 04:41:32 +00:00
kidfromjupiter 1f3da14906 fixed logging bugs 2025-12-29 04:39:40 +00:00
kidfromjupiter 1bebcdd49a merged abandoned linux port 2025-12-29 04:27:15 +00:00
kidfromjupiter 578f253121 Remove existing linux implementation folder before importing subtree 2025-12-28 16:52:21 +00:00
kidfromjupiter 12bc97ae1f added generated files for bluz device and bluez itself. created system_clock and crypto files. 2025-12-28 13:43:42 +00:00
kidfromjupiter 284a78af0f added tests for bluetooth adapter and multithread executor 2025-12-27 05:29:14 +00:00
Francis Tsui da41bcd194 Fix tests to actually check session durations and delays.
PiperOrigin-RevId: 849273112
2025-12-26 14:45:48 -08:00
kidfromjupiter 88f8133d90 missed a few files 2025-12-26 15:50:41 +00:00
kidfromjupiter 333688074a Added minimal implementation of platform.cc using shared posix implementations. 2025-12-26 15:49:38 +00:00
Francis Tsui 34e9326311 Remove unused code.
PiperOrigin-RevId: 847875947
2025-12-22 14:02:47 -08:00
hai007 7290b70fc1 Automated Code Change
PiperOrigin-RevId: 847148315
2025-12-20 10:18:26 -08:00
hai007 b1e1d7970b Wi-Fi Direct Service Implementation(9.1)
PiperOrigin-RevId: 846899549
2025-12-19 16:09:22 -08:00
hai007 46ad9a75ef Fix out-of-bounds string access in GNCIPv4AddressTest found by LibC++ hardening
LibC++ hardening detected an out-of-bounds write in `testInitFromDataWithLeadingEmptyBytes`. The `std::string` initialized with "\0\0\0\0" was empty, making the access `addressString[3]` invalid.

Updated the `std::string` constructor to specify the size, so it correctly includes the null bytes, preventing the crash.

PiperOrigin-RevId: 846853226
2025-12-19 13:48:53 -08:00
Nick Bourdakos 9a25fc22ff Convert certificate ID bytes to a hex string for device ID when mac address is not available
PiperOrigin-RevId: 846851458
2025-12-19 13:43:56 -08:00
Nick Bourdakos 14e14bc0a2 Flag change
PiperOrigin-RevId: 846843939
2025-12-19 13:18:32 -08:00