macOS Version: macOS 11.2 (20D64)
Kernel Version: Darwin 20.3.0
Shield Version: v0.9.5
User Type: Admin
Terminal Full Disk Access: Yes
SIP: Enabled
Trying to access the Shield preferences via defaults using the BUNDLE_ID & HELPER_BUNDLE_ID (as defined in Constants.h) produces the following errors
$ defaults read com.csaba.fitzl.shield.ShieldHelper
2021-02-08 23:36:29.790 defaults[8539:479032]
Domain com.csaba.fitzl.shield.ShieldHelper does not exist
$ defaults read com.csaba.fitzl.shield
2021-02-08 23:40:52.026 defaults[8715:483516]
Domain com.csaba.fitzl.shield does not exist
To access the Shield preferences you need to use the full path of the preferences file which is DIR_PATH_ES + PREFS_FILE (as defined in Constants.h).
$ defaults read /Library/Application\ Support/Shield/com.csaba.fitzl.shield.preferences.plist
{
isBlocking = 1;
...
}
You mentioned in the v0.9.5 release notes that you've been using some of the Objective-See code, this works fine for OverSight (defaults read com.objective-see.OverSight) but not BlockBlock so the implementation of preferences in OverSight might help debug this.