Merge "Ignore mkdirs requests while storage is locked." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c98ee8b964
@@ -2668,6 +2668,9 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
final int userId = UserHandle.getUserId(Binder.getCallingUid());
|
||||
final UserEnvironment userEnv = new UserEnvironment(userId);
|
||||
|
||||
// Ignore requests to create directories while storage is locked
|
||||
if (!isUserKeyUnlocked(userId)) return;
|
||||
|
||||
// Validate that reported package name belongs to caller
|
||||
final AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(
|
||||
Context.APP_OPS_SERVICE);
|
||||
|
||||
Reference in New Issue
Block a user