Implement BLE MAC address randomization for privacy - #144
Merged
Mrwicks00 merged 7 commits intoJun 22, 2026
Conversation
added 4 commits
June 22, 2026 02:56
Remove trailing blank line at end of ble_transport.rs and trailing whitespace on an empty doc-comment line in unified.rs. Both are normalized by `cargo fmt --check`, which was failing the CI step.
BigNathan1
force-pushed
the
implement/mac-randomization
branch
from
June 22, 2026 10:48
84ad68b to
1154da2
Compare
added 3 commits
June 22, 2026 03:58
Sort the ble_transport import group in unified.rs and wrap two over-length send_with_timeout calls in the gossip integration test, matching cargo fmt output. The test-file lines were pre-existing formatting violations on main.
- Avoid use-after-move of ble_peers in notify_mac_rotated by iterating over a reference so the subsequent len() read stays valid. - Drop unused mut bindings in two BleCentral rotation tests. These were masked by the earlier formatting failure and surface once cargo clippy --all-targets --all-features -- -D warnings runs.
The 'outer loop only ever exits via `break 'outer`, so it never iterates a second time, tripping clippy::never_loop (deny-by-default). Convert it to a labeled block, preserving the advertise-once-then-accept behavior and the two `break 'outer` exit paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement BLE MAC address randomization for privacy
closes #38
Adds privacy enhancement through BLE Central MAC address rotation to prevent passive location tracking. This implementation defines the interface and rotation policy for both simulation and future Android JNI binding.
Changes:
Implementation Details:
Acceptance Criteria Met: