Loading services/usb/java/com/android/server/usb/UsbHostManager.java +6 −2 Original line number Diff line number Diff line Loading @@ -380,6 +380,11 @@ public class UsbHostManager { return false; } if (descriptors == null) { Slog.e(TAG, "Failed to add device as the descriptor is null"); return false; } UsbDescriptorParser parser = new UsbDescriptorParser(deviceAddress, descriptors); if (deviceClass == UsbConstants.USB_CLASS_PER_INTERFACE && !checkUsbInterfacesDenyListed(parser)) { Loading Loading @@ -462,8 +467,7 @@ public class UsbHostManager { } // Tracking addConnectionRecord(deviceAddress, ConnectionRecord.CONNECT, parser.getRawDescriptors()); addConnectionRecord(deviceAddress, ConnectionRecord.CONNECT, descriptors); // Stats collection FrameworkStatsLog.write(FrameworkStatsLog.USB_DEVICE_ATTACHED, Loading Loading
services/usb/java/com/android/server/usb/UsbHostManager.java +6 −2 Original line number Diff line number Diff line Loading @@ -380,6 +380,11 @@ public class UsbHostManager { return false; } if (descriptors == null) { Slog.e(TAG, "Failed to add device as the descriptor is null"); return false; } UsbDescriptorParser parser = new UsbDescriptorParser(deviceAddress, descriptors); if (deviceClass == UsbConstants.USB_CLASS_PER_INTERFACE && !checkUsbInterfacesDenyListed(parser)) { Loading Loading @@ -462,8 +467,7 @@ public class UsbHostManager { } // Tracking addConnectionRecord(deviceAddress, ConnectionRecord.CONNECT, parser.getRawDescriptors()); addConnectionRecord(deviceAddress, ConnectionRecord.CONNECT, descriptors); // Stats collection FrameworkStatsLog.write(FrameworkStatsLog.USB_DEVICE_ATTACHED, Loading