Comments (4)
As this would add a step to identify a device beyond just checking for BT MAC and RSSI is there a way to maybe identify that we're looking at an Apple Watch by it's BT MAC already? This way the additional checks would only be executed on an Apple Watch.
On the other hand this check only needs to be done once when the device appears in range (RSSI lower than set threshold) and then only ever again when the RSSI has gone over the threshold.
Thinking further this check should always be made. What if i take off my Apple Watch in front of the Mac to charge it and then it would not check again. In locking my computer by taking off my Apple Watch i'm surely aware of the implications.
from bleunlock.
We should be able to identify whether it's an Apple Watch by the device name (Apple Inc./WatchX,X). I'm still considering how it should behave when the Watch is removed from the wrist to charge while the Mac is unlocked.
from bleunlock.
My above suggested Nearby Info Continuity BLE advertising data, looking at the data length and the relevant octet being "98" or "18" clearly identifies it is an Apple Watch AFAIK, so any name comparison or so is necessary.
https://github.com/theengs/decoder/blob/development/src/devices/APPLEWATCH_json.h#L8
I have implemented this into our Theengs Decoder library for usage in several projects and also use it personally to deactivate/activate my alarm system when I'm coming home/leaving the house, only when the Apple Watch worn and unlocked by me.
And yes, the behaviour of how to prevent locking when on the charger is similar to my alarm system not being set when a firmware update presents the Watch as absent for quite a few minutes ;) my suggestion would be a MUTE/PAUSE option in the BLEUnlock menu, with a very clear icon indicator to the pause.
ADDENDUM: with the data length obviously already also being included by the 05 byte, indicating the amount of the following bytes.
from bleunlock.
@DigiH Thank you for the very interesting information. 🙏
I will look into your project more closely. 👀
from bleunlock.
Related Issues (20)
- BLEUnlock is not working on macOS Sonoma HOT 1
- mac address update problem HOT 1
- Approaching wake-up failed
- Device shows in in system_profiler output but not in list
- someone has plagiarized your software HOT 1
- [Question]Device power consumption HOT 1
- Bleunlock and audio loop bug.
- Add wait/timeout time when unlock the device.
- A small problem in README.md HOT 1
- Can't wake up display HOT 1
- [Feature Request] Multiple BLE Devices needed to unlock/lock HOT 1
- Is installing BLEUnlock an open door to the security of the Mac? HOT 3
- does it unlock my mac only when I unlock my iphone? or only when I have iphone with me? HOT 1
- Remove RSSI restrictions for unlocking and locking HOT 1
- [Feature Request] Managing the Enable/Disable Lock/Unlock Feature Based on Time HOT 1
- Add the shortcut key of "Lock Screen Now"
- HelloGitHub Badge
- Slovak translation
- K
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleunlock.