Skip to content

Commit 1adc612

Browse files
committed
Skip wildcard vendor and product ID deny list entries on Android, because they would deny all devices.
1 parent 51183d0 commit 1adc612

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/controllers/hid/hidenumerator.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ bool recognizeDevice(const mixxx::hid::DeviceInfo& deviceInfo) {
7373

7474
// Exclude specific devices from the denylist.
7575
for (const hid_denylist_t& denylisted : kHidDenyList) {
76+
#ifdef __ANDROID__
77+
if (denylisted.vendor_id == kAnyValue &&
78+
denylisted.product_id == kAnyValue) {
79+
// these wildcard entries would deny any devices on Android, skip
80+
continue;
81+
}
82+
#endif
7683
// If vendor ids are specified and do not match, skip.
7784
if (denylisted.vendor_id != kAnyValue &&
7885
vendor_id != denylisted.vendor_id) {

0 commit comments

Comments
 (0)