UsbDeviceManager: set mUsbDataUnlocked=false on user switch am: 5701321701
am: aa330c0dc2
* commit 'aa330c0dc2331f099ce05ecd76d56b8c9e9c483d':
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