Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -1359,9 +1359,7 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver UsbManager.USB_FUNCTION_NONE).equals( UsbManager.USB_FUNCTION_NONE).equals( getSystemProperty(USB_STATE_PROPERTY, UsbManager.USB_FUNCTION_NONE)); getSystemProperty(USB_STATE_PROPERTY, UsbManager.USB_FUNCTION_NONE)); } } // Mask out adb, since it is stored in mAdbEnabled mCurrentFunctions = UsbManager.FUNCTION_NONE; mCurrentFunctions = UsbManager.usbFunctionsFromString(mCurrentFunctionsStr) & ~UsbManager.FUNCTION_ADB; mCurrentUsbFunctionsReceived = true; mCurrentUsbFunctionsReceived = true; String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); Loading Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -1359,9 +1359,7 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver UsbManager.USB_FUNCTION_NONE).equals( UsbManager.USB_FUNCTION_NONE).equals( getSystemProperty(USB_STATE_PROPERTY, UsbManager.USB_FUNCTION_NONE)); getSystemProperty(USB_STATE_PROPERTY, UsbManager.USB_FUNCTION_NONE)); } } // Mask out adb, since it is stored in mAdbEnabled mCurrentFunctions = UsbManager.FUNCTION_NONE; mCurrentFunctions = UsbManager.usbFunctionsFromString(mCurrentFunctionsStr) & ~UsbManager.FUNCTION_ADB; mCurrentUsbFunctionsReceived = true; mCurrentUsbFunctionsReceived = true; String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); Loading