Meshtastic-Android icon indicating copy to clipboard operation
Meshtastic-Android copied to clipboard

Prevent Range Test from running on public/default channel

Open dubsector opened this issue 1 month ago • 3 comments

Added logic in RangeTestConfigItemList.kt to detect when the primary channel is using the default/public PSK.

Disabled the entire Range Test configuration UI when the device is on a public channel.

Added a backend safety check to ensure the Range Test module cannot be enabled even if the UI is bypassed.

Automatically forces enabled = false in the module config when public channel conditions are detected.

Ensures behavior matches existing code style and Meshtastic’s definition of “public channel.”

dubsector avatar Nov 25 '25 22:11 dubsector

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 25 '25 22:11 CLAassistant

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Nov 25 '25 22:11 CLAassistant

Question: what happens if range test is already enabled? Would user be unable to disable it after these changes?

mdecourcy avatar Nov 28 '25 20:11 mdecourcy