Loading services/usb/java/com/android/server/usb/UsbDeviceManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -716,6 +716,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; Loading Loading
services/usb/java/com/android/server/usb/UsbDeviceManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -716,6 +716,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; Loading