UsbDeviceManager: set mUsbDataUnlocked=false on user switch
am: 5701321701
* commit '5701321701a319d3f2d98365a82266eeddaed895':
UsbDeviceManager: set mUsbDataUnlocked=false on user switch
This commit is contained in:
@@ -716,6 +716,8 @@ public class UsbDeviceManager {
|
|||||||
if (active && mCurrentUser != UserHandle.USER_NULL) {
|
if (active && mCurrentUser != UserHandle.USER_NULL) {
|
||||||
Slog.v(TAG, "Current user switched to " + mCurrentUser
|
Slog.v(TAG, "Current user switched to " + mCurrentUser
|
||||||
+ "; resetting USB host stack for MTP or PTP");
|
+ "; resetting USB host stack for MTP or PTP");
|
||||||
|
// avoid leaking sensitive data from previous user
|
||||||
|
mUsbDataUnlocked = false;
|
||||||
setEnabledFunctions(mCurrentFunctions, true);
|
setEnabledFunctions(mCurrentFunctions, true);
|
||||||
}
|
}
|
||||||
mCurrentUser = msg.arg1;
|
mCurrentUser = msg.arg1;
|
||||||
|
|||||||
Reference in New Issue
Block a user