Skip to content

Added Sample app: USB Whitelisting#26

Open
quang-datalogic wants to merge 1 commit intodatalogic:masterfrom
quang-datalogic:USBWhitelistingSampleAPI
Open

Added Sample app: USB Whitelisting#26
quang-datalogic wants to merge 1 commit intodatalogic:masterfrom
quang-datalogic:USBWhitelistingSampleAPI

Conversation

@quang-datalogic
Copy link

No description provided.

@quang-datalogic
Copy link
Author

Log:

05-19 09:50:53.697  6054  6054 D Datalogic USB Whitelist Sample: Starting USB Whitelisting Configuration Sample
05-19 09:50:54.396  6054  6054 D Datalogic USB Whitelist Sample: Cleared existing USB whitelist.
05-19 09:50:54.396  6054  6054 D Datalogic USB Whitelist Sample: Added device by VID/PID: 04fb/96a2 (Approved USB Mouse)
05-19 09:50:54.397  6054  6054 D Datalogic USB Whitelist Sample: Added device via list: 05fb/26a2 (Approved USB Keyboard)
05-19 09:50:54.398  6054  6054 D Datalogic USB Whitelist Sample: USB Whitelist prepared with 2 rules.
05-19 09:50:54.408  6054  6054 D Datalogic USB Whitelist Sample: USB Whitelist configuration committed successfully.
05-19 09:50:54.408  6054  6054 D Datalogic USB Whitelist Sample: Verification: Device 1 (Approved USB Mouse) found in whitelist.
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: Verification: Device 2 (Approved USB Keyboard - Standard USB keyboard) found in whitelist.
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: Verification: Non-whitelisted device (VID:43690/PID:48059) correctly not found.
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: Current Whitelisted Devices (2):
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: - VID: 04fb, PID: 96a2, Name: Approved USB Mouse, Desc: Standard USB mouse, Persistence: Reboot
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: - VID: 05fb, PID: 26a2, Name: Approved USB Keyboard, Desc: Standard USB keyboard, Persistence: Reboot
05-19 09:50:54.409  6054  6054 D Datalogic USB Whitelist Sample: Attempted to remove Device 1. Result: true
05-19 09:50:54.419  6054  6054 D Datalogic USB Whitelist Sample: Committed removal of Device 1.


// Get the current UsbHostWhitelisting object or create a new one if null.
UsbHostWhitelisting usbHostWhitelist;
if (usbWhitelistProp.get() != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for the property isSupported() or not and then after that you can call .get() otherwise just skip the logic or return at this point

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.

2 participants