fix: don't request Bluetooth permission for USB-connected RNodes#494
Merged
torlando-tech merged 2 commits intomainfrom Feb 19, 2026
Merged
fix: don't request Bluetooth permission for USB-connected RNodes#494torlando-tech merged 2 commits intomainfrom
torlando-tech merged 2 commits intomainfrom
Conversation
…-scrollable fix: make announce filter dialog scrollable on short displays
RNode USB interfaces use Android USB Host API, not Bluetooth. The requiresBluetooth() check only excluded TCP mode, so USB RNodes incorrectly triggered Bluetooth permission requests on every app start. Closes #487 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Greptile SummaryFixed a bug where USB-connected RNodes incorrectly triggered Bluetooth permission requests. The fix adds
The logic change is correct: USB RNodes use the Android USB Host API, not Bluetooth, so they should not trigger permission requests. Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
Start[Interface enabled?] -->|Yes| CheckType{Interface Type?}
Start -->|No| NoPermission[No Bluetooth needed]
CheckType -->|AndroidBLE| NeedBT[Requires Bluetooth]
CheckType -->|RNode| ParseJSON[Parse connection_mode from JSON]
CheckType -->|Other| NoPermission
ParseJSON -->|JSON Error| NeedBT
ParseJSON -->|Success| CheckMode{connection_mode value?}
CheckMode -->|tcp| NoPermission
CheckMode -->|usb| NoPermission
CheckMode -->|classic| NeedBT
CheckMode -->|ble| NeedBT
CheckMode -->|missing/empty| NeedBT
style NeedBT fill:#ffcccc
style NoPermission fill:#ccffcc
style CheckMode stroke:#ff6600,stroke-width:3px
Last reviewed commit: 99e533b |
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.
Summary
requiresBluetooth()only excludedconnection_mode == "tcp", so USB RNodes incorrectly triggered Bluetooth permission requests on every app start"usb"to the exclusion check alongside"tcp"Closes #487
Test plan
InterfaceDaoTesttests pass🤖 Generated with Claude Code