You don’t need ‘full’ accessibility access to listen for events. There’s a specific TCC service for that, namely ListenEvent. You can check where you have that privilege using CGPreflightListenEventAccess.
@eskimo As written in my post, I have other feature which require kCGEventTapOptionDefault, so ‘full’ accessibility access is needed.
I'm not sure whether access tcc.db is a good idea, it might stop working in the future. Is there an approach which use public API?
Topic:
App & System Services
SubTopic:
Core OS
Tags: