Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -434,6 +434,8 @@ public class UsbDeviceManager { try { // Restore default functions. mCurrentOemFunctions = SystemProperties.get(UsbDeviceManager.getPersistProp(false), UsbManager.USB_FUNCTION_NONE); if (isNormalBoot()) { mCurrentFunctions = SystemProperties.get(USB_CONFIG_PROPERTY, UsbManager.USB_FUNCTION_NONE); Loading Loading @@ -662,8 +664,7 @@ public class UsbDeviceManager { } if ((!functions.equals(oemFunctions) && (mCurrentOemFunctions == null || !mCurrentOemFunctions.equals(oemFunctions))) !mCurrentOemFunctions.equals(oemFunctions)) || !mCurrentFunctions.equals(functions) || !mCurrentFunctionsApplied || forceRestart) { Loading Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -434,6 +434,8 @@ public class UsbDeviceManager { try { // Restore default functions. mCurrentOemFunctions = SystemProperties.get(UsbDeviceManager.getPersistProp(false), UsbManager.USB_FUNCTION_NONE); if (isNormalBoot()) { mCurrentFunctions = SystemProperties.get(USB_CONFIG_PROPERTY, UsbManager.USB_FUNCTION_NONE); Loading Loading @@ -662,8 +664,7 @@ public class UsbDeviceManager { } if ((!functions.equals(oemFunctions) && (mCurrentOemFunctions == null || !mCurrentOemFunctions.equals(oemFunctions))) !mCurrentOemFunctions.equals(oemFunctions)) || !mCurrentFunctions.equals(functions) || !mCurrentFunctionsApplied || forceRestart) { Loading