Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c4050b0 authored by Tim Kilbourn's avatar Tim Kilbourn Committed by Android Git Automerger
Browse files

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

* commit 'bdfbd821':
  Always set the usb config when modifying it.
parents 1762a44f bdfbd821
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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)) {
            // 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);
        }