am bdfbd821: am 0eb10ede: Merge "Always set the usb config when modifying it." into mnc-dr-dev

* commit 'bdfbd82154b58592597a70064c0806d774446746':
  Always set the usb config when modifying it.
This commit is contained in:
Tim Kilbourn
2015-09-19 00:37:46 +00:00
committed by Android Git Automerger

View File

@@ -417,10 +417,9 @@ public class UsbDeviceManager {
private boolean setUsbConfig(String config) {
if (DEBUG) Slog.d(TAG, "setUsbConfig(" + config + ")");
// set the new configuration
String oldConfig = SystemProperties.get(USB_CONFIG_PROPERTY);
if (!config.equals(oldConfig)) {
SystemProperties.set(USB_CONFIG_PROPERTY, config);
}
// we always set it due to b/23631400, where adbd was getting killed
// and not restarted due to property timeouts on some devices
SystemProperties.set(USB_CONFIG_PROPERTY, config);
return waitForState(config);
}