From 68e1731e02fab9f94b51bc739932547c3a651ee2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 May 2020 15:40:17 -0700 Subject: [PATCH] Don't bother logging security exception getting the device serial number This can happen anytime we haven't opened the device yet --- .../app/src/main/java/org/libsdl/app/HIDDeviceUSB.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java index efcb7b195..d20fe80bc 100644 --- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java +++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java @@ -57,8 +57,7 @@ class HIDDeviceUSB implements HIDDevice { result = mDevice.getSerialNumber(); } catch (SecurityException exception) { - Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage()); - result = ""; + //Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage()); } } if (result == null) {