ソースを参照

Don't bother logging security exception getting the device serial number

This can happen anytime we haven't opened the device yet
Sam Lantinga 4 年 前
コミット
68e1731e02

+ 1 - 2
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) {