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

Commit 03d5611e authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

UsbDeviceManager: set mUsbDataUnlocked=false on user switch

am: 57013217

* commit '57013217':
  UsbDeviceManager: set mUsbDataUnlocked=false on user switch
parents 2a350367 57013217
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -715,6 +715,8 @@ public class UsbDeviceManager {
                        if (active && mCurrentUser != UserHandle.USER_NULL) {
                            Slog.v(TAG, "Current user switched to " + mCurrentUser
                                    + "; resetting USB host stack for MTP or PTP");
                            // avoid leaking sensitive data from previous user
                            mUsbDataUnlocked = false;
                            setEnabledFunctions(mCurrentFunctions, true);
                        }
                        mCurrentUser = msg.arg1;