Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -683,8 +683,9 @@ public class UsbDeviceManager { // Set the new USB configuration. // Set the new USB configuration. setUsbConfig(oemFunctions); setUsbConfig(oemFunctions); if (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP) if (mBootCompleted || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP)) { && (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP) || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP))) { // Start up dependent services. // Start up dependent services. updateUsbStateBroadcastIfNeeded(true); updateUsbStateBroadcastIfNeeded(true); } } Loading Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -683,8 +683,9 @@ public class UsbDeviceManager { // Set the new USB configuration. // Set the new USB configuration. setUsbConfig(oemFunctions); setUsbConfig(oemFunctions); if (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP) if (mBootCompleted || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP)) { && (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP) || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP))) { // Start up dependent services. // Start up dependent services. updateUsbStateBroadcastIfNeeded(true); updateUsbStateBroadcastIfNeeded(true); } } Loading