Skip to content

Feature/improved detection#29

Open
barclayslb wants to merge 8 commits intoyjeanrenaud:mainfrom
barclayslb:feature/improved-detection
Open

Feature/improved detection#29
barclayslb wants to merge 8 commits intoyjeanrenaud:mainfrom
barclayslb:feature/improved-detection

Conversation

@barclayslb
Copy link

@barclayslb barclayslb commented Feb 28, 2026

Hey,

I have added some new functions, rewriting some code and the detection of meta ray ban can be much more efficient than before with the UUIDs and multiple parameters to better match meta glasses vs meta quest VR.

- New scanner/DeviceTracker.kt: BLE device fingerprinting and deduplication
- New model/SignatureDatabase.kt: JSON-based signature loading from assets
- New assets/signatures.json: Externalized smart glasses BLE signatures
- DetectionEvent: add evaluateSmartGlasses() with multi-criteria scoring,
  safe JSON via JSONObject, META_SERVICE_UUID constant, confidenceScore field
- BluetoothScanService: fix double UPSIDE_DOWN_CAKE check, use
  CopyOnWriteArrayList for thread-safety, pass new config params
…cesManager

- BluetoothScanner: integrate evaluateSmartGlasses(), DeviceTracker,
  Service UUID extraction, cyclic scan mode for battery saving
- PreferencesManager: add confidenceThreshold and batterySaverEnabled
- NotificationHelper: display confidence percentage in notifications
- preferences.xml: add confidence_threshold and battery_saver settings
- New strings: reason_service_uuid, reason_short_payload, reason_long_payload,
  notification_detected_text_with_score, notification_bigtext_with_score,
  titleConfidenceThreshold, summaryConfidenceThreshold,
  titleBatterySaver, summaryBatterySaver
- Updated summaryMethod to reflect new detection methods
@github-actions
Copy link
Contributor


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 can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant